STM32F7508 DISCO Display missbehaviour
Hi,
I am starting with the 508 Disco board and I have tried to build some applications with succes, but then the display shows them wrong, I have tried a few default apps from TouchGFX, one made by miself with TGFX, and another one with BSP libraries and CubeIDE.
The results are that the display does not render them correctly, the colors, some lines...
Here I attach two pictures, the first one from one TGFX default template, and the other one from the BSP drivers, I also attach you the code needed for the BSP, appart from the initialisation code generated with Cube selecting the 508Disco board and the default pin initialization for the board
#define LCD_FRAME_BUFFER SDRAM_DEVICE_ADDR
#define LCD_FRAME_BUFFER_2 ((uint32_t)0xC0780800)
uint8_t Buff[50]={0};
BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(0, LCD_FRAME_BUFFER);
BSP_LCD_LayerDefaultInit(1, LCD_FRAME_BUFFER_2);
BSP_LCD_SelectLayer(1);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_SetTransparency(1, 150);
BSP_LCD_SelectLayer(0);
BSP_LCD_SetTransparency(0, 255);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
BSP_LCD_DisplayOn();
BSP_LCD_SelectLayer(1);
BSP_LCD_Clear(LCD_COLOR_BLACK);
BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
BSP_LCD_SetFont(&Font20);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
BSP_LCD_DrawHLine(0, 203, 260);
BSP_LCD_DrawHLine(0, 204, 260);
BSP_LCD_DrawHLine(0, 205, 260);
BSP_LCD_DrawVLine(260, 203, 69);
BSP_LCD_DrawVLine(261, 203, 69);
BSP_LCD_DrawVLine(262, 203, 69);
BSP_LCD_DrawVLine(135, 203, 69);
BSP_LCD_DrawVLine(136, 203, 69);
BSP_LCD_DrawVLine(137, 203, 69);
BSP_LCD_SetTextColor(LCD_COLOR_YELLOW);
BSP_LCD_DrawHLine(0, 65, 150);
BSP_LCD_DrawHLine(0, 66, 150);
BSP_LCD_DrawHLine(0, 67, 150);
BSP_LCD_DrawVLine(150, 0, 68);
BSP_LCD_DrawVLine(151, 0, 68);
BSP_LCD_DrawVLine(152, 0, 68);
BSP_LCD_SetFont(&Font12);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
sprintf((char*)Buff, "%s", "BATTERY VOLTAGE");
BSP_LCD_DisplayStringAt(15,210,Buff, LEFT_MODE);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
sprintf((char*)Buff, "%s", "LOAD VOLTAGE");
BSP_LCD_DisplayStringAt(150,210,Buff, LEFT_MODE);
BSP_LCD_SetFont(&Font16);
BSP_LCD_SetTextColor(LCD_COLOR_YELLOW);
sprintf((char*)Buff, "%s", "HVS State");
BSP_LCD_DisplayStringAt(10,5,Buff, LEFT_MODE);
BSP_LCD_SetFont(&Font24);
BSP_LCD_SetTextColor(LCD_COLOR_CYAN);
sprintf((char*)Buff, "%s", "RPMs");
BSP_LCD_DisplayStringAt(50,50,Buff, CENTER_MODE);

