Problem during building and flashing

andrehrema
Posts: 1
Joined: Wed Aug 11, 2021 2:47 pm

Problem during building and flashing

Postby andrehrema » Wed Aug 11, 2021 3:11 pm

Hi folks.
I've installed the esp-idf explorer plugin to my visual studio code.
My board is a ESP32-WROOM-32.
When I try to build a simple project, based on the examples provided with the repository, vscode returns the following error:

Code: Select all

[237/990] Performing configure step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-configure 
cmd.exe /C "cd /D C:\Users\andre\esp-idf\examples\workspace\test2\template-app\build\bootloader && C:\Users\andre\.espressif\tools\cmake\3.16.4\bin\cmake.exe -DSDKCONFIG=C:/Users/andre/esp-idf/examples/workspace/test2/template-app/sdkconfig -DIDF_PATH=C:/Users/andre/esp/esp-idf -DIDF_TARGET=esp32 -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:/Users/andre/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe -DEXTRA_COMPONENT_DIRS=C:/Users/andre/esp/esp-idf/components/bootloader -DLEGACY_INCLUDE_COMMON_HEADERS= -GNinja C:/Users/andre/esp/esp-idf/components/bootloader/subproject && C:\Users\andre\.espressif\tools\cmake\3.16.4\bin\cmake.exe -E touch C:/Users/andre/esp-idf/examples/workspace/test2/template-app/build/bootloader-prefix/src/bootloader-stamp/bootloader-configure"
-- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.25.1.windows.1")
CMake Error at C:/Users/andre/esp/esp-idf/tools/cmake/kconfig.cmake:30 (message):
  Windows requires an MSYS2 version of gcc on the PATH to build mconf-idf.
  Consult the setup docs for ESP-IDF on Windows.
Call Stack (most recent call first):
  C:/Users/andre/esp/esp-idf/tools/cmake/build.cmake:164 (__kconfig_init)
  C:/Users/andre/esp/esp-idf/tools/cmake/idf.cmake:50 (__build_init)
  C:/Users/andre/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:34 (include)
Researching for similar issues, I found this post: https://www.esp32.com/viewtopic.php?t=14323, however, It didn't solve it.

Running the instructions to build and flash from esp-idf powershell, it works.

Does anyone know how to fix the error returned by vscode?

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Problem during building and flashing

Postby ESP_bignacio » Wed Aug 18, 2021 6:39 am

Have you configured the extension ?

https://github.com/espressif/vscode-esp ... install.md

Who is online

Users browsing this forum: No registered users and 31 guests