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?