cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup correctly LCD (B-LCD40-DSI1) with use of STM32F769I-DISCO?

slawek
Associate III

Dear Community,

When I try to do some basic configuration of LCD with 769i disco, I see synchronization problems, that I could not proper image (attached image). LCD is dedicated B-LCD40-DSI1 board.

0693W000003R4q7QAC.jpgCode looks like this:

 BSP_LCD_Init();

 BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);

 /* Enable the LCD */

 BSP_LCD_DisplayOn();

 /* Select the LCD Background Layer */

 BSP_LCD_SelectLayer(0);

 /* Clear the Background Layer */

 BSP_LCD_Clear(LCD_COLOR_BLACK);

 /* Some sign */

 BSP_LCD_DrawPixel(400,0,LCD_COLOR_WHITE);

 BSP_LCD_SetTextColor(LCD_COLOR_BLUE);

 BSP_LCD_SetFont(&Font12);

 BSP_LCD_DisplayStringAt(0, 0, (uint8_t*) "Hello world!", CENTER_MODE);

I thought it might be some configuration issue, but i saw in driver, that I try to use, clocks are already setup: stm32f769i_discovery_lcd.c

In siimilar way i try to use DSI to HDMI interface with ADV7533 and define USE_LCD_HDMI with similar results.

In STM32CubeMx I generate default configuration for this board.

I am using: STM32Cube_FW_F7_V1.16.0

Code of driver looks as it should be working out of the box for this configuration.

Below I am attaching clocks config.

0693W000003R4yGQAS.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
slawek
Associate III

I found the bug in the clock configuration. When I changed frequency to 216MHz it started to work properly.

View solution in original post

1 REPLY 1
slawek
Associate III

I found the bug in the clock configuration. When I changed frequency to 216MHz it started to work properly.