Read SWV ITM Data with another program from STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 8: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.
- Labels:
-
ST-Link
-
STM32CubeIDE
-
STM32CubeMonitor
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 10:02 AM
Look at this for example: https://github.com/robertlong13/SWO-Parser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 2: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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 2:45 AM
Here is the attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 10:02 AM
Look at this for example: https://github.com/robertlong13/SWO-Parser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 5:51 PM
Yeet!! Exactly what I was looking for. Thank you! :)
