Hi,
Does the ST-Link debug adapter support logging of trace data? I'm using a Nucleo board and according to the schematic the SWO pin on the target MCU is connected to the debug adapter, but there is no Trace Data menu item under View/Trace.
In the documentation only the ULink adapter is mentioned to be used with trace data. I did not find any information whether this feature is supported by other adapters or not. A feature matrix could be really helpful I think.
I think I have seen trace data with other adapters earlier. Like Freescales's Freadom board or NXP's LPCXpresso, but I have to check.
In case of the ST-Link adapter there is no option for SWJ in the settings window of the adapter. Might it be the problem? May I assume that only those adapters support this feature which has SWJ option?
Thanks and regards, Laszlo
ST-Link also supports Trace. However you need to use the SWD communication mode as trace is output via SWO.
Take a look here:
- http://www.keil.com/appnotes/files/apnt_268.pdf - page 23 - http://www.keil.com/appnotes/files/apnt_253.pdf - page 4
Not every board supports that and on some you need to solder a bridge.
SWV/SWO interface works fine on ST-LINK and Nucleo devices. Not going to work on Cortex-M0 parts.
The frequency settings in the Trace pane needs to match the speed you're running the processor.
Hi Reinhard,
Thanks for your quick and kind reply. These documents you have referenced were really helpful.
Now it seems that the trace feature somewhat works, but I can not find what I really want to use, the Instruction Trace window.
I can not find any menu item to activate it. Could you please give me a hint what can be the reason for this?
I have an MDK-ARM Professional license, so I hope the problem is not license related. This board has an STM32F303RE MCU with CM4F and ETM.
Thanks fro your kind help in advance.
Best regards, Laszlo
Hi Westonsupermare Pier,
Thanks for your quick and kind reply. I have a CM4F device so I think it should work.
Thanks for the hint regarding the operating frequency, I have double checked and it was not correctly set.
As I have written in my previous reply, now the Trace feature seems to work, but I can not activate the Instruction Trace Window for some reason.
Thanks for your kind help.