cancel
Showing results for 
Search instead for 
Did you mean: 

Bitmap caching and partial framebuffer

AIlie.2
Associate II

On a STM32F722xx board with no SDRAM, all I have are the 256KB or internal RAM and 512KB FLASH. I implemented PartialFramebuffer and got it working. To reduce the size of the FLASH image, I wanted to implement loading the bitmaps from the SD card.

I followed the videos https://www.youtube.com/watch?v=-0kFwp0ao6k https://www.youtube.com/watch?v=rWT-BeRwybQ&t=390s and https://www.youtube.com/watch?v=rWT-BeRwybQ as well as the articles at https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/caching-bitmaps and https://support.touchgfx.com/4.21/docs/development/scenarios/using-non-memory-mapped-flash to cache my bitmaps and load them from the SD card.

I set the cache size to 128KB, which is larger than the most memory-consuming screen's images. The program loads the images (as far as I can tell), but then fails when trying to draw the bitmaps. See the attached image for the call stack.

Any ideas what is causing this?

Is there an example out there with both PartialFramebuffer and bitmap caching?

2 REPLIES 2
KDJEM.1
ST Employee

Hello @AIlie.2​ ,

I recommend you to refer to this post. This discussion can help you to create an example with Bitmap caching and partial framebuffer.

Also I advise to take a look at this Lowering Memory Usage with Partial Framebuffer.

I hope this help you!

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

AIlie.2
Associate II

Appreciate the answer, but it's not of much help. The first community post does not arrive at any conclusions and does not apply to me, since I don't use ROS. I did read the second article, as I could not have implemented Partial Framebuffer without it.

My question was if there was any example of the two things, bitmap caching and partial framebuffer implemented in the same application, or if there is some fundamental problem using both. The customer that asked a similar question in the first community post never received a reply either.