cancel
Showing results for 
Search instead for 
Did you mean: 

Does adding new task in touchgfx project, eliminates working of __weak void TouchGFX_Task(void *argument) ?

Shiv09
Associate III

Hello All,

I am working on touchgfx project where I had default __weak void TouchGFX_Task(void *argument) task which was working fine for GUI and touch.

Later I have added other task for data transfer over uart1 using another task in main. 

 

Now the problem is the GUI task is showing only first screen and getting freeze, no touch detection and other task is sending data over uart (which is working fine).

 

Does adding additional task causing the elimination of TouchGFX_Task, or do I need to make some more settings or changes to TouchGFX_Task to function normal ?

 

1 REPLY 1
LouisB
ST Employee

Hello @Shiv09,

This looks like a issue with your new task running with a higher priority than the TouchGFX_Task, which cant be selected by the scheduler.
Check the way you do your UART communication, some tutorial exist and I can recommend : Getting Started With STM32 and Nucleo Part 2: How to Use I2C to Read Temperature Sensor TMP102 and Introduction to RTOS Part 3 - Task Scheduling | Digi-Key Electronics

BR,

Louis BOUDO
ST Software Engineer | TouchGFX