Skip to main content
Associate III
December 12, 2023
Solved

Image is getting flickered by the handleTick function using TextArea

  • December 12, 2023
  • 1 reply
  • 3141 views

In the ScreenView(), Iam adding a handleTick function and trying to update the value for every one second. The value is updating according to the code I have written. But at the time of updation my screen is flickering.

May I know what is the reason?

And I am initializing the external SDRAM peripheral and not configuring the MPU related things.

Thank you.

 

Best answer by MM..1

@Shivani happy new year. Your info lacks display resolution. But for any custom good is read LCD-TFT display controller (LTDC) on STM32 MCUs - Application note

For memory config on discovery, try generate TGFX project and extract config SDRAM from it. But important is too clock configs...

1 reply

ST Employee
December 14, 2023

Hello @Shivani ,
Unfortunately, there can be multiple reasons for this issue and I'm not sure which one it can be. Could you please check if your screen still flickers if you only have your textArea that you update the value for? And are you using an MPU or MCU? Which model are you using?
And is it possible to provide a video or image of the issue?

Thank you

Mohammad MORADIST Software Developer | TouchGFX
ShivaniAuthor
Associate III
December 20, 2023

Hello @Mohammad MORADI ESFAHANIASL ,

Actually, I found that there was no problem with the Text Area, but it is with my SDRAM Initialization in STM32H745I Discovery Board. Without the SDRAM Initialization it is working fine. (i.e. using the internal memories rather than the initializing of the external peripherals). Iam using the MT48LC4M32B2 part number SDRAM in this STM32 Board.

Iam attaching the SDRAM related files that I have used in the SDRAM Initialization in my project. kindly check the files and let me know the reasons of screen flickering.  

Thank You.

ST Employee
December 21, 2023

Hello again,
There is already a board setup ready for STM32H745I Discovery in the TouchGFX Designer that you can easily use to develop your application, and SDRAM and other required parts are already configured.
STM32H745I DiscoverySTM32H745I Discovery

 

Is there any specific reason that you are not using this setup?
If you still want to use your own configuration, you can consider this setup as inspiration.

I hope this helps you

Mohammad MORADIST Software Developer | TouchGFX