Sysprogs forums › Forums › VisualGDB › Errors when using esp-idf v4.2
- This topic has 1 reply, 1 voice, and was last updated 6 years ago by
Dreeke.
-
AuthorPosts
-
May 28, 2020 at 12:25 #28243
Dreeke
ParticipantHi,
I have successfully created, build and debugged the blink example on my own hardware. So far so good 🙂
I have upgraded esp-idf to the latest release, v4.2, by means of VisualGDB itself.
I tried to do the same as before. The creation of the example project (blink again) gives errors:
CMake Error at C:/Users/ara/AppData/Local/VisualGDB/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler"C:/SysGCC/esp32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"is not able to compile a simple test program.It fails with the following output:Change Dir: W:/esp/test3/EmbeddedProject2/EmbeddedProject2/build/VisualGDB/Debug/CMakeFiles/CMakeTmpRun Build Command(s):C:/Program Files (x86)/Sysprogs/VisualGDB/ninja.exe cmTC_71f92 && [1/2] Building C object CMakeFiles/cmTC_71f92.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_71f92
FAILED: cmTC_71f92
cmd.exe /C "cd . && C:\SysGCC\esp32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -mlongcalls -Wno-frame-address CMakeFiles/cmTC_71f92.dir/testCCompiler.c.obj -o cmTC_71f92 && cd ."
c:/sysgcc/esp32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/sysgcc/esp32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
c:/sysgcc/esp32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lsim
c:/sysgcc/esp32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lhandlers-sim
c:/sysgcc/esp32/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lhal
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.CMake will not be able to correctly generate this project.I guess that some files are missing… how should I get it working?
May 28, 2020 at 13:01 #28244Dreeke
ParticipantI found my error. The point is mentioned here:Â https://visualgdb.com/documentation/espidf/#buildproblems
I fetched a version from Github which is not the way to go. I have followed the instructions and installed the latest version from here:Â https://gnutoolchains.com/esp32/
That solved this problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.