Debugging with UART

Vineethad
Posts: 53
Joined: Wed Jul 19, 2023 7:45 am

Debugging with UART

Postby Vineethad » Thu Jul 27, 2023 5:30 am

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.

ESP_Sprite
Posts: 9312
Joined: Thu Nov 26, 2015 4:08 am

Re: Debugging with UART

Postby ESP_Sprite » Thu Jul 27, 2023 7:55 am

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.

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

Re: Debugging with UART

Postby ESP_igrr » Thu Jul 27, 2023 9:20 pm

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

Vineethad
Posts: 53
Joined: Wed Jul 19, 2023 7:45 am

Re: Debugging with UART

Postby Vineethad » Mon Jul 31, 2023 6:44 am

Thank you so much for all your quick replies.

Who is online

Users browsing this forum: Addi2438 and 55 guests