JTAG logging in vscode

tobias.boesch
Posts: 6
Joined: Tue Apr 28, 2020 7:02 am

JTAG logging in vscode

Postby tobias.boesch » Mon Aug 02, 2021 1:15 pm

I get no output on a console in vscode when I use

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);
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

Code: Select all

initGdbCommands
mentioned at https://github.com/espressif/vscode-esp ... ug-adapter, because this results in a connection refused error (See attachement).
Attachments
conrefused.png
conrefused.png (4.03 KiB) Viewed 4509 times

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: JTAG logging in vscode

Postby ESP_bignacio » Tue Aug 03, 2021 4:37 am

What is the content of your launch.json ? If you are using mode: manual then it means the extension is going to connect to an existing debug adapter server (executed by yourself somewhere else).

Otherwise please share the content of Debug adapter output and the log as explained here https://github.com/espressif/vscode-esp ... leshooting.

Not sure what you want to do also. This error is because you are trying to debug the application. If you want to do some application tracing check out https://github.com/espressif/vscode-esp ... tracing.md or https://github.com/espressif/vscode-esp ... tracing.md

Who is online

Users browsing this forum: No registered users and 37 guests