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)
Running the instructions to build and flash from esp-idf powershell, it works.
Does anyone know how to fix the error returned by vscode?