Sysprogs forums › Forums › VisualGDB › Arduino/ESP32-S3 Missing Files?
- This topic has 2 replies, 2 voices, and was last updated 24 minutes ago by arrow201.
-
AuthorPosts
-
January 17, 2025 at 10:52 #36299arrow201Participant
Hi,
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 #36300supportKeymasterHi,
Looks like the Arduino package might be broken again. You can try checking with Arduino Studio, 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 #36301arrow201ParticipantThank 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. -
AuthorPosts
- You must be logged in to reply to this topic.