Sysprogs forums › Forums › VisualGDB › Arduino/ESP32-S3 Missing Files?
- This topic has 8 replies, 3 voices, and was last updated 4 weeks, 1 day ago by
arrow201.
-
AuthorPosts
-
January 17, 2025 at 10:52 #36299
arrow201
ParticipantHi,
I got a ESP32-S3 Dev Board (WROOM-1 with 2 USB-C connectors, RGB LED) and I can’t compile. 🙁 I’ve had no problem with the older ESP32 and ESP8266 under Arduino, but I’m baffled why this fails? A number of files are missing. For these newer series ESP32s do we have to explicitly have to load in libraries? If so, which ones? ie.for Arduino FreeRTOS there’s a number of them.
Visual Studio 2022 v17.12.4
VisualGDB v6.0R6 (build 5262)
Libraries:
OpenOCD 20240916-0.12.0
Arduino esp32 v3.1.1
ESP32 debug methods 20231123I followed the example creating a Blinking LED project
Selected: “ESP32S3 Dev Module”
https://visualgdb.com/tutorials/arduino/esp32/My compiled output:
==============
Launching Arduino builder…
Run “C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\arduino-builder.exe -prefs=com.sysprogs.extraflags=”-ggdb” -compile -logger=machine -fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=8M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -build-path C:\Src\ESP32_S3\Ard_Blink\Output\ESP32S3_Dev_Module\Debug -unoptimize=sketch -hardware C:\Users\Arrow\Documents/ArduinoData/packages -tools C:\Users\Arrow\Documents/ArduinoData/packages -libraries C:\Users\Arrow\Documents/Arduino/Libraries -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-dc859c1e67 -prefs=runtime.tools.esp-x32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-x32\2405 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\xtensa-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esp-rv32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\riscv32-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esptool_py.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esptool_py\4.9.dev3 -prefs=runtime.tools.openocd-esp32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20241016 -prefs=runtime.tools.ctags.path=C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\tools-builder\ctags\5.8-arduino11 sketches/Ard_Blink.ino” in directory “C:\Src\ESP32_S3\Ard_Blink” on local computer
C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\arduino-builder.exe -prefs=com.sysprogs.extraflags=”-ggdb” -compile -logger=machine -fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=8M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -build-path C:\Src\ESP32_S3\Ard_Blink\Output\ESP32S3_Dev_Module\Debug -unoptimize=sketch -hardware C:\Users\Arrow\Documents/ArduinoData/packages -tools C:\Users\Arrow\Documents/ArduinoData/packages -libraries C:\Users\Arrow\Documents/Arduino/Libraries -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-dc859c1e67 -prefs=runtime.tools.esp-x32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-x32\2405 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\xtensa-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esp-rv32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\riscv32-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esptool_py.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esptool_py\4.9.dev3 -prefs=runtime.tools.openocd-esp32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20241016 -prefs=runtime.tools.ctags.path=C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\tools-builder\ctags\5.8-arduino11 sketches/Ard_Blink.ino
In file included from C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/esp32-hal.h:89,
from C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/Arduino.h:36,
from C:\Src\ESP32_S3\Ard_Blink\Output\ESP32S3_Dev_Module\Debug\sketch\Ard_Blink.ino.cpp:1:
C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/esp32-hal-touch.h:58:1: error: ‘touch_value_t’ does not name a type; did you mean ‘touch_pad_t’?
58 | touch_value_t touchRead(uint8_t pin);
| ^~~~~~~~~~~~~
| touch_pad_t
C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/esp32-hal-touch.h:65:64: error: ‘touch_value_t’ has not been declared
65 | void touchAttachInterrupt(uint8_t pin, void (*userFunc)(void), touch_value_t threshold);
| ^~~~~~~~~~~~~
C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/esp32-hal-touch.h:66:80: error: ‘touch_value_t’ has not been declared
66 | void touchAttachInterruptArg(uint8_t pin, void (*userFunc)(void *), void *arg, touch_value_t threshold);
| ^~~~~~~~~~~~~
C:\Users\Arrow\Documents\ArduinoData\packages\esp32\hardware\esp32\3.1.1\cores\esp32/esp32-hal-touch.h:95:42: error: ‘touch_value_t’ has not been declared
95 | void touchSleepWakeUpEnable(uint8_t pin, touch_value_t threshold);
| ^~~~~~~~~~~~~
exit status 1
————————————————————-
Command exited with code 1
Executable: C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\arduino-builder.exe
Arguments: -prefs=com.sysprogs.extraflags=”-ggdb” -compile -logger=machine -fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=8M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -build-path C:\Src\ESP32_S3\Ard_Blink\Output\ESP32S3_Dev_Module\Debug -unoptimize=sketch -hardware C:\Users\Arrow\Documents/ArduinoData/packages -tools C:\Users\Arrow\Documents/ArduinoData/packages -libraries C:\Users\Arrow\Documents/Arduino/Libraries -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-dc859c1e67 -prefs=runtime.tools.esp-x32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-x32\2405 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\xtensa-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esp-rv32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\riscv32-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esptool_py.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esptool_py\4.9.dev3 -prefs=runtime.tools.openocd-esp32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20241016 -prefs=runtime.tools.ctags.path=C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\tools-builder\ctags\5.8-arduino11 sketches/Ard_Blink.ino
Directory: C:\Src\ESP32_S3\Ard_Blink
Command-line action failedThe “Error List” shows I’m missing all sorts of files:
====================================
Error: ‘freertos/FreeRTOS.h’ file not found
Error: ‘freertos/task.h’ file not found
Error: ‘freertos/semphr.h’ file not found
Error: ‘soc/gpio_reg.h’ file not found
Error: ‘esp_partition.h’ file not found
Error: ‘hal/cpu_hal.h’ file not found
Error: ‘esp_cpu.h’ file not found
Error: ‘soc/soc_caps.h’ file not found
Error: ‘driver/gpio.h’ file not found
Error: ‘soc/soc_caps.h’ file not found
Error: ‘esp_timer.h’ file not found
Error: ‘rom/ets_sys.h’ file not found
Error: ‘esp_log.h’ file not found
Error: ‘soc/gpio_sig_map.h’ file not found
Error: ‘soc/soc_caps.h’ file not found
Error: ‘esp_system.h’ file not found
Error: ‘esp_sleep.h’ file not found
Error: ‘freertos/queue.h’ file not found
Error: ‘freertos/event_groups.h’ file not found
Error: ‘lwip/ip_addr.h’ file not found
Error: ‘esp_netif_ip_addr.h’ file not foundI’m also having issues when I test the built in JTAG …but best to to get this working first.
Thanks
January 17, 2025 at 11:04 #36300support
KeymasterHi,
Looks like the Arduino package might be broken again. You can try checking with Arduino IDE, just make sure you are using the same package versions. If it is also broken, it won’t work with VisualGDB either. If not, we can help you replicate the build results from Arduino Studio.
January 17, 2025 at 14:59 #36301arrow201
ParticipantThank you for the reply. I thought I’d do a removal of all Arduino and Arduino ESP32 libraries and do a clean start. I started first with my UNO board to make sure that basic Arduino worked ok, and yes, it downloaded the required Arduino libraries, built and ran ok. Before building a ESP32 project, I downloaded/installed the Arduino ESP32 library, which is at v3.1.1. This doesn’t install correctly, giving me errors as per enclosed jpg.
Plus, when I compile, I now get this error:
FileNotFoundError: [Errno 2] No such file or directory: ‘{runtime.tools.esp32-arduino-libs.path}\\esp32s3\\bin\\bootloader_qio_80m.elf’
Looking in the ArduinoData folder I don’t see any references to the ESP32 ‘C’ and ‘S’ series at all(?) Even though I can select them if I create a blink LED project.Checking if any source files need uploading…
C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\arduino-builder.exe -compile -logger=machine -fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -build-path C:\Src\ESP32_S3\ArduinoProject1\Output\ESP32S3_Dev_Module\Debug -unoptimize=sketch -code-model-file C:\Src\ESP32_S3\ArduinoProject1\.visualgdb\VisualGDBCache\ArduinoProject1-Debug-ESP32S3_Dev_Module\CodeModel.json -jobs 1 -hardware C:\Users\Arrow\Documents/ArduinoData/packages -tools C:\Users\Arrow\Documents/ArduinoData/packages -libraries C:\Users\Arrow\Documents/Arduino/Libraries -prefs=runtime.tools.esp-x32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esp-x32\2405 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\xtensa-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\riscv32-esp-elf-gdb\14.2_20240403 -prefs=runtime.tools.esptool_py.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\esptool_py\4.9.dev3 -prefs=runtime.tools.openocd-esp32.path=C:\Users\Arrow\Documents\ArduinoData\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20241016 -prefs=runtime.tools.ctags.path=C:\Users\Arrow\AppData\Local\VisualGDB\Arduino\tools-builder\ctags\5.8-arduino11 sketches/ArduinoProject1.ino
===info ||| Progress {0} ||| [0.22]
…
===info ||| Progress {0} ||| [9.38]
Traceback (most recent call last):
File “esptool.py”, line 37, in <module>
File “esptool\__init__.py”, line 1325, in _main
File “esptool\__init__.py”, line 1071, in main
File “esptool\cmds.py”, line 1075, in elf2image
File “esptool\bin_image.py”, line 1209, in __init__
FileNotFoundError: [Errno 2] No such file or directory: ‘{runtime.tools.esp32-arduino-libs.path}\\esp32s3\\bin\\bootloader_qio_80m.elf’
[2676] Failed to execute script ‘esptool’ due to unhandled exception!
Saved the code model to C:\Src\ESP32_S3\ArduinoProject1\.visualgdb\VisualGDBCache\ArduinoProject1-Debug-ESP32S3_Dev_Module\BuildCommandLines.txtAttachments:
You must be logged in to view attached files.January 17, 2025 at 16:13 #36303support
KeymasterPlease confirm that the same project using the same libraries works with Arduino IDE. If not, it is not a VisualGDB issue and it cannot be fixed by VisualGDB.
January 18, 2025 at 09:52 #36304arrow201
ParticipantHi,
Thank you for looking into this. Getting interesting…
So, I first tried to compiled in VisualGDB ,and it continued to fail as expected. I then I followed the board’s tutorial. Going to this page will prompt you to download the zip file, so I don’t know if you’d want to do that, if so, the tutorial is in the “C” folder: http://freenove.com/fnk0099
– installed Arduino IDE (V2.3.4 as of this writing)
– point to the board URL: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
– get package ESP32 3.1.1 (same as selected in VisualGDB)
– select board ESP32S3 Dev Module (same as selected in VisualGDB)
– compiled and ran the Blink LED project …works!Now, I wanted to see if this affected my VisualGDB project in any way …and it did!
I loaded up the project and voila it now compiles, uploads and runs!!! That’s great but why??? I’ve never touch the “Arduino Settings”, the paths have always been at the default.You know better than me, but appears VisualGDB puts the ESP32 package off of …\Documents\ArduinoData path (yesterdays timestamp) …though the “Download Package Directories” has “$(DOCUMENTS_ROOT)/ArduinoData;$(LOCALAPPDATA)/Arduino15” …it puts it there too? ….ok …im confused.
Arduino IDE puts the package off of …\AppData\Local\Arduino15\ (has todays timestamp) (did it just overwrite VisualGDB?)Now the packages\esp32\hardware\esp32\3.1.1 appear to be the same for both (Arduino15, ArduinoData paths), however the packages\esp32\tools looks complete for the Arduino IDE but not for VisualGDB install. ie. the Arduino IDE packages\esp32\tools\esp-rv32 has a number of folders where the VisualGDB esp-rv32 folder off of ArduinoData is empty.
Thanks!
January 18, 2025 at 10:11 #36305support
KeymasterGood to know it works.
VisualGDB’s Arduino subsystem is specifically designed to replicate the original Arduino build process. It plugs into the Arduino builder to extract the compiler flags into IntelliSense, but otherwise it uses the same paths, same tools, and same build rules to produce exactly the same build result as the original IDE (but with much better GUI, IntelliSense and debugger integration).
If you had to manually specify a particular package list URL in Arduino IDE, it could have installed different (patched?) versions of the packages compared to what VisualGDB installed. You could have achieved the same result by changing the board URL in VisualGDB’s Arduino settings. Either way, it’s fairly typical for Arduino ecosystem to have multiple slightly different versions of packages that need some manual installation/configuration. But once you get it working to the point where Arduino IDE works, VisualGDB will pick up your configuration and will produce the same results as well.
Edit: we have double-checked that package lists and it turned out VisualGDB was using an older package list URL and installing slightly older package versions (that we previously tested on our side). It is hard to say why they would cause random errors instead of just working as they used to earlier, but we have updated the package list URL on our side to match the latest URL from Espressif. Now the packages installed by VisualGDB should 100% match the ones you installed manually.
January 23, 2025 at 14:09 #36325arrow201
ParticipantAs said in the more recent thread of this problem by another user, thank you very much for looking into this! Dumb me forgot to check the “Notify me of follow-up replies via email” so I didn’t see your edited response until I came back here.
Thanks again!
January 24, 2025 at 08:31 #36327Aloysius_Pendergast
Participant@arrow201, short question. I see you are also working with the Arduino Framework and VisualGDB, are you able to debug with the Arduino framework and VisualGDB? For me, it doesn’t works.
-
This reply was modified 4 weeks, 1 day ago by
Aloysius_Pendergast.
January 24, 2025 at 12:39 #36329arrow201
ParticipantNo, sorry, I only wanted to try with Arduino first as a stepping stone to see if my board works. I’ve switched to Espressif to learn.
-
This reply was modified 4 weeks, 1 day ago by
-
AuthorPosts
- You must be logged in to reply to this topic.