HAL_TIM_PWM_PulseFinishedCallback() not getting called
I've created a single pulse that executes for about 150ms. When it's complete I was expecting HAL_TIM_PWM_PulseFinishedCallback() to be called, however, it never is.
Doing this:
if (HAL_TIM_OnePulse_Start(&htim1, TIM_CHANNEL_1) != HAL_OK) {
/* Starting Error */
Error_Handler();
}Then in the main while() loop when a certain condition is met:
__HAL_TIM_ENABLE(&htim1);My oscilloscope shows the pulse occurs at the correct time for the correct duration.
Why wouldn't the callback execute?
Thanks,
