STM32H7 : Activating SWO with CubeMX and TrueSTUDIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 5: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.
- Labels:
-
DEBUG
-
STM32CubeMX
-
STM32H7 Series
-
TrueSTUDIO
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 8: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 6: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. ​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 7: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 :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 8: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 8:53 AM
It WORK! You are amazing! Thank you very very much i'm very impressed. Thank you again :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-10-27 9: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
Up vote any posts that you find helpful, it shows what's working..
