cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429 Stuck in GUI_init() after generation using STM32cubeMX V4.26

abdberkana
Associate II

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 ? 

26 REPLIES 26
Posted on June 12, 2018 at 07:32

My LCD has a Himax HX8352C controller, i don't know if the driver is compatible MX8352A available in CubeMx

Posted on June 12, 2018 at 07:56

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......

Posted on June 12, 2018 at 19:42

0690X0000060BdsQAE.png

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

https://community.st.com/0D50X00009XkXi3SAF

David George
Associate III
Posted on June 14, 2018 at 09:50

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.

abdberkana
Associate II
Posted on June 14, 2018 at 15:40

I will check it on the hardware and update you.

Posted on June 14, 2018 at 15:45

CubeMX is set CRC module if use GRAPHICS module