Page 1 of 1

JTAG programming ESP32-C3 devKit M

Posted: Mon Jul 12, 2021 1:47 pm
by Wasabinary
Hi,

After successfully flashing my code using a JLINK and JTAG pins( TDO, TDI, TCK and TMS) of an ESP32-S2-SAOLA-1 board, I tried to do the same with an ESP32-C3-DevKitM-1, following the instruction given here : https://docs.espressif.com/projects/esp ... index.html

Unfortunately, I am not able to use JTAG with this ESP32-C3 board, even after downloading the newest version of openocd-esp32 and checking my connections multiple times.


I keep receiving an error when launching the command C:/path/to/openocd.exe -f C:/path/to/interface/jlink.cfg -f C:/path/to/target/esp32c3.cfg -c "program_esp test.bin 0x10000 verify exit"
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32c3.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors


I tried changing the adapter frequency in the jlink.cfg file, but it does not change anything.

Any idea?

Re: JTAG programming ESP32-C3 devKit M

Posted: Mon Jul 12, 2021 3:39 pm
by ESP_igrr
Hi Wasabinary,
Looks like you have also opened an issue at https://github.com/espressif/openocd-esp32/issues/165, let's continue troubleshooting it there.

Re: JTAG programming ESP32-C3 devKit M

Posted: Wed Jul 14, 2021 2:50 pm
by BrianP
You might find the suggestions here https://www.esp32.com/viewtopic.php?f=40&t=21809 helpful (including how to download a working OpenOCD).