Hello,
I try to understand how the stm32f469i discovery main loop works with Touchgfx . I've generated a project with Touchgfx and modify it with stm32cubeIde. When I enter in the project there is a task call TouchGFX_Task generated by touchgfx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Labels:
-
FreeRTOS
-
STM32F4 Series
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 */
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-06 11:55 PM
The only task I found is this one :
I don't where the task Touchgfx_Process is running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-07 8: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 */
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-08 11:44 PM
Ok thank you for your help :beaming_face_with_smiling_eyes:
