Log messages via JTAG interface

Passing log messages over the JTAG interface, instead of UART0 Espressif resources https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/app_trace.html#app-trace-logging-to-host Getting it working esp_app_trace.h needs app_trace adding to your AMakeLists.txt Then in your project: A work in progress…so far we’ve been unable to make this feature actually work…!Got to here: https://www.esp32.com/viewtopic.php?f=13&t=33205&p=112706#p112706

Read More

Using UART0, disable logging output

Disable UART logging within the config. Write your own log function with esp_log_set_vprintf. Disable UART0 bootloader and log output Run “idf.py menuconfig”, as explained on this page. Bootloader config > Bootloader log verbosity Default is “Info”, change it to “No output” to disable bootloader output Component config > Log output > Default log verbosity Default is […]

Read More

.Writing to the ESP_LOG#

Resources https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/system/log.html Why use the log instead of printf? Writing to log What we do Including values Including strings Value format codes See here. Enabling/disabling logs from being output E.g. selectively including messages from certain files, production release code where you don’t want messages to appear at the serial port or take time away from […]

Read More