2025-08-26 2:53 PM
2025-08-26 4:52 PM
There's always the nuclear option:
__HAL_RCC_TIMx_FORCE_RESET();
__HAL_RCC_TIMx_RELEASE_RESET();
You can try disabling/reenabling the timer but I don't think it'll reset what you want.
2025-08-27 5:24 AM
It doesn't look like these functions exist in my version of the HAL. This is for the F446RE MCU.
2025-08-27 6:41 AM
They have existed in the F4 HAL for at least 6 years, likely longer.
2025-08-27 1:12 PM
Ah yes, there they are.
However I can't say calling these has solved my issue. Could you help me understand the intention?
I am guessing I need to trigger the input capture interrupt via software. Triggering an interrupt will consequently clear/reset the capture counter back to 0. Is this the idea?