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 11, 2018 at 22:03

Sorry, don't use Cube but should have realised it would turn on the CRC...

do you have sufficient memory allocated for freertos stack?

Have you allocated enough memory for emwin in GUIConf.c

example: ♯ define GUI_NUMBYTES xxxx

Posted on June 11, 2018 at 22:08

CubeMX is set GUI memory size - Number of Kbytes - 110

Posted on June 11, 2018 at 22:35

For FREERTOS use GUI_X_OS.c no GUI_X.c

Posted on June 11, 2018 at 23:04

�?�ou are absolutely right, you must first initialize the Solomon's display controller 

LCD_Initialization();                                    //Call your initialisation code here

Posted on June 12, 2018 at 02:26

'

RCC_AHBPeriphClockCmd

' this function is not found in all the code generated by STM32cubeMx for my ioc file!! is this function had been deprecated ? what is the new name of the new function ?   
Posted on June 12, 2018 at 02:28

Hi Vitaliy, Could you advise me on what should look like the correct data. Are there any common used values ?

Posted on June 12, 2018 at 02:30

What is the new function name to control CRC clock (enabling and disabling) ?

Posted on June 12, 2018 at 03:33

__HAL_RCC_CRC_CLK_ENABLE();

__HAL_RCC_CRC_CLK_DISABLE();

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 12, 2018 at 05:40

Which type of display do you connect?

Is it SSD1294 ?

Posted on June 12, 2018 at 07:29

Yes i do have the initialization code '

LCD_Initialization();

' but in main called right before 'GRAPHICS_Init();'