2022-08-15 02:43 AM
I tried to redirect printf function to SWV. At first, I was not successful at doing so, until with some modifications and conditions it is working now:
As doing these are not normal, I'm wondering if I'm missing anything or if it is a known bug?
Also, I have to mention that I couldn't see the printed message with STM32CubeProgrammer.
PS: the firmware of on board ST-LINK is upgraded to V3J8M3
2022-08-15 07:16 AM
The correct configuration of the SWO (SWV) requires an understanding of what the SWCLK is, and what the core is running at, the baud clock on the core side will be a programmable fraction of SYSCLK.
Neither side explicitly communicates what it is using.