JTAG programming ESP32-C3 devKit M

Wasabinary
Posts: 13
Joined: Fri Apr 23, 2021 10:09 am

JTAG programming ESP32-C3 devKit M

Postby Wasabinary » Mon Jul 12, 2021 1:47 pm

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?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: JTAG programming ESP32-C3 devKit M

Postby ESP_igrr » Mon Jul 12, 2021 3:39 pm

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.

BrianP
Posts: 53
Joined: Mon Apr 13, 2020 1:48 pm

Re: JTAG programming ESP32-C3 devKit M

Postby BrianP » Wed Jul 14, 2021 2:50 pm

You might find the suggestions here https://www.esp32.com/viewtopic.php?f=40&t=21809 helpful (including how to download a working OpenOCD).

Who is online

Users browsing this forum: digitalLumberjack and 51 guests