ESP32 JTAG log array

Viktor
Posts: 10
Joined: Mon Nov 30, 2020 10:48 am

ESP32 JTAG log array

Postby Viktor » Thu Dec 31, 2020 8:37 am

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?

Dominikzz
Posts: 1
Joined: Tue Aug 20, 2024 4:04 am

Re: ESP32 JTAG log array

Postby Dominikzz » Tue Aug 20, 2024 4:11 am

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.

Who is online

Users browsing this forum: Teh2024 and 119 guests