2020-02-18 11:33 PM
I configured to generate the TIM12 update interrupt and call in the TIM8_BRK_TIM12_IRQHandler() -> HAL_TIM_PeriodElapsedCallback().
I confirmed TIM12 IRQ in the TIM8_BRK_TIM12_IRQHandler().
however it dose not enter in the HAL_TIM_PeriodElapsedCallback().
void TIM8_BRK_TIM12_IRQHandler(void)
{
// TIM12 Update Interrupt is occurred and call the below IRQHandler.
HAL_TIM_IRQHandler(&htim12); // --> HAL_TIM_PeriodElapsedCallback(htim);
}
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{// timebase tick interrupt (1us)
if (htim->Instance == TIM14) {
HAL_IncTick();
}
else if(htim->Instance == TIM12)
{ // dose not enter
if(TIM12->SR & TIM_SR_UIF) {
TIM12->SR = ~TIM_SR_UIF;
printf("TIM12 Interrupt....%d\n",i++);
}
}