FreeRTOS task not running with touchgfx
Hello,
I have a basic touchgfx project working through designer and IAR. But when I add another FreeRTOS task, the task I add does not run. If I comment out the touchgfx task, my task runs just fine. I've adjusted priorities and that does not work.
This is the main.cpp code I've added:
xTaskCreate(ShellTask, (TASKCREATE_NAME_TYPE)"ShellTask",
configGUI_TASK_STK_SIZE,
NULL,
configGUI_TASK_PRIORITY+1,
NULL);
xTaskCreate(GUITask, (TASKCREATE_NAME_TYPE)"GUITask",
configGUI_TASK_STK_SIZE,
NULL,
configGUI_TASK_PRIORITY,
NULL);Here is my shell_process.cpp code:
FrontendApplication* App = static_cast<FrontendApplication*>(Application::getInstance());
int myScreen = 1;
void ShellTask( void * pvParameters )
{
for( ;; )
{
vTaskDelay(10000);
if(myScreen == 0)
{
App->gotoScreen1ScreenNoTransition();
myScreen = 1;
}
else
{
App->gotoScreen2ScreenNoTransition();
myScreen = 0;
}
}
}The task is very simple, transition screens every 10 seconds. When I run this task with the touchgfx task and set a breakpoint on vTaskDelay() it is never getting triggered. I've followed similar examples that were online and I'm not sure what is wrong. Any help is greatly appreciated.
Also, even though this task isn't running, the touchgfx application works correctly. I have buttons that toggle through the screens as well. That all works.
Thanks.
