Skip to main content
Ayoub_Bnina
Associate III
January 21, 2024
Solved

Hard Fault in vTaskStartScheduler After Adding TouchGFX GUI Interface - Seeking Assistance

Hello ST Community,

I hope this message finds you well. I am facing an issue on my STM32H7B3I-DK board after integrating a GUI interface generated by TouchGFX 4.21.3 Designer. I would greatly appreciate any insights or assistance in resolving this issue.

Board Description:
I am working on an STM32H7B3I-DK development board.

Problem Description:
After generating the GUI interface and its tasks using TouchGFX Designer, a hard fault occurs at osKernelStart() function specifically when calling `vTaskStartScheduler()`.

Task Definitions and Priorities:
Here is an overview of the tasks with priorities:

1. `defaultTask`: Priority `osPriorityNormal`
2. `GUI_Task`: Priority `osPriorityHigh1`
3. `videoTask`: Priority `osPriorityLow`
4. `Led`: Priority `osPriorityNormal` : Worked Fine before 
5. `ReadSensors`: Priority `osPriorityHigh` : Worked Fine before 
6. `DataReceiveTask`: Priority `osPriorityNormal` : Worked Fine before 

Task Configuration:
Tasks are configured using `osThreadAttr_t` with specified stack sizes, priorities, and names.

 

TouchGFX Integration:
The issue started after integrating the TouchGFX GUI interface generated by TouchGFX 4.21.3 Designer.

Error Details:
The hard fault occurs specifically in the `vTaskStartScheduler()` function.

Request for Assistance:
I seek guidance from the community on troubleshooting and resolving this hard fault issue. If anyone has experience with integrating TouchGFX on STM32, especially on the STM32H7B3I-DK board, your insights would be highly appreciated.

Additional Information:
- The project was working fine with old threads before integrating TouchGFX.
- The development board is STM32H7B3I-DK.

Thank you in advance for your time and assistance. Looking forward to your valuable suggestions.

Best regards.

    This topic has been closed for replies.
    ST Employee
    January 29, 2024

    Hello @Ayoub_Bnina ,

    Are you working on a custom project that you have made in STM32CubeMX and trying to enable TouchGFX on it?
    Or are you using a TouchGFX Board Setup and you are facing the issue?
    TouchGFX provides Board Setups for users to develop GUI for their applications easily and download it onto the board.

    STM32H7B3I-DK Borad SetupSTM32H7B3I-DK Borad Setup

     You can see an example of how it is done here .

     

    I hope this helps

     

    Mohammad MORADIST Software Developer | TouchGFX

    1 reply

    ST Employee
    January 29, 2024

    Hello @Ayoub_Bnina ,

    Are you working on a custom project that you have made in STM32CubeMX and trying to enable TouchGFX on it?
    Or are you using a TouchGFX Board Setup and you are facing the issue?
    TouchGFX provides Board Setups for users to develop GUI for their applications easily and download it onto the board.

    STM32H7B3I-DK Borad SetupSTM32H7B3I-DK Borad Setup

     You can see an example of how it is done here .

     

    I hope this helps

     

    Mohammad MORADIST Software Developer | TouchGFX