Page 1 of 1

Programming and Debug in ESP32-WROOM-32E

Posted: Thu Oct 01, 2020 6:01 am
by tejasgopal
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?

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

Posted: Sat Oct 03, 2020 7:57 am
by ESP_Sprite
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.