Skip to main content
Visitor II
May 7, 2019
Question

Is it possible to show SWO trace from cli with ST-LINK_CLI or some other tool?

  • May 7, 2019
  • 2 replies
  • 1321 views

I'm using ST-LINK_CLI to flash my STM32F427 and I'd like to start SWO tracing after flashing. Is there a (Windows) command line tool which can do this? Currently running Win7, ST-LINK CLI v3.4.0.0 and ST Link  FW: V2J33S7

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 7, 2019

    Hello,

    J-Link commander should be able to do this but you'd need of course to use a J-Link probe. Note however that you can turn most onboard ST-Links into J-Link (and revert them back) as described here: st-link-on-board

    As an alternative, you could use openocd and this tool: https://github.com/robertlong13/SWO-Parser

    There's also a pretty interesting and full-featured open source tool for SWO tracing named Orbuculum but unfortunately it runs on Linux and OSX only.

    Visitor II
    May 7, 2019

    Hi.

    STLink utility supports trace view with fixed freq 2MHz.

    PB3 pin must be connected to SWO pin of STinkV2.(plus all the others for SWD)

    0690X000008BOBXQA4.jpg