cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault error with Emwin & FreeRTOS

MMostafa
Associate II

I am working with ST32F469 Disco and I am using FreeRTOS and emWin library.

When I am calling Gui_Init() before starting FreeRTOS kernel, my application works fine with no problems. When I move Gui_Init() To the task which is used for emWin scheduled before While(1), I always had a hard fault error. If I only moved the function before the schedule again it works fine. I had only one task which calls the Gui_Exec(). It seems it is a problem with the FreeRTOS configurations but I am not able to catch it.

Anysupport about this issue?

2 REPLIES 2
Imen.D
ST Employee

Hello @MMostafa​ ,

Make sure that CRC module (in RCC peripheral clock enable register) is enabled before calling GUI_Init, if not STemWin will be not work.

Imen 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
MMostafa
Associate II

Hello,

CRC module clock is enabled and CRC module is working before calling GUI_Init().

The program is working correctly when it is called before FreeRTOS kernel start.

What could be other issues?