Best way to load large images into RAM?
Hi there, we are using MDK-ARM to develop an application on our STM32F7 which drives a display, and we would like to present a relatively sophisticated UI, which will included some compile-time static images. We are learning as we go here, and I tried to be clever and created a desktop tool into which we can drop a picture, and it would generate a C function to set a range of RAM to hard-coded pixel data to represent the picture, which I'd call on initialization. When I wanted to show this image I would just direct the LTDC layer to the address this picture was written. This was going well until I got to the first of several 400x400 images, which generated a 160,000 line function and crashed the compiler.
So, I'm done being clever and thought I'd ask the pros: what's the Right way to do this? What's the best way to weave a large chunk of binary data to be pre-loaded into a known memory location when your application initializes?
(This must be well-traveled territory, but I did some googling and didn't turn up much... or maybe the keywords I was using are too overloaded.)
Thanks for any thoughts!
#image-processing #ltdc #lcd-driver #stm32f7