Page 1 of 1

Use CMSIS-DAP boards to debug ESP32-S2-Saola-1 or the like?

Posted: Mon Jun 26, 2023 6:40 pm
by KurtEck
Wondering if it is possible to use a CMIS-DAP board to debug an ESP32-S2 board using the Arduino IDE 2.x IDE?
The only JTAG options I see are: Disabled, FTDI Adapter, ESP USB Bridge.

Disabled: I am assuming means no JTAG...

FTDI Adapter
: If I build for it, The GDB Server tab shows it failed:

Code: Select all

Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6014, description '*', serial '*' at bus location '*'
The VID/PID shows as an FTDI device... Assuming that this is for the ESP-Prog Development board:
https://www.amazon.com/Espressif-ESP-Pr ... B09D3VGR78

ESP USB Bridge: Is this for the esp32-s2-kaluga-1?
It fails with

Code: Select all

Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002
Info : esp_usb_jtag: capabilities descriptor set to 0x30a
Info : esp_usb_jtag: target chip id set to 2
Warn : Transport "jtag" was already selected
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: esp_usb_jtag: could not find or open device!
I am currently trying to connect to it using an Raspberry PI Pico using Free Dap Software (https://github.com/ataradov/free-dap)

With RPI pin, function to ESPS2 pin
11 SWCLK/TCK 39 MTCK
12 SWDIO 42 MTMS
13 TDI 41 MTDI
14 TDO 40 MTDO

Which I believe matched one of the document pages I was looking at.
Does this look correct? Have you tried it with other adapters?

Note: the ESP32-S2-Saola-1 Pin diagram https://docs.espressif.com/projects/esp ... pinout.jpg

Sort of shows pin 19, 20 as JTAG/USB - But I don't see that as an option, like I do for the C3 and S3?

Suggestions?

Thanks
Kurt