I have followed the steps to enable the SWV, right from the ST32CubeMX, setting the Serial Debug, and etc, and finally printf. However, nothing happen.
Has anyone used that before. Any advice will be appreciated.
Are you sure your debugger support SWV/ITM? Does it have SWO pin connected?
I see that on Olimex STM32-E407 the pin is properly connected, JTAG's pin #13 PB3/TDO properly goes to processor's PB3 pin - this is the SWO pin.
Notice that I don't have much experience with STM32CubeMX myself, I just recently managed to get it working with Olimex debuggers and boards. It might be a good idea to check and maybe post in the ST community forums.
Many thanks. I managed to get it done. With those pinouts, yet I failed. However, further investigation shown that I need to set up the SWV Core Clock to the micro's HCLK.
Thank you so much.