Skip to main content
mdiro
Associate III
January 23, 2023
Question

Steps to control SPI display

  • January 23, 2023
  • 1 reply
  • 2253 views

I currently have a display that works with ST7789 controller and a Nucleo board, L4476RG. Unfortunately, I cannot find anything about interfacing SPI with TouchGFX, except for some very generic descriptions.

What are the steps you would recommend to follow? So far, I have enabled SPI and the software pack in CUBEMX - single buffer, no need for partial; I have generated code in TouchGFX design for a blank screen; my main is basically nothing, only the st7789_init(), everything else is self-generated. With this, I could not get anything on my screen.

Thank you!

This topic has been closed for replies.

1 reply

MM..1
Chief III
January 23, 2023

Ofcourse , you setup TouchGFX to single buffer and CUSTOM driver mode. This say you write driver parts self. But some examples exist ... Primary docu is FMC and SPI Display Interface | TouchGFX Documentation

mdiro
mdiroAuthor
Associate III
January 23, 2023

To me, that document is not so clear. How do SPI and TouchGFX coordinate with each other? What are the functions I need to call? What are the part I need to write? Is the ST7789 driver still needed? All these these are unclear, unfortunately.

Romain DIELEMAN
ST Employee
January 24, 2023

Hi,

You can have a look at the user code setting up the SPI display in the TouchGFX Board Template for the STM32G0nucleo board available in TouchGFX Designer.

/Romain