cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in using TouchGFX on custom board for STM32H750VBT6

Kai_Satone
Senior

I have created a ui to that i am able to upload on the custom board(STM32H750VBT6) which i can successfully Debugging using IDE but display is empty.I dont know where I am wrong.

I attached the library that I am using below.I have taken library from this GitHub 

Kai_Satone_0-1748432212682.png

with this pinout

WhatsApp Image 2025-05-28 at 16.47.32_77c388ec.jpg

int main(void)
{

  /* USER CODE BEGIN 1 */

  /* USER CODE END 1 */

  /* MPU Configuration--------------------------------------------------------*/
  MPU_Config();

  /* MCU Configuration--------------------------------------------------------*/

  /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  HAL_Init();

  /* USER CODE BEGIN Init */

  /* USER CODE END Init */

  /* Configure the system clock */
  SystemClock_Config();

  /* USER CODE BEGIN SysInit */

  /* USER CODE END SysInit */

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_DMA_Init();
  MX_SPI1_Init();
  MX_TIM3_Init();
  MX_CRC_Init();
  MX_TouchGFX_Init();
  /* USER CODE BEGIN 2 */
// SCB_DisableICache();
// SCB_DisableDCache();

  Displ_Init(Displ_Orientat_0);			// initialize display controller - set orientation parameter as per TouchGFX setup
  touchgfxSignalVSync();					// ask display syncronization
  Displ_BackLight('I');
  /* USER CODE END 2 */

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
	 if(Touch_GotATouch(0))
		 touchgfxSignalVSync();
    /* USER CODE END WHILE */

  MX_TouchGFX_Process();
    /* USER CODE BEGIN 3 */
	  HAL_GPIO_WritePin(GPIOE, GPIO_PIN_3,GPIO_PIN_SET);
	  HAL_Delay(1000);
	  HAL_GPIO_WritePin(GPIOE, GPIO_PIN_3,GPIO_PIN_RESET);
	  HAL_Delay(1000);
  }
  /* USER CODE END 3 */
}

 

9 REPLIES 9
Andrew Neil
Super User

@Kai_Satone wrote:

costume board 


Did you mean custom board - or is this some kind of wearable project?

From the photo, it looks like a commercial board - so a link would help

Plus details of the display, and a schematic of how you have the display connected

How to write your question to maximize your chances to find a solution.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

@Andrew Neil 


WeAct Studio STM32H750VBT6-LCD Demo Board:- 

https://stm32-base.org/boards/STM32H750VBT6-STM32H7XX-M.html  

2.8 inch SPI Screen Module TFT Interface 240 x 320 without Touch:-

https://robu.in/product/2-8-inch-spi-screen-module-tft-interface-240-x-320-without-touch 

 

pin connection:-

DISPL_LED = PA7

TOUCH_CS = PB1

DISPL_RST = PB10

DISPL_DC = PB11

TOUCH_INT = PA12

TOUCH_INT_EXTI_IRQn EXTI15_10_IRQn

DISPL_CS = PA15

DISPL_SCK = PB3

TOUCH_MISO = PB4

DISPL_MOSI = PB5

WhatsApp Image 2025-05-19 at 15.35.04_bef28552.jpg


I attached zip file of the project bellow

Hello @Kai_Satone ,

 

Apparently you have been able to make it work with an STM32F411?
What have you done with the F411? Used the same screen, connections, code and displayed what TouchGFX renders?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello @GaetanGodart ,

Yes, I have successfully used the same screen, connections, and code to display what TouchGFX renders on the STM32F411.

I also tested the same setup with the STM32H750VBT6—same screen, connections, and code. The application runs correctly and can be debugged, but the display does not show any output on the STM32H750VBT6 board.

Hello @Kai_Satone ,

 

Same code for different chip sounds risky. If you have a different mcu, most likely some libraries are different.

Also, you do not mention clock frequency. Using the wrong timings could be the reason why you are not able to transfer data.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

@Andrew Neil 

@GaetanGodart 


I triyed different code with your suggestion and I was able to display TouchGFX graphics but it is distorted.

 

SPI1

Kai_Satone_2-1749211289578.pngKai_Satone_3-1749211303055.png

 


TIM

Kai_Satone_1-1749211231037.png

Clock Configuration

Kai_Satone_4-1749211424837.png

O/P 

WhatsApp Image 2025-06-06 at 17.36.49_0bef461f.jpg

 

I try changing above configration but it still the same. I will attach zip file of project below.

 

Hello @Kai_Satone ,

 

That is a great step forward already!

I see that your asset is placed by default in external flash. Could you try to place it in internal flash to see how it behaves?

Also, could you try to display a box (or another element that doesn't need an asset)?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

@GaetanGodart 


I have checked both ways but the internal flash is only 128 KiB and after enabling TouchGFX, the file size is more than the internal flash so I can't test the method.

Kai_Satone_1-1749717797224.png


I also use this method.""Also, could you try to display a box (or another element that doesn't need an asset)?"" but I got the same result.

TouchGFX UI

Kai_Satone_0-1749717771358.png

 

O/P I got 

WhatsApp Image 2025-06-12 at 14.01.59_dad495e1.jpg

 

Hello @Kai_Satone ,

 

This could be a communication issue.

Could you check with an oscilloscope or logic analyzer your SPI communication protocole?
Verify that the timings are correct and that the commands and data are as expected?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)