Question
TouchGFX_Task() not called with project generated by designer.
The generated code:
/* Definitions for TouchGFXTask */
osThreadId_t TouchGFXTaskHandle;
const osThreadAttr_t TouchGFXTask_attributes = {
.name = "TouchGFXTask",
.stack_size = 3048 * 4,
.priority = (osPriority_t) osPriorityNormal,
};and
TouchGFXTaskHandle = osThreadNew(TouchGFX_Task, NULL, &TouchGFXTask_attributes);With this code TouchGFX_Task() is never called.
So as a test I duplicated everything:
/* Definitions for TouchGFXTask */
osThreadId_t TouchGFXTaskHandle;
const osThreadAttr_t TouchGFXTask_attributes = {
.name = "TouchGFXTask",
.stack_size = 3048 * 4,
.priority = (osPriority_t) osPriorityNormal,
};
osThreadId_t TouchGFXTaskHandle2;
const osThreadAttr_t TouchGFXTask_attributes2 = {
.name = "TouchGFXTask2",
.stack_size = 3048 * 4,
.priority = (osPriority_t) osPriorityNormal,
};and
/* Create the thread(s) */
/* creation of TouchGFXTask */
TouchGFXTaskHandle = osThreadNew(TouchGFX_Task, NULL, &TouchGFXTask_attributes);
/* USER CODE BEGIN RTOS_THREADS */
/* add threads, ... */
TouchGFXTaskHandle2 = osThreadNew(TouchGFX_Task2, NULL, &TouchGFXTask_attributes2);
/* USER CODE END RTOS_THREADS */Now TouchGFX_Task() is called but TouchGFX_Task2() is not called!
Adding more threads has no difference, they are never called but TouchGFX_Task() is.
Has anyone any idea what might be going on here?
Thanks
Andy
