STM32F429I-Disc1 LCD BSP Issue
Hello, I'm working on a project on the STM32F429I-Disc1 development board and wanted to use the BSP to write characters to the LCD screen. I used STM32CubeMX to configure with LTDC enabled with the default parameters. Since there wasn't BSP configuration I added the files manually for the LCD BSP which were:
src:
- font12.c
- font16.c
- font20.c
- font24.c
- font8.c
- ili9341.c
- stm32f429i_discovery_lcd.c
- stm32f429i_discovery_sdram.c
- stm32f429i_discovery.c
inc:
- fonts.h
- ili9341.h
- lcd.h
- stm32f429i_discovery_lcd.h
- stm32f429i_discovery_sdram.h
- stm32f429i_discovery.h
I updated the BSP init function to match the LTDC settings for the board:
LtdcHandler.Init.AccumulatedActiveW = 269;
LtdcHandler.Init.AccumulatedActiveH = 323;
LtdcHandler.Init.TotalWidth = 279;
LtdcHandler.Init.TotalHeigh = 327;
When I run the BSP_LCD_Init function it returns status OK, but after running this line:
LcdDrv = &ili9341_drv; and eventually these three lines in ili9341_Init(void)
ili9341_WriteReg(LCD_SLEEP_OUT);
LCD_Delay(200);
ili9341_WriteReg(LCD_DISPLAY_ON);
/* GRAM start writing */
ili9341_WriteReg(LCD_GRAM);
The screen does this (see attached photo) where it flickers and has this black box on the right side.
I didn't want to change the driver files for the ili9341 so I am assuming something is wrong with my configuration but I wasn't sure how to further troubleshoot this. Does anyone have advice or see any issues of what may be happening?
Thanks!

