CubeMX doesn't generate interrupt handle for Time base timer
- January 28, 2020
- 5 replies
- 3673 views
Hello,
I'm using STM32CubeMX 5.5.0 and Discovery board for STM32H747XIHx with FreeRTOS. FreeRTOS uses system tick timer and I use TIM7 as Timebase source, but this issue happen also if I use other timers then TIM7. When my *.ioc project is opened and I set TIM7 as Timebase source than I can see "Time base: TIM7 global interrupt" line in NVIC1->Code generation and I can enable to generate IRQ and HAL handler. The problem is when I close the *.ioc file in IDE and open it again (or when I open my whole project) then this line is missing and CubeMX won't generate interrupt or timer handler if I click on generate code button. If I want to have that line in NVIC1->Code generation again, I have to change the Timebase source in SYS to another timer and change it back to my TIM7, than I can see that line in NVIC1->Code generation again and the code is generated correctly.
Update: I forgot to mention that sometime also "Call HAL handler" option for "USB On The Go HS global interrupt" in NVIC1->Code generation automatically uncheck from some reason and I have to troubleshoot the code to find out that the HAL handler is not called from interrupt routine.
Thanks,
Petr
