2018-06-11 01:48 AM
Posted on June 11, 2018 at 10:48
Hi guys, I'm using STM32CubeMx V4.26 to configure STM32F429 that is connected to TFT LCD. I m trying to get my TFTLCD to work with StemWin using FreeRTOS. My program compile and link smoothly without problem. Running the program in the hardware leads to an MCU stuck in the function : GUI_init()
I ve checked some similar issues and it looks to be related to the graphic library and RCC clock.
Could any one have guidance for this issue ? are there some sample code ?
2018-06-12 12:32 AM
My LCD has a Himax HX8352C controller, i don't know if the driver is compatible MX8352A available in CubeMx
2018-06-12 12:56 AM
For CubeMX
Display Driver GUIDRV_FLEXCOLOR_F66709
Supported LCD Controller Himax HX8352A
Display Controller Mode --- I do not know this. You should experiment with the display
Color Conversion ----------- probably GUICC_565 or GUICC_M565......
2018-06-12 08:42 AM
I've tried all the solutions above but none is working, my
'
LCD_Initialization();
' is working correctly and getting the right data from the lcd. but still the GUI_INIT not responding, also no interrupt is fired!
Here is my code attached if some one can advise a solution.
________________ Attachments : main.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxVm&d=%2Fa%2F0X0000000az5%2FzjLIdtxrLv6kj0_E9.LZfexp.cNDZi2RjO49vett9Lk&asPdf=falseSTemwin_wrapper.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxVh&d=%2Fa%2F0X0000000az7%2FoHtQyXImefGl9V4uwHibtqVZsH1LO0iGfeFHlVsC4YY&asPdf=falsefreertos.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxRb&d=%2Fa%2F0X0000000az2%2FMJ7ijUIH1LriCq_XwZr6aiWWJLpFplgbyAtjsUh8Eso&asPdf=falseFramewinDLG.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxVS&d=%2Fa%2F0X0000000ayz%2FEL0RrN6IA8EWaieG9sKKdUu2byx0..QUNEygflumZng&asPdf=false2018-06-12 12:42 PM
set breakpoint at the function
GUI_ALLOC_AssignMemory
GUI_DEVICE_CreateAndLink....
You can determine the function on which the program hangs
P.S. Bug in CubeMX
2018-06-14 12:50 AM
emWin Init needs the CRC module enabling as it does a CRC Check on memory - this caught me out once!
Check the CRC Module is clocked and enabled, my STM Code look like this;
/** @note The emWIN GUI_Init() uses the CRC Module to perform a memory
* check - so the CRC clock must be enabled before calling GUI_Init. */ __HAL_RCC_CRC_CLK_ENABLE(); /* Enable the CRC Module */David.
2018-06-14 06:40 AM
I will check it on the hardware and update you.
2018-06-14 08:45 AM
CubeMX is set CRC module if use GRAPHICS module