Hi, I can't seem to find a solution to this error when trying to enter debugging mode in vs studio with the ESP-IDF extension installed. Previously this was working fine until I made a project using multiple LEDS on pins G11 G9 G3 G19 and G18. Could I have burnt one of the efuses or is the issue something else. I'm very new to using the ESP32 so apologies if this is a stupid error in advance.
The board builds, flashes and monitors fine. Its just that openOCD will not run.
Heres the error output
/Users/zathlute/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin/xtensa-esp32s3-elf-gdb
/Users/zathlute/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin/openocd
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:24)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: esp_usb_jtag: could not find or open device!
/Users/zathlute/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
at file "/Users/zathlute/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
For assistance with OpenOCD errors, please refer to our Troubleshooting FAQ: https://github.com/espressif/openocd-es ... ooting-FAQ
OpenOCD Exit with non-zero error code 1
[Stopped] : OpenOCD Server
Error Connecting JTAG ESP32s3 DEV Board
Error Connecting JTAG ESP32s3 DEV Board
- Attachments
-
- Screenshot 2024-12-01 at 10.16.35 pm.png (153.14 KiB) Viewed 636 times
Re: Error Connecting JTAG ESP32s3 DEV Board
FIXED! Took a while... I'm not entirely sure what the main cause was although initially i think brew installed a version of openOCD in a different directory and VScode was trying to use that instead of the files in user/.espressif . To fix this I uninstalled and deleted whatever I could find that was related to the openOCD installation and used brew uninstall openocd. I then started the installation process from scratch following closely the official install documentation. The available youtube tutorials could lead you astray.
The second issue was with the DEV board where there are two usb c connections. 1 connection is directly connected to the UART and the other is connected to the built in jtag. The aftermarket board that i purchased had these ports switched so i was using the wrong connection most times.
And finally after rigourously following the debug setup documentation i was under the impression that you were to copy and use the examples in the getting started folder just like the setup documentation prior tells you to. I found that after doing that and trying to the use run and debug option in VS code it gave me broken default options... Turns out you need to create a new project first through the esp-idf extension in vs code and then choose the example when prompted to. This means that the launch.json settings.json and tasks.json are created properly in the .vscode folder of your project. Then you can select the correct debugger option- eclipse CDT GDB Adapter!
This was a very steep learning curve for me and i think if there was more effort put into the documentation to account for idiots like myself you would introduce many more people to embedded systems using the esp32 and not relying on arduino
The second issue was with the DEV board where there are two usb c connections. 1 connection is directly connected to the UART and the other is connected to the built in jtag. The aftermarket board that i purchased had these ports switched so i was using the wrong connection most times.
And finally after rigourously following the debug setup documentation i was under the impression that you were to copy and use the examples in the getting started folder just like the setup documentation prior tells you to. I found that after doing that and trying to the use run and debug option in VS code it gave me broken default options... Turns out you need to create a new project first through the esp-idf extension in vs code and then choose the example when prompted to. This means that the launch.json settings.json and tasks.json are created properly in the .vscode folder of your project. Then you can select the correct debugger option- eclipse CDT GDB Adapter!
This was a very steep learning curve for me and i think if there was more effort put into the documentation to account for idiots like myself you would introduce many more people to embedded systems using the esp32 and not relying on arduino
-
- Posts: 9836
- Joined: Thu Nov 26, 2015 4:08 am
Re: Error Connecting JTAG ESP32s3 DEV Board
This may have been part of the issue. GPIO19 and GPIO20 are the pins used for USB communication, so if you either connect something to that externally (like a LED) or reconfigure those pins in firmware, USB-serial-JTAG will stop working.
Who is online
Users browsing this forum: Google [Bot], MicroController and 72 guests