Programming and Debug in ESP32-WROOM-32E

tejasgopal
Posts: 3
Joined: Mon Sep 21, 2020 9:43 am

Programming and Debug in ESP32-WROOM-32E

Postby tejasgopal » Thu Oct 01, 2020 6:01 am

Is it possible to program the ESP32-WROOM-32E using the UART0 port (Pins 34 and 35) and use the UART2 port (Pins 27 and 28) for debugging and retrieving logs?
or is JTAG necessary for debugging?

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

Re: Programming and Debug in ESP32-WROOM-32E

Postby ESP_Sprite » Sat Oct 03, 2020 7:57 am

Yes, you can. I think the selection of logging UART is somewhere in Menuconfig. Be aware that you can't redirect everything over UART2; for instance, the bootrom signon messages still will appear on UART0.

Also, JTAG is necessarily for certain types of debugging (specifically: using gdb with a 'live' system). If you can get away with using printf-style debugging and the 'forensic' GDBStub that you can select to show up after the system crashes, you don't need JTAG.

Who is online

Users browsing this forum: No registered users and 130 guests