ESP32 debugging working using a ESP-PROG board together with an ESP32-S3 dev board

MichaelS
Posts: 29
Joined: Mon Jul 08, 2024 12:08 am

ESP32 debugging working using a ESP-PROG board together with an ESP32-S3 dev board

Postby MichaelS » Wed Aug 21, 2024 6:31 am

I am trying to get ESP32 debugging working using a ESP-PROG board together with an ESP32-S3 dev board.

I am using VSCode with IDF ver 5.3. I have tried following a few guides and videos but they are a little different and some are out of date.

So far:

I have connected up the JTAG interface pins from the debug board to the ESP32-S3 as follows.
  1. Debug board                  ESP32-S3
  2. TDI --------------------------GPIO41 pin 41
  3. TDO ------------------------GPIO40 pin 40
  4. TCK-------------------------GPIO39 pin 39
  5. TMS-------------------------GPIO42 pin 42
  6. VJTAG----------------------3v3
I used Zadig to update my drivers for the dual RS-232 0

Windows device manager shows:
Under Ports (COM & LPT)
USB Serial CH343 (COM19)
USB Serial Port (COM20)

and under USB Devices
DUAL RS232-HS

In a terminal I run:
  1. PS .....> openocd --version
  2. Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
  3. Licensed under GNU GPL v2
  4. For bug reports, read
  5.         http://openocd.org/doc/doxygen/bugs.html
But when I run:
  1. PS .....> openocd -f board/esp32s3-builtin.cfg
  2. Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
  3. Licensed under GNU GPL v2
  4. For bug reports, read
  5.         http://openocd.org/doc/doxygen/bugs.html
  6. Info : only one transport option; autoselecting 'jtag'
  7. Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
  8. Info : esp_usb_jtag: capabilities descriptor set to 0x2000
  9. Info : Listening on port 6666 for tcl connections
  10. Info : Listening on port 4444 for telnet connections
  11. Error: esp_usb_jtag: could not find or open device!
  12. C:\Users\micha\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error:
  13. at file "C:\Users\micha\.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
Can any help with this or point me to a guide which will help.
Thanks

Who is online

Users browsing this forum: Bing [Bot] and 117 guests