Page 1 of 1

Debuggung ESP32-C6 with external JTAG probe

Posted: Thu Feb 13, 2025 12:15 pm
by dimitar.kunchev
I am new to ESP platform and this might be the wrong question but I am at a loss how to approach this.

I am trying to debug some code on ESP32-C6 (using the DevKit). It involves light sleep mode. Unfortunately, any attempt to debug with the built-in USB JTAG fails because it is disabled in this state. So I am trying to get an external JTAG probe worikng. I have purchased ESP-PROG kit for the purpose. However, openocd can't recognize the flash size ("Failed to get flash maps" etc; bank 0 is at size zero). I can't find a solution online - looks like everyone uses the built-in USB JTAG debugger.

How should I approach debugging light-sleep related problems? Is there a way to get openocd to recognize the flash size? Or there is another approach in this case at all?

Re: Debuggung ESP32-C6 with external JTAG probe

Posted: Fri Feb 14, 2025 6:17 am
by ahsrabrifat
If you are using an outdated version of OpenOCD, that can create this problem.

Re: Debuggung ESP32-C6 with external JTAG probe

Posted: Fri Feb 14, 2025 7:03 am
by dimitar.kunchev
OpenOCD 0.12, shipped with the ESP tools. Good call, considering I have another (older) version installed, but I verified that I used the correct one.