2026-02-04 11:25 PM
Hello all, I explain you my problem the best I can.
I have a project with the MCU STM32U575RGT6 The project has TouchGFX and FreeRTOS. After the initializations of the peripherals, I have the next calls, so the while(1) in main.c is not executed. As you can see in the next image.
So for the moment the only main loop I have detected in the application is the timer interruption.
In CubeMX I have 3 timers defined: TIM17, which is been assigned to the system as the timebase source:
And timers 2 and 4 with the same exact parameters in CubeMX: (timer3 is related to an encoder....)
I initialize the corresponding interruptions.
The problem is that in the interruption HAL_TIM_PeriodElapsedCallback I never get the call of the timer 4 instance.
Any help will be welcome.
2026-02-05 12:06 AM - edited 2026-02-05 12:10 AM
Hello @Refused_HC
Can you check please Timer4 registers (TIM4_CR1,TIM4_ARR,TIM4_PSC,TIM4_CNT),are they getting initialized and working like they should be?
Additionally, monitor the related pin to determine whether the timer generates a signal if possible.
BR
Gyessine
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.