Dear friends,
I have been able to use Jlink as a debugger either in PlatformIO IDE in vscode and also in the Espressif extension for the ESP32 Wroom module. Now it is two days I’m searching to configure And use jlink so that I can use SWO viewer. So I have 3 questions.
Is it possible to use SWO or TDO as in Jtag to view serial wire output messages?
If the question 1 answer is yes, How should I configure my project?
I have tested the example project app_trace_to_host_example but no success.
How Can I view the SWO messages? Jlink SWO viewer doesn’t support ESP32 at all.
Your answers are appreciated, preferably soon, and the working one if any exists.
First and foremost, App trace to host is now working for me but esp_apptrace_flush. But this is based on ESPidf. is there any equivalent in Platformio?
Second, esp_apptrace_flush is not working, that is I need to make trace stop to view the file. The instruction I use in the series is as follows.
PlatformIO disables by default the Telnet server of the OpenOCD instance, unless you set e.g. debug_port = 127.0.0.1:3333 in the platformio.ini and start OpenOCD on the commandline manually.
However, you should be able to equivalentely trigger the command by just using “monitor <original openocd command>” as an extra GDB command (which GDB will forward to OpenOCD).