I am trying to redirect printf() to ITM using the tutorial in here and view the output. I followed the steps as shown in that video but I was unable to see the output because I have a FREE version. I noticed that STM32 ST-LINK utility software also has SWV option. So I tried the following.
1. ST-LINK firmware update (successful)
2. Target connect (successful)
3. Clicked SWV icon
4. Entered 216 MHz in System clock and stimulus port is set to 0
5. Clicked start
I can't see any output here.
My project cubeMX configuration is as follows:
SYS is configured as Trace Asynchronous SW. The rest of the pins are in default state. I am using printf() to print output.
I connected my board via ST-LINK USB port to my computer. How do I see the printf() output?
I also tried to define a _write function main.c and calling printf() as described in 10_Complementary debug tools - printf.pdf in STM material\USER_MATERIAL\Slides but that didn't help either. Any ideas on how to get this ITM work?