cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SWO in STM32H7B3I-DK board

ali rostami
Associate III

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:

  • The core clock is 280 MHz but I have to set the core clock to 140 MHz in SWV configuration of CubeIDE.
  • Each time that I start the debug mode, I have to toggle the 'Start Trace' button in 'SWV ITM Data Console'

0693W00000QNgk1QAD.pngAs 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

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..