JTAG logging in vscode
Posted: Mon Aug 02, 2021 1:15 pm
I get no output on a console in vscode when I use
in the code and have Application level tracing enabled in the SDK config.
Is there anything else to be configured in vscode to get this going?
I remember setting up a special openocd command in the eclipse plugin for the same functionality like explained here: https://github.com/espressif/idf-eclips ... issues/192.
I cannot do this using the
mentioned at https://github.com/espressif/vscode-esp ... ug-adapter, because this results in a connection refused error (See attachement).
Code: Select all
#include "esp_app_trace.h"
#include "esp_log.h"
char buf[] = "JTAG apptrace logging works!\n";
volatile esp_err_t res = esp_apptrace_write(ESP_APPTRACE_DEST_TRAX, buf, strlen(buf), 1000);
esp_apptrace_flush(ESP_APPTRACE_DEST_TRAX, 1000);
Is there anything else to be configured in vscode to get this going?
I remember setting up a special openocd command in the eclipse plugin for the same functionality like explained here: https://github.com/espressif/idf-eclips ... issues/192.
I cannot do this using the
Code: Select all
initGdbCommands