cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin and mbed os

Bkim.6
Associate II

i use disco-f429zi.

Is it possible to stemwin from mbed os?

I tried to use the STemwin library STemWin_CM4_wc16.a file provided by the cube fw_f4 firmware pack, but the code process stopped at GUI_Init().

The development environment is keil uvision5. Is it possible to use STemWin library files in mbed os?

2 REPLIES 2
Imen.D
ST Employee

Hello @Bkim.6​ 

Have you enabled CRC?

The CRC must be enabled before calling GUI_Init, if not STemWin will be not function.

This is mentioned in the page 6 of AN4323 to call GUI_Init function prior to use any STemWin function or GUI routines:

"The CRC module (in RCC peripheral clock enable register) should be enabled before using the library."

 Maybe this post helped you: Using stemwin library - Mbed OS - Arm Mbed OS support forum

When your question is answered, please close this topic by choosing Select as Best.

Imen

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

yes, i enable CRC

in my main.c

main() {
   uint16_t          x, y;
    uint8_t           text[30];
    uint8_t           status;
    TIM_HandleTypeDef TimHandle;
    uint32_t          uwPrescalerValue = 0;
    HAL_Init();
    BSP_SDRAM_Init();
    __HAL_RCC_CRC_CLK_ENABLE();
    SystemClock_Config();
 
....
 
GUI_Init()
 
.....
 
return 0;
}

still freeze at GUI_Init()