cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS task execution frequency changes with TouchGFX screen

Refused_HC
Associate II

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!

 

 

4 REPLIES 4
Osman SOYKURT
ST Employee

Hello @Refused_HC 

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

Osman SOYKURT
ST Software Developer | TouchGFX

Here it is @Osman SOYKURT and thanks in advance!

Osman SOYKURT
ST Employee

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 :)

Osman SOYKURT
ST Software Developer | TouchGFX
Osman SOYKURT
ST Employee

Hello @Refused_HC ,

Did you manage to resolve your issue?

Osman SOYKURT
ST Software Developer | TouchGFX