cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SWV logging without SWO pin?

Roshan
Associate III

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

3 REPLIES 3
Javier1
Principal

try out STMstudio or Cubemonitor

we dont need to firmware by ourselves, lets talk
KnarfB
Principal III

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.
Evangelist III

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