Skip to main content
Refused_HC
Associate II
March 9, 2026
Solved

FreeRTOS task execution frequency changes with TouchGFX screen

Hello community,

I have this problem. I have a project with the STM32U575RGTx microcontroller.

It includes also FreeRTOS (Version 1.3.1) and a TouchGFX project (Version 4.26.0).

With this system configuration: Timebase Source TIM17

 

The TouchGFX project has screens that require more or less CPU, the problem that I have is that when one or other screen is selected the execution frequency of the FreeRTOS tasks and the HAL_TIM_PeriodElapsedCallback change their execution frequency, so I can not have a valid time reference to do other things in my firmware application.

 

Has anyone faced the same problem?

 

Much thanks in advance!

 

 

Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
March 26, 2026

Hello @Refused_HC ,

I think your configuration is wrong, first of all I see 15 as priority for your TIM17 which is the lowest priority, I think his needs to be higher like 4 (the lowest you set it, the highest is the priority).
I also invite you to look again at your TouchGFX thread config in your FreeRTOS config. We have a guide explaining how to set FreeRTOS properly, I strongly recommend you to check it if you've not already. If it still doesn't work after that, we'll check it together again :)

ST Software Developer | TouchGFX

4 replies

Osman SOYKURT
ST Technical Moderator
March 16, 2026

Hello @Refused_HC 

Could you send me your ioc file? (You can send me via private message if you prefer)

ST Software Developer | TouchGFX
Refused_HC
Associate II
March 17, 2026

Here it is @Osman SOYKURT and thanks in advance!

Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
March 26, 2026

Hello @Refused_HC ,

I think your configuration is wrong, first of all I see 15 as priority for your TIM17 which is the lowest priority, I think his needs to be higher like 4 (the lowest you set it, the highest is the priority).
I also invite you to look again at your TouchGFX thread config in your FreeRTOS config. We have a guide explaining how to set FreeRTOS properly, I strongly recommend you to check it if you've not already. If it still doesn't work after that, we'll check it together again :)

ST Software Developer | TouchGFX
Osman SOYKURT
ST Technical Moderator
April 7, 2026

Hello @Refused_HC ,

Did you manage to resolve your issue?

ST Software Developer | TouchGFX