Electronic – ST-LINK is serial communication possible

jtagmicrocontrollerstm32

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.

Best Answer

OK, The way to achieve communication in Atollic TrueStudio for ARM Lite (yes it works under lite wersion since 3.0):

  1. Enable Serial Wire Viewer in active debug configuration
  2. Show SWV Console (under Debug prespective)
  3. Open Serial Wire Viewer settings (first button in SWV Console window)
  4. Enable ITM Stimulus Port 0
  5. Enable Start/Stop Trace button in SWV Console (second button)
  6. Use ITM_SendChar function
  7. Enjoy debugging strings!