Access Image/Font arrays during runtime from external flash

Hello @kisvegabor,

I’m using STM32H7A3VIT6, its internal flash is insufficient for the project. Mainly images and fonts have the high flash usage. So, I thought to store them on the External NOR Flash and loading them from it during runtime.
I also came across using a Quad SPI Flash in memory mapped mode, which can map external flash to MCUs internal address.

It would be good if you could help to achieve this.

Keshav Aggarwal


If memory mapping is an option you can set LV_ATTRIBUTE_LARGE_CONST in lv_conf.h to an __attribute__((...)) value. LV_ATTRIBUTE_LARGE_CONST is added to all image and font arrays so this way you can easily move all these to external memory.

1 Like