Skip to main content
Roshan
Associate III
February 13, 2023
Question

How to use SWV logging without SWO pin?

  • February 13, 2023
  • 3 replies
  • 2752 views

Hi all,

I have custom hardware in the G4 series (491RE) and want to log some data. I don't have any communication method accessible now.

Only I can access SWDCLK and SWDIO pins. SWO pin used for another purpose. is there any method where I can get SWV data logging? I tried communicating with RTT (Stlink converted J-Link), but unfortunately, it won't support customs hardware. Is there any possibility of getting output through the SWDIO pin only (i need only one-way data communication, no need for duplex)

Thank you all

This topic has been closed for replies.

3 replies

Javier1
Principal
February 13, 2023
hit me up in https://www.linkedin.com/in/javiermuñoz/
KnarfB
Super User
February 13, 2023

Semi-hosting might be another option.

See AN4989 Application note STM32 microcontroller debug toolbox and https://shawnhymel.com/1840/how-to-use-semihosting-with-stm32/

hth

KnarfB

Pavel A.
February 13, 2023

>  I tried communicating with RTT (Stlink converted J-Link), but unfortunately, it won't support customs hardware.

Really? The Segger's RTT library of course does support custom boards. If Segger J-Link software recognizes your ST-Link with J-Link firmware, you're good to go.