SWOTraces in debug for printf on SW4STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-11 2:50 AM
I'd like to be able to output printf string on the Serial Wire Viewer window during the debug on SW4STM32. I've followed the tutorial in the in
Help >> Help Contents >> SystemWorkbench for STM32 User Guide >> Advanced >>SWOTraces.
But can find how to open the Serial Wire Viewer window.
Any help would be apreciated.
My board is the F411RE runing on windows10.
Generated the sw by the mean of STM32CUBEMX.
Placed into the /* USER CODE BEGIN 3 */ the code:
printf('it works');
but it doesn't...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-11 5:56 AM
Hi
lievre.gilles
,Refer to this thread it may help you:
https://community.st.com/0D70X000006StxhSAC
-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-11 11:23 AM
I think he's asking about opening the SWV output window, not output via a USART on to a terminal.
I don't use SW4STM32, but it is likely a subview pane in the debugger, akin to the 'Memory View' or 'Stack View' in other tools. One could also confirm it is working using the ST-LINK Utilities, which provides a SWV Viewer. Make sure core frequency matches settings.
The other thread also had an issue where the system Hard Faulted dues to an unaligned 64-bit read due to the stack not being at the correct alignment.
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
‎2017-04-11 2:43 PM
The tutorial showes this window but I can't get a hand on it:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-04-11 3:06 PM
That looks like the one from the ST-LINK Utilities. There is a tool-bar icon with 'SWV' in a terminal screen.
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
‎2017-04-12 2:36 AM
I confirm there's no SWV plug-in in SW4STM32 and you should use the one in ST-LINK Utility software.
In order 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-03 9:47 PM
Hi, Olivier GALLIEN
I develop STM32 in OSX system.There is no ST-LINK Utility software in OSX system, so I have no SWV to use.
What can i do for debugging via SWO in OSX system?
IDE:SW4STM32
DK:NUCLEO-F401RE
OS:OSX
Tools:ST-LINK2
Thanks a lot!
