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-11 03:03 PM
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
2018-06-11 03:08 PM
CubeMX is set GUI memory size - Number of Kbytes - 110
2018-06-11 03:35 PM
For FREERTOS use GUI_X_OS.c no GUI_X.c
2018-06-11 04:04 PM
�?�ou are absolutely right, you must first initialize the Solomon's display controller
LCD_Initialization(); //Call your initialisation code here
2018-06-11 07:26 PM
'
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 ?2018-06-11 07:28 PM
Hi Vitaliy, Could you advise me on what should look like the correct data. Are there any common used values ?
2018-06-11 07:30 PM
What is the new function name to control CRC clock (enabling and disabling) ?
2018-06-11 08:33 PM
__HAL_RCC_CRC_CLK_ENABLE();
__HAL_RCC_CRC_CLK_DISABLE();
2018-06-11 10:40 PM
Which type of display do you connect?
Is it SSD1294 ?
2018-06-12 12:29 AM
Yes i do have the initialization code '
LCD_Initialization();
' but in main called right before 'GRAPHICS_Init();'