STM32F407G-DISC1 Timer2 Channel 1 as Input Capture not working
Hello,
I have set Timer2 Channel 1 as input capture for STM32F407G-DISC1 board and generated a code with STM32CobeMX.
Source code link: stm32-intro/timer2_general_input/Core/Src/main_app.c at 5d95347ebcc34a3142ddb65ea15c5016199e8dca · freecode23/stm32-intro · GitHub
1) In generated code, why am I getting HAL_TIM_Base_MspInit instead of HAL_TIM_IC_MspInit ?
2) In my main code I have to start the base timer then only IC callback is working.
3) Code always remains in callback and never come out of it, even it is not going into the while loop after starting the timer.
Thanks!
