2017-04-11 02: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...
2017-04-11 05:56 AM
Hi
lievre.gilles
,Refer to this thread it may help you:
https://community.st.com/0D70X000006StxhSAC
-Nesrine-
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.
2017-04-11 02:43 PM
The tutorial showes this window but I can't get a hand on it:
2017-04-11 03:06 PM
That looks like the one from the ST-LINK Utilities. There is a tool-bar icon with 'SWV' in a terminal screen.
2017-04-12 02:36 AM
I confirm there's no SWV plug-in in SW4STM32 and you should use the one in ST-LINK Utility software.
2018-06-03 09: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!