2018-12-28 02:09 PM
I am trying to get STemWin to work with mbed-os but it seems to be stuck in infinite loop inside GUI_Init() (can confirm the same over debugger).
I know for certain that the MCU is not stuck in hard fault since I have another thread running which is flashing an led.
Details:
I ams trying to run the basic hello world test (STemWin_HelloWorld) provided in STM32Cube_FW_F7_V1.14.0 with main thread writing to GUI and another thread flashing an led.
Snippet of code below:
main()
{
GUI_Init();
WM_MULTIBUF_Enable(1);
GUI_Clear();
GUI_SetFont(&GUI_Font32_1);
GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
while(1) {
GUI_X_Delay(1000);
}
}
I have provided the necessary os apis for timing and multitasking in GUI_X_OS.c
I am linking the compiled object files to STemWin_CM7_OS_wc32_ARGB.a to create the MCU image.
I am calling the STM32 CRC hw module initialization api before calling GUI_Init().
The GUI memory assigned to STemWin library using GUI_ALLOC_AssignMemory() in GUIConf.c is word aligned.
Is there anything I am missing here?
Is the STemWin library (STemWin_CM7_OS_wc32_ARGB.a) tightly coupled to FreeRTOS?