2025-02-27 6:09 PM - edited 2025-02-27 6:13 PM
Hi All,
I am trying to run FreeRTOS and TouchGFX on an STM32H7S7I8T with TIM6 as the timebase source. I am running into an issue where uwTick is not incrementing, this is due to HAL_IncTick not being called. Tracing it back, HAL_TIM_IRQHandler is never called even though in the registers TIM6->SR->UIF is set. The CNT register also counts up and resets as expected. So clearly the interrupt is pending but just never fired. I figured it may be NVIC priority issue, but since uwTick just remains at 0 even before hitting osKernelInitialize() and the code should not tied up in any other interrupts, I don't think this is the issue.
To make things weirder, I have a very similar project running on the STM32H7S78-DK with all of the same configuration and that works perfectly. I have confirmed that the registers between the two are identical.
I have attached the project.
Thanks in advance!
2025-03-03 1:07 AM
Hello @repaint,
I cannot see your NVIC configuration for TIM6 nor the TIM initialization code
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-03-03 5:39 PM - edited 2025-03-03 5:40 PM
Hi @Sarra.S
Please see the file stm32h7rsxx_hal_timebase_tim.c in Appli/Core/Src. This is the file generated by MX that configures and initializes TIM6.
2025-03-05 10:49 PM