2020-09-08 08:28 AM
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.
Code 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.
Solved! Go to Solution.
2020-09-08 09:19 AM
I found the bug in the clock configuration. When I changed frequency to 216MHz it started to work properly.
2020-09-08 09:19 AM
I found the bug in the clock configuration. When I changed frequency to 216MHz it started to work properly.