Page 1 of 1

Debugging with UART

Posted: Thu Jul 27, 2023 5:30 am
by Vineethad
Hello Experts,

I am using ESP32-C6 Wifi module and the tool is ESP IDF with vscode. The Hardware design is completed so i have no chance using a JTAG debugger and the only possibility is using the UART interface.

Please help me how to debug ESP32-C6 module by using the UART interface.


Thanks & regards,
D. Vineetha.

Re: Debugging with UART

Posted: Thu Jul 27, 2023 7:55 am
by ESP_Sprite
Well, you could use printfs and log statements, but if you're expecting to attach an external debugger with ease: no chance.

Is the internal USB-serial-JTAG connected or the GPIOs for that (12 and 13) available? If so, you could still use the USB-serial-JTAG device.

Re: Debugging with UART

Posted: Thu Jul 27, 2023 9:20 pm
by ESP_igrr
There is also a runtime GDB server which allows debugging over UART; it is more limited than JTAG interface, though. An example of his feature is available here: https://github.com/espressif/esp-idf/tr ... em/gdbstub

Re: Debugging with UART

Posted: Mon Jul 31, 2023 6:44 am
by Vineethad
Thank you so much for all your quick replies.