cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx Landscape to Portrait flickering problem.

Msolinas
Senior

Good morning everyone, I created a project for a client and it is now in an advanced state.

All the time the project was developed with a horizontal display (we are talking about two years of work), at a certain point a larger display was used, original 800x480, new 1024x600.
The use was in portrait mode.
I started to have content flickering.

I worked hard for days, thinking I might have a problem with buffer declarations, memory management, or other things related to hardware or settings. Today I made the macabre discovery.


I positioned the landscape position of only the display on the touchgfx gui and everything magically works perfectly, naturally you can only see half of the objects as many of them are defined out of field, but no flickering of text or images.
The flickering occurs between one writing and another to change the data. For a moment, new fonts appear dotted with errors or buttons or whatever redraws between one buffer and another, and all of this depends only on the orientation of the display without changing a line of code.

Help is essential, I really don't want to debug touchgfx. Thanks to anyone who can put me on the right path, I can't find anything online other than a few posts where no one offers solutions.

13 REPLIES 13
JTP1
Lead

Hello

Have you enable Dcache ? If yes, try to disable it first to see is it causing the issues.

Br JTP

 

JTP1 this is the second time you saved me! a week of work, convinced that I had a hardware or configuration problem and in the end this was the problem!

Thank you very much, solved in the time of one compilation!

JTP1
Lead

That's great news, glad to be able to help you.

Please note that with MPU it is most likely possible to disable caching for just some memory area (framebuffer in this case (?)).

https://community.st.com/t5/stm32-mcus/how-to-configure-the-mpu-of-an-stm32-using-stm32cubemx/ta-p/49825

Br JTP

 

yes... this was my MPU set

 

Msolinas_0-1713857618512.png