2024-06-26 01:33 AM - edited 2024-06-26 01:36 AM
Hey,
I am trying out the new RGB image compression in TGFX 4.24 and are having some issues. My program compiles fine without any compression.
I have only turned the feature on in TouchGFX Designer and generated code. Is there something else I am missing? It does no seem like it after reading the documentation.
This is the resulting stack
MemManage_Handler() at stm32h7xx_it.c:112 0x2dc
<signal handler called>() at 0xffffffed
touchgfx::LCD32bpp::DecompressorRGB_QOI::blitCopyARGB8888() at 0x9015c560
touchgfx::LCD32bpp::drawPartialBitmap() at 0x9015d9da
touchgfx::Image::draw() at Image.cpp:37 0x90027090
touchgfx::Screen::JSMOC() at 0x901556ec
touchgfx::Screen::JSMOC() at 0x90155696
touchgfx::Screen::JSMOC() at 0x90155696
...
Edit: I am using external flash
2024-06-26 01:53 AM
Hello @PontusL ,
Can you specify what hardware you are using?
Have you also updated the TouchGFX Generator pack in STM32CubeMX?
Can you give us steps to reproduce or send your project?
Regards,
2024-06-26 05:34 AM - edited 2024-06-26 05:36 AM
Hello,
I am using custom hardware based around an STM32H750 with sdram for the framebuffer and external flash memory for the code and assets. LCD-LTDC display and I have ChromART enabled. I use FreeRTOS.
Been running 4.22.0 for a couple of months without issues. Updated to 4.24.0 when launched and have not had any issues here either.
Yes, I have updated the TouchGFX Generator pack in STM32CubeMX.
The steps to reproduce the issue is simply to:
touchgfx::LCD32bpp::DecompressorRGB_QOI::blitCopyARGB8888()
//Pontus
2024-07-01 07:07 AM
Hello @PontusL ,
I have used the STM32H750B-DK board to reproduce your steps:
I think the issue comes from your custom board setup which is hard for me to debug.
Maybe you ca try to go deeper into understanding which functions makes your GUI crash, which line of blitCopyARGB8888(), which function calls blitCopyARGB8888(), etc.
Also, does your image have transparency?
Regards,
2024-07-01 07:43 AM
Hello Gaetan,
Thanks for taking the time to look into my issue.
Yes, I suspect it relates to my external flash which makes it very hard for you :). I have some more details about the function calls leading up the the crash in my first post, and I hoped it would maybe be something minor easy to spot based on this.
The image have transparency. But I have also tried with an image without transparency, using RGB888, which results in the same behavior. I will have a deeper look when I have time! Could possibly also try to import my project to my STM32H750B-DK to try and spot differences.
Thanks,
Pontus
2024-07-02 12:56 AM
Hello @PontusL ,
I will have a deeper look when I have time! Could possibly also try to import my project to my STM32H750B-DK to try and spot differences.
I can try your GUI on my board if that can help
Maybe have a look at this post where another user also had issue with external memory and with a blitCopy function (not related to compression thought).
Do you only have your issue when compressing or does it happen on uncompressed images too?
Regards,
2024-09-02 02:28 AM
Hello @PontusL ,
Have you been able to solve your problem?
If so, I invite you to select the most helpful comment as "best answer".
Regards,