AnsweredAssumed Answered

How to use CubeMX to configure LCD on 469i-Disco Board?

Question asked by sohaeng.lee on Dec 15, 2016
Latest reply on May 4, 2017 by Jeanne Joly

Hi,

 

I'm using BSP Library for STM32469i-Discovery.

Create a new project using CubeMX, added some code and compile it.

 

the result is here.

 

stm32469i led

 

my CubeMX project configure is here.

 

cubemx lcd configureDMA2D configure

 

No change is made to any configure LCD.

 

here is my main code....

 

  /* USER CODE BEGIN 2 */

  BSP_LCD_Init();

 

  BSP_LCD_LayerDefaultInit(LTDC_DEFAULT_ACTIVE_LAYER, LCD_FB_START_ADDRESS);

  BSP_LCD_SelectLayer(LTDC_DEFAULT_ACTIVE_LAYER);

  BSP_LCD_DisplayOn();

 

  BSP_LCD_Clear(LCD_COLOR_RED);

 

  HAL_Delay(1000);

 

  BSP_LCD_SetTextColor(LCD_COLOR_YELLOW);

  BSP_LCD_FillRect(0,0,800,480);

 

  BSP_LCD_SetTextColor(LCD_COLOR_LIGHTBLUE);

  BSP_LCD_DisplayStringAt(0,50, (uint8_t *)"test font", LEFT_MODE);

  sprintf(str,"%5lu",BSP_LCD_GetXSize());

  BSP_LCD_DisplayStringAt(0,100, (uint8_t *)str, LEFT_MODE);

  sprintf(str,"%5lu",BSP_LCD_GetYSize());

  BSP_LCD_DisplayStringAt(0,150, (uint8_t *)str, LEFT_MODE);

 

  BSP_LCD_SetTextColor(LCD_COLOR_DARKCYAN);

  BSP_LCD_DrawLine(0,200,800,310);

 

  /* USER CODE END 2 */

 

 

Please, help.

Outcomes