cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7508 DISCO Display missbehaviour

VCasa.1
Associate II

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

5 REPLIES 5
Alexandre RENOUX
Principal

Hello,

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

/Alexandre

Hi,

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

Thanks

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

Hi, I found that there was a lack of power feeding the board, now I have the TGFX applications working correctly with the new supply, but, the project with STM32CubeIDE, and uploaded with Cube Programmer, keeps the same as the picture above.

The settings for the Cube Programmer are:

Port :SWD

Freq:4000

Mode:Normal

Access Port:0

Reset Mode:Soft(I have also tried Hard without success)

Shared:Disabled

And the Cube IDE with the template of the 508Disco Board

Thank you

The default values should be fine.

If you use the F750-DK Application Template, this should work using CubeIDE. It was tested many times.

Please as mentioned in the previous message, provide the steps you did.

You could try and delete the STM32CubeIDE/ folder and regenerate it with CubeMX. Don't forget to save your .ld files somewhere before deletion so that you can put them back in the newly generated folder.

/Alexandre