Skip to main content
Bkim.6
Associate
September 5, 2022
Question

STemWin and mbed os

  • September 5, 2022
  • 2 replies
  • 1082 views

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?

This topic has been closed for replies.

2 replies

ST Technical Moderator
September 5, 2022

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Bkim.6
Bkim.6Author
Associate
September 6, 2022

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()