2025-12-08 5:46 AM - last edited on 2025-12-08 6:44 AM by Andrew Neil
I am trying to use SWD for printing using ITM_Sendchar, Printf not calling _write, I tried to put breakpoint and see, But it is not hitting breakpoint
Solved! Go to Solution.
2025-12-10 6:49 AM
Clock speed needs to match.
Doesn't the STM32F3 have a default HSI of 8 MHz?
Use that speed.
Perhaps also output to the VCP USART so you can see in a Terminal app, and print out SystemCoreClock to confirm.
2025-12-10 7:17 AM
Plumbing on the HW and SW side seem OK.
Would check the clocking, because that needs to mesh. MCU starts off an internal clock, you'd need to enable external ones or setup PLL for that to be working.
The UART initialization unpacks the clocking, buses and sources to get baud rate there.
2025-12-11 7:48 AM
That's totally ok, Thank you
2025-12-11 7:54 AM
I was trying not to use HAL Drivers, But surely I will try this once
2025-12-11 7:57 AM
I just tried with 8Mhz, It worked, it was the clock mismatch. Thank you