Skip to main content
Hwoo-
Associate II
March 4, 2022
Question

SWO doesn't work

Hi, everyone

I use stm32f429ZI (180MHz)​

​

The setting contents were attached to the file

​

Any advice would be appreciated

​

Best regards,

​

​

​

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 4, 2022

What board?

Is PB3 / SWO pin wired to debugger or needs solder bridge made​?

Does ITM_SendChar() work?

Do you have plumbing working so STDIO uses SWV?​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
mattias norlander
ST Technical Moderator
March 8, 2022

The CubeMX configuration to enable Debug == Trace Asynchronous Sw, is actually not required at all with CubeIDE. Why? At debug launch, the CubeIDE will configure all needed registers on the device to allow SWV trace.

I also think that the first test should be to just use ITM_SendChar() directly to print a character on ITM-port 0. If this works, then you have to look at glueing it together in syscalls.c:_write() function to have printfs directed to ITM-port 0...

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.