2021-06-04 12:56 AM
I use FreeRtos. I know that the main loop is starting when the function TouchgfxProcess. But I don't know where this function is called. I think it's when the oskernelStart is called but I didn't find where. Could you give me some explanations ?
Thanks
2021-06-04 10:10 AM
Try locate
void StartDefaultTask(void const * argument)
{
/* USER CODE BEGIN 5 */
MX_TouchGFX_Process();
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END 5 */
}
2021-06-06 11:55 PM
The only task I found is this one :
I don't where the task Touchgfx_Process is running.
2021-06-07 08:49 AM
You dont write where is this code, but seems as weak predefined task in some header. Weak function in C++ can be overided .
I use cubemx generated codes and here is TouchGFX as default task added to RTOS in main code. And start MX_TouchGFX_Process(); i add manualy, then you need same step add or overide your weak task with
void TouchGFX_Task(void const * argument)
{
/* USER CODE BEGIN 5 */
MX_TouchGFX_Process();
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END 5 */
}
2021-06-08 12:26 AM
I dont have problems with my code. I just don't know where the function process is starting. I've generated my code with Touchgfx.
2021-06-08 10:34 AM
Then when you ask only your file is c:\TouchGFXProjects\MyApplication\TouchGFX\App\app_touchgfx.c
here is main task overide and run.
2021-06-08 11:44 PM
Ok thank you for your help :beaming_face_with_smiling_eyes: