Skip to main content
Kyrpav
Associate III
April 6, 2023
Solved

How to use touchgfx with nucleo board that is not in standard list also how to use a display controller like ili9488 or RA8875.

  • April 6, 2023
  • 24 replies
  • 5430 views

Hi i am very new to all stm32, i have some project that i want to move to stm32 mcus. I would like to know if i have a nucleo board that is not in the list of selections that exist in designer, or i have selected an mcu that a dev board does not exist at all like H755ZI what should i select as board. Also about screens until now i have used 2 controllers ili9488 and RA8875 for larger resolution, how this can be used since the discovery boards have other displays that do not specify what they are, and how all these things can be fixed with touchgfx. Is there any guide that explains these cases that i could read?

This topic has been closed for replies.
Best answer by HP_it

also - the controllers you mention looks like SPI interface controllers. So, the basic gist is that tGFX creates a framebuffer - what you do with it tGFX doesn't really care about.

so how you choose to push the framebuffer contents to your display is up to you.

tGFX allows for some hooks for timing those pixel-pushing functions but you will have to write some of them by yourself.

I believe the STM32F429 devkit supports SPI as a method of using the display (it's dual interface) but the usual code uses parallel RGB.

24 replies

MM..1
Super User
April 6, 2023

Use cubeide new project wizard and write code for any LCD

Kyrpav
KyrpavAuthor
Associate III
April 6, 2023

You probably understand that your comment does not really help at all and does not answer to any of the questions made.:worried_face:

MM..1
Super User
April 6, 2023

8) You maybe understand , that forum is for question about troubles with real code.

I can only repeat for custom and not listed boards, you need start project not in designer. Projects in designer is for learning and eval boards.

And second your question is equal. If MCU have bus and resources you can control any display controller.

Kyrpav
KyrpavAuthor
Associate III
April 6, 2023

i this case is there any guide that can be proposed for this?

Kyrpav
KyrpavAuthor
Associate III
April 6, 2023

thank you i am going to read the complete documentation

HP_it
Senior II
April 6, 2023

you can treat the devkit as a custom board and follow my guide here:

https://www.youtube.com/watch?v=SRQD8JMeg_k

It's not using the latest version of tGFX but it should help you get started. I've done a fair number of tutorials on different aspects of the setup so hopefully you can get some insights even though the version numbers are not the right ones :)

HP_it
HP_itBest answer
Senior II
April 6, 2023

also - the controllers you mention looks like SPI interface controllers. So, the basic gist is that tGFX creates a framebuffer - what you do with it tGFX doesn't really care about.

so how you choose to push the framebuffer contents to your display is up to you.

tGFX allows for some hooks for timing those pixel-pushing functions but you will have to write some of them by yourself.

I believe the STM32F429 devkit supports SPI as a method of using the display (it's dual interface) but the usual code uses parallel RGB.

Kyrpav
KyrpavAuthor
Associate III
April 6, 2023

thank you i am afraid that i am fair from really understanding everything not only as concept. I will check your videos. The ili9488 controller is really SPI the RA8875 is spi but i can solder/desolder the setup to change it i think also to parallel which i have never used before

https://www.buydisplay.com/7-inch-lcd-module-capacitive-touch-screen-panel-i2c-spi-serial

it seems that it will be long road to success.

HP_it
Senior II
April 7, 2023

It is a complicated setup - but rewarding when you manage to get it working :)

I have only worked with one SPI display for which I didn't have to write the pixel-pushing method.

I would go with a display like https://www.buydisplay.com/7-tft-lcd-touch-screen-display-module-800x480-for-mp4-gps-tablet-pc

that's RGB out of the box. you only need to porch settings to get it working.

The LTDC module in the STM32 can handle all the pixel-pushing for you so that's easier to start with.

Good luck and welcome ;)

Kyrpav
KyrpavAuthor
Associate III
April 7, 2023

thank you for the proposal i assume that if i setup the RA8875 for RGB to uses the R[],G[],B[] pins then i should have the same exact result. and the pixel-pushing is the same.

I was just a bit curious watching the Software packs component selector in CubeMX and you go to install x-CUBE-DISPLAY if you open the setting that they have with the arrow it shows ILI9341 and ST7789V so it is confusing about what to set and from where which options have to be selected.

HP_it
Senior II
April 7, 2023

Yeah, if you configure for RGB you can easily use the LTDC (I would imagine)

I never tried the x-CUBE package you mention since I always managed to find a solution with RGB displays.

I do know that support for other displays than parallel and DSI was.... lacking some time ago so the display package might make up for that :)

Kyrpav
KyrpavAuthor
Associate III
April 7, 2023

i have to cover tones of things it seems. thank you for your help i will try to check all.

MM..1
Super User
April 7, 2023

Yes primary you need understand, that STM connects displays directly and no over man in the middle RA8875. You can solder neverending and only It supports 8080 6800 8-bit,16-bit parallel,3-wire,4-wire,I2C serial spi interface. No RGB , what is LTDC direct interface.

Try other way end. Define what you need:

A. Static slow GUI ... SPI RA and other bridged can use TochGFX partial buffering

B. Smooth animated GUI

Define resolution not inches...

For example STM32F469 can smoothly drive 1280x480 DSI MIPI 2lanes.

Kyrpav
KyrpavAuthor
Associate III
April 7, 2023

From what you say i understand that i had wrong impression. I thought that display with 8 pins per colour support RGB interface and this is how this works like

5~12 R0~R7 Red Data

13~20 G0~G7 Green Data

21~28 B0~B7 Blue Data

From the display that you send.

I thought that RA8875 had the same but it has DB0-DB15 for Data bus which i suppose it is different thing.

I also need to understand DSI and MIPI :tired_face:

MM..1
Super User
April 8, 2023

Simply your RA is wwaste IC create connection 1. MCU -> 2. RA (mcu2) -> 3.DRV LCD (S77....) -> LCD , this is designed for MCU with low power and ram.

STM produce around hundrets nucleos and 100x more MCUs STM32 and all with min requirments is capable drive displays+TGFX without 2.RA boards