cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F756ZG with ST7796S LCD for Raspberry pi.

Rio
Associate II

Is it possible to make the 4 inch LCD with ST7796S driver IC for raspberry pi work with STM32F756ZG using STMCubeIDE ?

If yes with what kind of code ?

4 REPLIES 4

Welcome to the forum.

To get started, please see: How to write your question to maximize your chances to find a solution.

 


@Rio wrote:

 the 4 inch LCD with ST7796S driver IC for raspberry pi


What display?

If you're talking about some product, please give a link

The ST7796S driver chip is not dedicated to any one host microcontroller/processor - it can be used by any host with a suitable interface:

https://docs.lvgl.io/master/details/integration/driver/display/st7796.html#:~:text=The%20ST7796S%20is%20capable%20of%20connecting%20directly%20to%20an%20external%20microprocessor%2C%20and%20accepts%208%2Dbit/9%2Dbit/16%2Dbit/18%2Dbit%20parallel%20interface%2C%20SPI

Use your favourite internet search engine to search for "ST7796S STM32"; eg,

https://www.google.com/search?q=ST7796S+STM32

 





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.

Hi, this is the link for the LCD with ST7796S driver IC which I'm using right now.

MHS-4.0inch Display-B - LCD wiki

I was trying to connect STM32F756ZG with this LCD via SPI by following these two guides but somehow it is not working.

Step-by-step Guide: How to use the LVGL v9 LCD drivers with STM32 devices — LVGL documentation

ST7796 LCD Controller driver — LVGL documentation


@Rio wrote:

this is the link for the LCD with ST7796S driver IC which I'm using right now.

MHS-4.0inch Display-B - LCD wiki


Thanks


@Rio wrote:

somehow it is not working.


"not working" gives us nothing to go on - you need to give more info.

Again, please see: 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.
Rio
Associate II

I've configured all the settings like pins, clock and SPI through STM32CubeIDE according to this guide Step-by-step Guide: How to use the LVGL v9 LCD drivers with STM32 devices — LVGL documentation.

After I set everything, I generated the code (main.c), added some code written inside the guide to the main.c, cloning the LVGL repository in the project tree by github to let the ST7796S driver LCD display communicate with NUCLEO-F756ZG that contains STM32F756ZG and show some words in the display like "Hello World!".

However even though the code runs without any error the display shows nothing but the backlight.