cancel
Showing results for 
Search instead for 
Did you mean: 

Read SWV ITM Data with another program from STM32CubeIDE

WSher.1
Associate II

Hello!

I'm able to use the STLink V2 and output printf statements to the debug SWV ITM Data Console within the STM32CubeIDE.

Is there a way I can access this data as it's coming in from another program? (e.g. a serial plotter).

I want to be able to see sensor readings live as they're coming in from the chip.

Thank you! :)

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III
5 REPLIES 5
KnarfB
Principal III

> I want to be able to see sensor readings live as they're coming in from the chip.

STM32CubeMonitor does that job.

hth

KnarfB

Ethan HUANG
ST Employee

Hello @Community member​,

This is the second question (the first is here) regarding redirection topic in two weeks so I think it is the right time to do some tests and make/share the summary.

You could use "SWV" feature in STM32CubeMonitor as shown in page 13 of the attachment. Assign the right system clock matching "FCLK Core clock" in "Clock Configuration" in STM32CubeIDE, and you will see your ITM message after pressing "Start".

Ethan HUANG
ST Employee

Here is the attachment.

Pavel A.
Evangelist III

Look at this for example: https://github.com/robertlong13/SWO-Parser

Yeet!! Exactly what I was looking for. Thank you! :)