2021-10-12 08:25 PM
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! :)
Solved! Go to Solution.
2021-10-13 10:02 AM
Look at this for example: https://github.com/robertlong13/SWO-Parser
2021-10-12 11:11 PM
> I want to be able to see sensor readings live as they're coming in from the chip.
STM32CubeMonitor does that job.
hth
KnarfB
2021-10-13 02:28 AM
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".
2021-10-13 02:45 AM
2021-10-13 10:02 AM
Look at this for example: https://github.com/robertlong13/SWO-Parser
2021-10-13 05:51 PM
Yeet!! Exactly what I was looking for. Thank you! :)