Intermittent problem with STM32F746G-Discovery graphics
I have an intermittent problem with both TouchGFX and BSP LCD on startup.
I have the same problem on two boards.
Sometimes it starts and displays correctly, sometimes I get a greenish background - see below.
Running LCD_init() again does not clear the problem.
The problem exists from both power up as well as black button reset.
I think it may be a register in the LCD driver that is not being initialised correctly.
void MLX_LCD_Init() {
uint8_t lcd_status = LCD_OK;
HAL_Delay(500);
lcd_status=BSP_LCD_Init();
while(lcd_status != LCD_OK) HAL_Delay(10);
BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER_BACKGROUND, LCD_FB_START_ADDRESS);
BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER_BACKGROUND);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER_FOREGROUND, LCD_BG_LAYER_ADDRESS);
BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER_FOREGROUND);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_DisplayOn();
BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER_FOREGROUND);
BSP_LCD_SetTextColor(LCD_COLOR_GREEN);
BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
BSP_LCD_SetFont(&Font16);
}The remainder of trhe project is a standard Cube project fro the 746 Discovery, with LCD_Init() being called at the beginning of startDefautltTask();
Here it works well 5 minutes previously

