Skip to main content
ATavo.1
Associate III
July 19, 2021
Solved

Why the Dynamic Graph On the LCD is flickering?

  • July 19, 2021
  • 3 replies
  • 1967 views

Hi,

I have a problem with Dynamic graph on the LCD that when I upload the code, the graph on the screen start to flicker but it's not the in the simulation. I shared the video below.

I want to Update 680 data points on the Graph every tick in "handleTickEvents".

(The data comes from the SPI. The SPI and TouchGFX are in different tasks.)

I used TouchGFX 4.15 and I am using STM32H743 with external RAM and FreeRTOS.

Thanks in advance

This topic has been closed for replies.
Best answer by ATavo.1

Thanks for the helps, it was the doublebuffer that solved the problem.

And i change the clock to lower value and worked. idk why though.

Still thanks everyone.

3 replies

Romain DIELEMAN
ST Employee
July 19, 2021

Hi,

Does this happen only with the dynamic graph or also with other animations ? If it is only linked to the graph then I think the issue comes from the mcu does not have time to render everything at every tick. Would it be possible to either take more time to display the changes (like every two ticks for example) or reduce the amount of data points ?

Are you using a single framebuffer by the way or the double framebuffer strategy ? You could try using a double framebuffer if you have the storage for it.

/Romain

ktrofimo
Senior III
July 19, 2021

Agree. Looks like single buffer problem.​

ATavo.1
ATavo.1Author
Associate III
July 19, 2021

I shared the image for clock setting

ATavo.1
ATavo.1AuthorBest answer
Associate III
August 11, 2021

Thanks for the helps, it was the doublebuffer that solved the problem.

And i change the clock to lower value and worked. idk why though.

Still thanks everyone.