Debuggung ESP32-C6 with external JTAG probe

dimitar.kunchev
Posts: 2
Joined: Thu Feb 13, 2025 12:10 pm

Debuggung ESP32-C6 with external JTAG probe

Postby dimitar.kunchev » Thu Feb 13, 2025 12:15 pm

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?

ahsrabrifat
Posts: 56
Joined: Sat Jan 18, 2025 2:31 pm

Re: Debuggung ESP32-C6 with external JTAG probe

Postby ahsrabrifat » Fri Feb 14, 2025 6:17 am

If you are using an outdated version of OpenOCD, that can create this problem.

dimitar.kunchev
Posts: 2
Joined: Thu Feb 13, 2025 12:10 pm

Re: Debuggung ESP32-C6 with external JTAG probe

Postby dimitar.kunchev » Fri Feb 14, 2025 7:03 am

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.

Who is online

Users browsing this forum: Bing [Bot], floitsch_toit, Google [Bot] and 182 guests