2018-10-16 07:16 PM
In my nucleo L432KC, I have set Timer 1 for PWM generation, Timer 15 as a timer based interrupt and Timer 2 as PWM input mode. Timer 1 and Timer 15 works well until a point. For example, I wanted a 50 kHz update event, so I set Timer 15 Precaler 0 and period 39. in that case While(1) loop never executes.
When I start timer 2 as:
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_3);
HAL_TIM_IC_Start_IT(&htim2, TIM_CHANNEL_4);
My timer 1 misbehaves. What could be happening here?