SWO TRACE

cancel
Showing results for 
Search instead for 
Did you mean: 

SWO TRACE

201 Views
fabiobenevento
Contributor III

Good morning,

is possible to use SWO Trace with OpenSDA on Kinetis K64 board?

And if I use a second board as a SWD programmer?

What I have to do to enable it?

Thank you very much!

Labels (1)
Tags (1)
3 Replies

122 Views
ErichS
Senior Contributor II

OpenSDA does not support SWO.

You need an external debug probe which is capable dealing with SWO, e.g. see ARM SWO Performance Counters | MCU on Eclipse 

See as well:

Tutorial: Using Single Wire Output SWO with ARM Cortex-M and Eclipse | MCU on Eclipse 

I hope this helps

Erich

122 Views
fabiobenevento
Contributor III

Kinetis board as external debugger has SWO pin that I can use it to SWO Trace is right?

swo-trace-connected-to-debug-header.png

Do I also have to do something on firmware/project to allow its use?

0 Kudos

122 Views
ErichS
Senior Contributor II

No, you cannot use an external Kinetis as debugger to take advantage of the SWO pin, as that external Kinetis boards would run OpenSDA. As pointed out below: it is not possible to use SWO with OpenSDA because the OpenSDA firmware does not support SWO. The hardware (debug connector) would support it, but not the OpenSDA.

So: you need an external debug probe capable for SWO, either a SEGGER, a P&E or a LPCLink2 probe (as shown in above article).

You don't have to do anything in your application/firmware: the probe firmware will handle everything.