Skip to main content
Visitor II
October 13, 2021
Solved

Read SWV ITM Data with another program from STM32CubeIDE

  • October 13, 2021
  • 4 replies
  • 4000 views

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! :)

    This topic has been closed for replies.
    Best answer by Pavel A.

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

    4 replies

    Super User
    October 13, 2021

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

    STM32CubeMonitor does that job.

    hth

    KnarfB

    ST Employee
    October 13, 2021

    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".

    ST Employee
    October 13, 2021

    Here is the attachment.

    Pavel A.Answer
    Super User
    October 13, 2021
    WSher.1Author
    Visitor II
    October 14, 2021

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