2024-10-08 01:28 AM
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
2024-10-09 02:31 AM - edited 2024-10-09 02:33 AM
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,
2024-10-09 04:22 PM
Thank you, LouisB
I capture a portion of the screen.
image format : rgb565
framebuffer format : rgb565
2024-10-10 02:03 AM
And what do you have in the default image configuration ? Try to put non opaque format to RGB565
2024-10-10 05:36 PM - edited 2024-10-10 05:45 PM
This is my TouchGFX default image configuration, and the RGB565 format option is not available in the Non-Opaque Image Format.
and, i'm sure this is cache issue.
because, for a moment, some parts of the tearing screen were flickering, displaying the correct colors.
2024-10-18 03:22 AM
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,
2024-10-23 03:53 AM
I had the similar situation.
I found the text flicker and below is countermeasure. It's just for your reference.
TouchGFXHAL.cpp