cancel
Showing results for 
Search instead for 
Did you mean: 

emwin Hello world

dav ABA
Associate II
Posted on December 26, 2016 at 18:54

hi.

i work on emwin library. in first hello world project

stm32cubef1\STM32Cube_FW_F1_V1.2.0\Projects\STM3210C_EVAL\Applications\STemWin\STemWin_HelloWorld

my code is :

HAL_Init();

SystemClock_Config();

BSP_Config();

GUI_Init();

WM_SetCreateFlags(WM_CF_MEMDEV);

MainTask();

while(1)

{

}

and in 

MainTask()  my code is :

GUI_Clear();

GUI_SetFont(&GUI_Font20_1);

GUI_SetColor(GUI_RED);

GUI_DispString('Hello world!');

but nothing is display on lcd. my lcd controller is ILI9341 . i changed the lcd initialization code and i test. that is ok.

but I dont know What is Wrong....

how can i link the emwin to my lcd code ?

Please help me ...

thank you

3 REPLIES 3
Imen.D
ST Employee
Posted on December 28, 2016 at 09:46

Dear

abbasi.davoud

‌,

Try touse the latest version of

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef1.html

v1.4.0firmware package as containsupdates and enhancements.

Please,Keep us informed about your progress on this.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on December 31, 2016 at 21:44

HIthank you for responsei send to you my project.please check my codei dont know what is wrong...thank you.

________________

Attachments :

emwin-test.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hz0g&d=%2Fa%2F0X0000000bFD%2FDoDzUeQF2aPE_dz0jJ_mNF_uIEYi4l.KwmoBfHwlclQ&asPdf=false
Posted on October 03, 2017 at 16:15

Hello!

Just after a raw investigation , found that you are not use the correct driver for your LCD. Inside LCDConf_stm32l10e_eval.c the GUIDRV_FLEXCOLOR_F66712 is for other LCD module.

For ILI9341 use  GUIDRV_FLEXCOLOR_F66709

0690X00000608TAQAY.png

Also STemWin, CubeMx, firmware libraries  are not updated to latest version.

Regards.

vf