Skip to main content
Associate II
August 1, 2024
Question

FrameBuffer being populated incorrectly?

  • August 1, 2024
  • 4 replies
  • 5535 views

Hi. Using a STM32L4R9I-Discovery board with a connected ST7789VI screen. I'm trying to display a design I made in TouchGFX, yet I'm getting some distortion in the middle and quite a bit of misalignment where the bottom part of the screen is on the top and the top is on the bottom. ALso, I've noticed that the right and left sides of the screen sometimes get mixed up. 

I initially thought it was the flushing that was the issue, but I printed the framebuffer content pre-flushing and I noticed that I had corrupt/missing pixel data around where I'm experiencing the distortion (pictures attached). Can anyone help out please?

 

4 replies

ST Employee
August 8, 2024

Hello @Hafez1,

X-NUCLEO-GFX01M2 AZ1 Display Module uses the same display driver. Therefore, you can draw inspiration from the available TouchGFX Board Setups (TBSs) that use GFX01M2. For instance, you can take a look at the TBS for NUCLEO-H503RB or NUCLEO-G071RB

NUCLEO-H503RB + GFX01M2NUCLEO-H503RB + GFX01M2

In addition, there are a number of documentation on how to set up a display using SPI interface that can guide you:

How to display data using internal RAM and SPI 

FMC and SPI display interfaces 

Synchronize Framebuffer Access 

I hope this helps you!

Hafez1Author
Associate II
August 8, 2024

Hi Mohamed. Thank you for your response! I'm capable of displaying custom created coded designs on this new screen; however, when I try to use a TouchGFX-made design I get screens like the one attached above. I've printed the Framebuffer output, and for some reason some of it is corrupt and misaligned.

ST Employee
August 9, 2024

One thing that you should consider is your display rotation. Usually, the ST7789VI screen's default orientation is portrait, so you also need to configure your display as portrait, and based on the screenshot you've shared, it appears that your display is in landscape. 

Display Orientation SettingsDisplay Orientation Settings

See if this change can help you!

Hafez1Author
Associate II
August 9, 2024

Hi Mohammad. Thank you for your response. I've updated the orientationon TouchGFX before and in my display driver I have a rotation function that I use as well. It doesn't fix the issue though with the distortion and missing data.

ST Employee
August 15, 2024

Hello @Hafez1,

I expected that it won't fix the issue.

Is it possible to share your STM32CubeMX project? 

 

Hafez1Author
Associate II
August 16, 2024

Hi Mohammad. Here it is. https://we.tl/t-drfllT2C1T

MM..1
Chief III
August 15, 2024

@Hafez1 wrote:

Hi. Using a STM32L4R9I-Discovery board with a connected ST7789VI screen.

 


missing info how connected and how strategy? For example if SPI then recom partial buffer strategy usw...

Hafez1Author
Associate II
August 16, 2024

SPI