Skip to main content
Visitor II
October 15, 2025
Question

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

  • October 15, 2025
  • 2 replies
  • 149 views

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!

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    October 21, 2025

    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

    Technical Moderator
    December 11, 2025

    Hello @Yunlion ;

     

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

     

    Thank you.

    Kaouthar