Skip to main content
VCasa.1
Associate II
September 11, 2020
Question

STM32F7508 DISCO Display missbehaviour

  • September 11, 2020
  • 5 replies
  • 1384 views

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);

0693W000003RSe5QAG.jpg

0693W000003RSeAQAW.jpg

This topic has been closed for replies.

5 replies

Alexandre RENOUX
Visitor II
September 14, 2020

Hello,

Have you tried using the F750-DISCO Application Template available on TouchGFX Designer ?

/Alexandre

VCasa.1
VCasa.1Author
Associate II
September 14, 2020

Hi,

Yes, when I create the TGFX project, I select the F750_Disco Template

Thanks

Alexandre RENOUX
Visitor II
September 16, 2020

Could you specify all the steps you did so that we can reproduce on our side and see if we have the same issue on our side ?

For instance :

  • Open TouchGFX 4.14
  • Select Application Template F750-DISCO v3.0.0
  • Select the progress bar example
  • Generate code
  • Run Simulator

/Alexandre