2026-04-24 4:49 AM
Hello everyone,
I have a NUCLEO-H755ZIQ board and I am trying to use the HRTIM to output a 50Hz pwm signal. I hook the output to an oscilloscope and I see that the pulse has a period of 19.2ms instead of 20ms, meaning that while I have configured the clock for the HRTIM to run at 2MHz (meaning that it needs 40000 ticks to complete a period) it runs at 2.6MHz. Can anyone help me understand what am I doing wrong? I have attached the .ioc file.
Thanks in advance!
Solved! Go to Solution.
2026-04-26 7:27 PM
since HRTIM has a dedicated kernel clock from RCC, you can use the MCO to output the reference clock and check if the reference clock is also wrong.
2026-04-24 5:56 AM
Perhaps someone can help you if you also attach the IOC file.
Regards
/Peter
2026-04-24 7:06 AM
2026-04-26 4:25 AM
Hello guys,
Has anyone checked out if I am doing something wrong in the chip configuration or I broke it?
Thanks again.
2026-04-26 7:27 PM
since HRTIM has a dedicated kernel clock from RCC, you can use the MCO to output the reference clock and check if the reference clock is also wrong.
2026-04-27 2:44 AM - edited 2026-04-27 2:45 AM
Hi @Shirley.Ye,
After a long search, I concluded that the problem was the clock that the st-link provides. Thanks for telling me the way to validate it.