Tagged: Espressif ESP32 ESP-IDF V5
July 8, 2022 at 13:35 #32808July 8, 2022 at 13:44 #32809
We usually test VisualGDB with the new ESP-IDF versions once they are officially released by Espressif (i.e. mentioned as a stable release on the releases page and distributed via the Espressif’s installer). It typically takes a couple of weeks after the official release from Espressif for us to retest everything and update VisualGDB.
If the release is not mentioned there, it has likely not been fully tested by Espressif yet, may not be usable yet, and may change considerably before the final release. If you would like to get a timeframe of the official ESP-IDF v5 release, please contact Espressif.July 9, 2022 at 09:05 #32810
Yes, I completely understand. That’s fair.
I’m still hopeful that I can get this working. 🙂
I have it working using idf.py, and this text seems to indicate it should be possible:
Any project that can be built via ESP-IDF tools, can also be built with VisualGDB
I’ve opened Espressif idf-installer issue #142 in the hope that someone has an idea for a solution.July 9, 2022 at 09:28 #32811
Sure, you can always follow the troubleshooting instructions from the same documentation page you mentioned. They show how to narrow the problem down to specific command lines, so you can compare and adjust them outside VisualGDB.July 9, 2022 at 11:33 #32812
I’ve made some progress on getting the emitted VisualGDB cmake command to complete without errors, at least from a command prompt.
For one, I needed to add 2 CMake config variables in the Build Settings GUI:
IDF_TARGET = esp32c3
CCACHE_ENABLE = 1
Next, I needed to add these environment variables:
And last, I needed to add these to the Path:
What is the best method for modifying the path and environment variables for CMake in VisualGDB? I saw the documentation, but I don’t know exactly where to apply that. Before I go pecking them all in, is that the “User Variables” at the bottom of the config page?
btw – I tried simply adding a called to export.bat in the “before build”… but it does exactly that: before the build, but not before cmake.
Thank you.July 11, 2022 at 10:09 #32814
This is actually shown right after the instructions to dump the command line in the same troubleshooting page. You will likely need to set it for both CMake and Make/Ninja commands.
That said, it looks like your manual setup is using a different toolchain (
esp-2022r1-RC1-11.2.0), that would explain the different behavior.
The best way to integrate it would be to:
- Create a backup of the c:\SysGCC directory
- Delete the old ESP32 compiler directory (E:\sysgcc\esp32\tools\xtensa-esp32-elf\esp-2021r2-patch3) and copy the 2022r1 version under E:\sysgcc\esp32\tools\xtensa-esp32-elf.
- Edit toolchain.xml and bsp.xml, replacing xtensa-esp32-elf/esp-2021r2-patch3 with xtensa-esp32-elf/esp-2022r1-RC1-11.2.0 where appropriate (please use extra caution, since ESP32-S2/C3 targets use separate toolchains in their own directories).
- Reopen the solution.
Again, this is something to do at your own risk. We will do all these steps, retest everything and publish a ready-to-use package once Espressif deems them stable enough for a general release. We intentionally do not do this for pre-release versions, as they tend to be much less reliable and often change in various subtle ways before the final release.July 28, 2022 at 03:06 #32878
Hopefully Espressif will have an official release of ESP-IDF V5 soon.
Although there’s a line:C++1Requirement already up-to-date: kconfiglib
There’s still an error:C++1ModuleNotFoundError: No module named 'kconfiglib'
Full log:C++12345678910111213141516171819202122232425262728293031323334353637383940414243444546Executing pre-build actionsRun "pip3 install --upgrade kconfiglib" in directory "C:\Users\gojimmypi\source\repos\EmbeddedProject23" on local computerpip3 install --upgrade kconfiglibRequirement already up-to-date: kconfiglib in c:\users\gojimmypi\appdata\local\programs\python\python38-32\lib\site-packages (14.1.0)WARNING: You are using pip version 19.2.3, however version 22.2.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command.Run "C:\Users\gojimmypi\AppData\Local\VisualGDB\CMake\bin\cmake.exe ../../.. -G "Ninja" -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=c:/SysGCC/esp32/tools/ninja/1.10.2/ninja.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=0" in directory "C:\Users\gojimmypi\source\repos\EmbeddedProject23/build/VisualGDB/Debug" on local computerC:\Users\gojimmypi\AppData\Local\VisualGDB\CMake\bin\cmake.exe ../../.. -G "Ninja" -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=c:/SysGCC/esp32/tools/ninja/1.10.2/ninja.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=0-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.-- Building ESP-IDF components for target esp32-- Checking Python dependencies...Python requirements are satisfied.Skipping the download of C:\Users\gojimmypi\.espressif\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.Constraint file: C:\Users\gojimmypi\.espressif\espidf.constraints.v5.0.txtRequirement files:- C:\SysGCC\esp32\esp-idf\v5.0\tools\requirements\requirements.core.txtPython being checked: C:\Users\gojimmypi\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe-- Project sdkconfig file C:/Users/gojimmypi/source/repos/EmbeddedProject23/sdkconfigTraceback (most recent call last):File "C:/SysGCC/esp32/esp-idf/v5.0/tools/kconfig_new/confgen.py", line 23, in <module>import gen_kconfig_docFile "C:\SysGCC\esp32\esp-idf\v5.0\tools\kconfig_new\gen_kconfig_doc.py", line 27, in <module>import kconfiglibModuleNotFoundError: No module named 'kconfiglib'CMake Error at C:/SysGCC/esp32/esp-idf/v5.0/tools/cmake/kconfig.cmake:176 (message):Failed to run confgen.py(python;C:/SysGCC/esp32/esp-idf/v5.0/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;C:/SysGCC/esp32/esp-idf/v5.0/Kconfig;--sdkconfig-rename;C:/SysGCC/esp32/esp-idf/v5.0/sdkconfig.rename;--config;C:/Users/gojimmypi/source/repos/EmbeddedProject23/sdkconfig;--env-file;C:/Users/gojimmypi/source/repos/EmbeddedProject23/build/VisualGDB/Debug/config.env).Error 1Call Stack (most recent call first):C:/SysGCC/esp32/esp-idf/v5.0/tools/cmake/build.cmake:596 (__kconfig_generate_config)C:/SysGCC/esp32/esp-idf/v5.0/tools/cmake/project.cmake:434 (idf_build_process)CMakeLists.txt:8 (project)-- Configuring incomplete, errors occurred!See also "C:/Users/gojimmypi/source/repos/EmbeddedProject23/build/VisualGDB/Debug/CMakeFiles/CMakeOutput.log".-------------------------------------------------------------Command exited with code 1Executable: C:\Users\gojimmypi\AppData\Local\VisualGDB\CMake\bin\cmake.exeArguments: ../../.. -G "Ninja" -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_MAKE_PROGRAM=c:/SysGCC/esp32/tools/ninja/1.10.2/ninja.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=0Directory: C:\Users\gojimmypi\source\repos\EmbeddedProject23/build/VisualGDB/DebugCommand-line action failed========== Project Build Summary ==========EmbeddedProject23 built in 00:14========== Build: 0 Succeeded, 1 Failed, 0 Skipped ==========July 28, 2022 at 08:05 #32888
No problem. Feel free to bump this thread once ESP-IDF v5 is officially released and we will provide a timeline on fully integrating it.September 3, 2022 at 05:05 #33111
Just a little heads-up that ESP-IDF V5 is in release beta. 😎
Hopefully final release any day now.
CheersSeptember 3, 2022 at 08:44 #33112
No problem. Feel free to bump this thread once ESP-IDF v5 is officially released (not beta) and we will provide a timeline on fully integrating it.November 21, 2022 at 09:32 #33456
Heads up there’s finally an ESP-IDF 5.0 Release Candidate! Woohoo! 😎November 21, 2022 at 14:32 #33457
No problem. Feel free to bump this thread once ESP-IDF v5 is officially released (not beta and not RC) and we will provide a timeline on fully integrating it.
You must be logged in to reply to this topic.