2025-10-15 7:38 AM
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!
2025-10-21 2:03 AM
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 Accept as Solution on the reply which solved your issue or answered your question.