AnsweredAssumed Answered

Timer interrupt works immediately

Question asked by David Martins on Jun 21, 2016
Latest reply on Jun 21, 2016 by David Martins

I have configured the timer 6 to interrupt every 3s, but immediately after initialize the timer the interrupt occurs.


1 - HAL_TIM_Base_Init (&htim6);
2 - HAL_TIM_Base_Start_IT(&htim6);
3 - "immediately" (almost) it goes to interrupt handler...

How can I resolve this problem?

Thank you.