Page 1 of 1

ESP32 JTAG log array

Posted: Thu Dec 31, 2020 8:37 am
by Viktor
Hi!
As I see, ESP32 JTAG logging (trace to host) doesn't support sending strings from RAM, only from ROM. I can't see ESP_LOG_BUFFER_HEX output in my log file in case of JTAG logging (not UART). Seems like it's not a bug :) But how can I simply send binary data array? Currently I use:

Code: Select all

esp_log_set_vprintf(esp_apptrace_vprintf);
esp_log_write(logLevel, tag, "%02x ", oneByte); // for each byte
esp_apptrace_flush(ESP_APPTRACE_DEST_TRAX, timeout); // flush collected log data now
Is there a better way to log arrays?
And yes, I know that esp_log_write is not recommended to use. Any suggestions how to avoid it?

Re: ESP32 JTAG log array

Posted: Tue Aug 20, 2024 4:11 am
by Dominikzz
Hi to all reading this few years later ;)
I had the same problem but macro ESP_LOG_BUFFER_HEX_LEVEL(tag, buffer, len, ESP_LOG_ERROR) seems to work.