ESP32 JTAG log array
Posted: 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:
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?
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
And yes, I know that esp_log_write is not recommended to use. Any suggestions how to avoid it?