2023-01-24 07:57 AM
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?
2023-01-24 09:21 AM
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
2023-01-24 09:41 AM
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?