Debuggung ESP32-C6 with external JTAG probe
Posted: 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?
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?