2018-10-27 05:51 AM
Hello,
I'm independent developer involved in a STM32H7 project.
I need to activate traces in SWV console of TrueSTUDIO.
I've attached my .io CubeMX project, I think it is well configured.
I've configured in the debugger tab of TrueStudio : SWD // SWV checkbox
I've checked the port 0 of "ITM Stimulus ports" zone in the "Configure Trace" window and activated "Start Trace" button.
Finally in the main loop of my program i've added : ITM_SendChar('T');
Nothing appear in the SWC console, is anybody can help ?
Solved! Go to Solution.
2018-10-27 08:33 AM
Cut-n-paste from a phone is super difficult
There is a C function in one of posts that sets things up properly for Keil and ST-LINK Utilities SWV window. You don't even have to pick the right frequency
https://community.st.com/s/question/0D50X00009ce0vWSAQ/nucleoh743zi-board-and-printf-swo-not-working
2018-10-27 06:32 AM
Hello,
there is a very good article on how to the use SWO with TrueStudio in the Atollic Forum. Maybe this will help you to get some data out:
Good Luck,
Emin Yagmahan
2018-10-27 06:38 AM
The topic of SWV on the H7 has been discussed here several times. You either need to enable it via a debugger script or embed a C function to achieve the same. Do a quick search.
2018-10-27 07:02 AM
Hi,
Many thanks for your quick reply, I really appreciate.
Unfortunately I have already read this useful article but this does not resolve my problem :(
2018-10-27 07:26 AM
Hello,
I've searched all the day and read a lot of posts and it was very helpful. I think I have all configured at best but something remain wrong and it's for that reason I have poste my ".io" file.
If someone can help me I'll really appreciate.
2018-10-27 08:33 AM
Cut-n-paste from a phone is super difficult
There is a C function in one of posts that sets things up properly for Keil and ST-LINK Utilities SWV window. You don't even have to pick the right frequency
https://community.st.com/s/question/0D50X00009ce0vWSAQ/nucleoh743zi-board-and-printf-swo-not-working
2018-10-27 08:53 AM
It WORK! You are amazing! Thank you very very much i'm very impressed. Thank you again :)
2018-10-27 09:22 AM
Thanks. A lot of content seems to have gotten damaged or broken in the last forum migration. The search here is also pretty poorly executed, shame on SalesForce
@Torsten Jaekel did a lot of the pushing of this topic, and I think @Nawres GHARBI for the scripting.
https://community.st.com/s/question/0D50X00009XkhURSAZ/stm32h7-swo-printf-not-working