Skip to main content
Yunlion
Associate II
Oct 15, 2025 2:38 PM UTC
Solved

I cannot get any useful printf() info from SWVITM data console in STM32N6570-DK. The displayed info are messy symbols.

i use STM32N6570-DK to do a simple project but i cannot get any useful info via printf() on SWVITM data console. 

(1) I add some code in systemcall.c for printf() on SWVITM data console or UART1 via a "define" in my main.c. (AS many professionals suggested on the net)   Now i can get info correctly by using uart but not the SWVITM. 

(2) I also choose SWD under DEBUG in .ioc config. Three wires are used. SWO is populated.

(2) when i use SWV ITM data console, the display is just messy symbols. AI told me that it is either due to the wrong Baud rate or wrong encoding. The default is UTF-8. I tried different Baud rates and coding standards. No one works. The same messy display 

(3) I have watched a few youtube clips and followed their methods. No one works either. 

Has anyone got the correct display of printf () in   SWV ITM data console ON THIS STM32N6570-DK?

Thanks a lot in advance!

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Oct 21, 2025 9:03 AM UTC

Hello @Yunlion.

 

Make sure that the SWV core clock is CPU clock/8.

Please look at this post "Solved: Enabling printf on NUCLEO-N657 in STM32CubeIDE - STMicroelectronics Community" may help you.

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.

2 replies

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Oct 21, 2025 9:03 AM UTC

Hello @Yunlion.

 

Make sure that the SWV core clock is CPU clock/8.

Please look at this post "Solved: Enabling printf on NUCLEO-N657 in STM32CubeIDE - STMicroelectronics Community" may help you.

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
KDJEM.1
ST Technical Moderator
Dec 11, 2025 10:01 AM UTC

Hello @Yunlion ;

 

Any update about the issue? Is my reply help you to fix the the problem?

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.