cancel
Showing results for 
Search instead for 
Did you mean: 

TFT interface with stm32U5VJT6, TouchGFX via FMC Parallel RGB Interface

Furkan2
Associate II
I am currently working on interfacing a 2.83-inch TFT display (320x240 resolution) with the STM32U5F7VJT6 microcontroller using the FMC parallel 8080 interface. I have successfully configured the FMC in STM32CubeMX with the following settings:
  • Mode Configuration: NOR Flash/PSRAM/SRAM/ROM/LCD1
  • Chip Select: NE1
  • Memory Type: LCD Interface
  • LCD Register Select: A16
  • Data Width: 16 bits
After generating the code, I utilized the ST7789 driver to fill the screen with solid colors using the function ST7789H2_FillRect(0, 0, 320, 240, 0xFFFF);, which worked as expected.
Subsequently, I aimed to integrate TouchGFX to enhance the graphical interface. I configured TouchGFX accordingly, added an image using ApplicationTemplate.touchgfx.part, generated the code, and flashed it to the device. However, the image does not appear on the TFT display.
I would appreciate your guidance on the following:
  1. TouchGFX Integration: Are there specific steps or configurations required to ensure TouchGFX operates correctly with the FMC parallel RGB interface?
  2. Display Initialization: Could there be additional initialization required for the ST7789 controller when used with TouchGFX, so that assets showing properly on the display?
  3. Debugging Steps: What would be the recommended approach to debug and identify the root cause of the image not displaying?
2 REPLIES 2
Furkan2
Associate II
I am currently working on interfacing a 2.83-inch TFT display (320x240 resolution) with the STM32U5F7VJT6 microcontroller using the FMC parallel 8080 interface. I have successfully configured the FMC in STM32CubeMX with the following settings:
  • Mode Configuration: NOR Flash/PSRAM/SRAM/ROM/LCD1
  • Chip Select: NE1
  • Memory Type: LCD Interface
  • LCD Register Select: A16
  • Data Width: 16 bits
After generating the code, I utilized the ST7789 driver to fill the screen with solid colors using the function ST7789H2_FillRect(0, 0, 320, 240, 0xFFFF);, which worked as expected.
Subsequently, I aimed to integrate TouchGFX to enhance the graphical interface. I configured TouchGFX accordingly, added an image using ApplicationTemplate.touchgfx.part, generated the code, and flashed it to the device. However, the image does not appear on the TFT display.
I would appreciate your guidance on the following:
  1. TouchGFX Integration: Are there specific steps or configurations required to ensure TouchGFX operates correctly with the FMC parallel RGB interface?
  2. Display Initialization: Could there be additional initialization required for the ST7789 controller when used with TouchGFX, so that assets showing properly on the display?
  3. Debugging Steps: What would be the recommended approach to debug and identify the root cause of the image not displaying?
GaetanGodart
ST Employee

Hello @Furkan2 ,

 


  1. TouchGFX Integration: Are there specific steps or configurations required to ensure TouchGFX operates correctly with the FMC parallel RGB interface?
  2. Display Initialization: Could there be additional initialization required for the ST7789 controller when used with TouchGFX, so that assets showing properly on the display?
  3. Debugging Steps: What would be the recommended approach to debug and identify the root cause of the image not displaying?

 

To enable TouchGFX, you can follow this guide and this guide .
Additionally, you can look at our TBS in TouchGFX Designer that are from the STM32U5 family like your chip.

I don't seen any extra initialization for your display that you would have to add to make TouchGFX work. As long as you can draw pixel by pixel on your screen, TouchGFX will work. However, you have to make sure that the memories where you store you assets properly work.

There is no specific step to debug, it usually depends on your issue. However, you can add pins and rename them to have access to the render time and other useful information : performance measurement guide .

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)