Skip to main content
scott.sp
Associate
April 30, 2020
Question

Problem with caching extra section of images in L8 format stored in external memory.

  • April 30, 2020
  • 3 replies
  • 1057 views

Hello,

I'm using TouchGFX 4.13 on STM32H7

I have problem while using images in L8 format and caching them (section and extra section) from external memory.

When I want to store image in external memory in L8 format then I set both: 'Section' and 'Extra Section' to 'ExtFlashSection' in TouchGFX Designer. During 'Bitmap::cache()' call the overridden 'HAL::blockCopy' method properly copies image bytes (that is the first call to 'blockCopy'). But when second call to 'blockCopy' is made, the caller (which still is 'Bitmap::cache()') just tries to copy always only 4 bytes, thus the colors palette (I suppose it is the palette) is not copied, so image is not displayed properly.

But when I change 'Extra Section' only to 'IntFlashSection' in TGFX Designer then the image is displayed properly.

Is that a bug? Or it is intentional, if so, what is the reason for such implementation?

This topic has been closed for replies.

3 replies

Martin KJELDSEN
Principal III
April 30, 2020

Hi scott,

Thanks for the feedback. I'll get a chance to look into this monday, i think.

scott.sp
scott.spAuthor
Associate
May 4, 2020

Thank you Martin. I'm looking forward for some news.

skullboyer
Associate III
June 1, 2020

Has it been resolved?

I also encountered a similar problem, there is no more detailed description of the resources placed on the external serial flash memory, refer to the official documentation is still not implemented, encountered many problems.