I am using STM32F4 discovery board and Atollic TrueStudio for ARM Lite 3
I would like to pass some debugging data to PC using printf and I can't find a way to do it through STLink. Is it even possible? It seems essential feature for any debugging process.
Edit: I need to use Serial Wire Viewer, but still no luck making it work.
Answer
OK, The way to achieve communication in Atollic TrueStudio for ARM Lite (yes it works under lite wersion since 3.0):
- Enable Serial Wire Viewer in active debug configuration
- Show SWV Console (under Debug prespective)
- Open Serial Wire Viewer settings (first button in SWV Console window)
- Enable ITM Stimulus Port 0
- Enable Start/Stop Trace button in SWV Console (second button)
- Use ITM_SendChar function
- Enjoy debugging strings!
No comments:
Post a Comment