Skip to main content
관박.1
Associate
Oct 8, 2024 8:28 AM UTC
Solved

touchgfx compression tearing

I'm using TouchGFX version 4.24.1 with external flash memory mapping at address 0x90000000.

When using the original image, there are no issues. However, when using the compressed RGB565 function, a tearing effect appears on the LCD screen. If I disable 'SCB_EnableDCache()', the issue is resolved.

Therefore, I believe that 'TouchGFXGeneratedHal::InvalidateCache()' is not properly invalidating the decompression buffer

  1. Is there a solution for this?
  2. If I disable 'SCB_EnableDCache()', will it have a significant impact on display performance?"

 

 

This topic has been closed for replies.
MTana.1
MTana.1Best answer
Associate II
Oct 23, 2024 10:53 AM UTC

I had the similar situation.

I found the text flicker and below is countermeasure. It's just for your reference.

 

TouchGFXHAL.cpp

MTana1_1-1729680558599.png

 

6 replies

ST Employee
Oct 9, 2024 9:31 AM UTC

Hello @관박.1 ,

You mean a corrupt image ? Do you have a screenshot of the result you have with compression and SCB_EnableDCache ?

And also, what's the image format and the framebuffer format in the configuration ?


BR,

Louis BOUDOST Software Engineer | TouchGFX
관박.1
관박.1Author
Associate
Oct 9, 2024 11:22 PM UTC

Thank you, LouisB

 

I capture a portion of the screen.

1_0-1728515554785.png

1_1-1728515975388.png

image format : rgb565

framebuffer format : rgb565

 

ST Employee
Oct 10, 2024 9:03 AM UTC

And what do you have in the default image configuration ? Try to put non opaque format to RGB565

Louis BOUDOST Software Engineer | TouchGFX
ST Employee
Oct 18, 2024 10:22 AM UTC

Hello @관박.1 ,

For now we didn't encounter this kind of issue with the cache, I'll talk we with the team to look for that.
"SCB_EnableDCache" seems to have side effects, like corrupting data in some cases, a workaround can be disable it so you can do your project.

BR,

Louis BOUDOST Software Engineer | TouchGFX
MTana.1
MTana.1Best answer
Associate II
Oct 23, 2024 10:53 AM UTC

I had the similar situation.

I found the text flicker and below is countermeasure. It's just for your reference.

 

TouchGFXHAL.cpp

MTana1_1-1729680558599.png