2024-10-15 03:01 AM
hello,
I'm currently developing an application that features more than 150 screens. However, I've encountered a significant challenge: once I build the code, the overall size exceeds the available flash memory. While I'm using external flash for images, I still need a solution to accommodate the large code base . What strategies or best practices can I implement to optimize my application’s size and ensure it runs smoothly? Any insights or recommendations would be greatly appreciated!
Solved! Go to Solution.
2024-10-15 04:53 AM
Check you linker file and map file and find what you could move from the internal flash to the external one.
2024-10-15 03:04 AM
@jijomathew wrote:the overall size exceeds the available flash memory. While I'm using external flash for images, I still need a solution to accommodate the large code base
How much Flash do you have?
What is the size of your built app?
2024-10-15 03:08 AM
1024 KB (STM 32 L496ZG) Microcontroller, once i build it is taking more than 100 percentage of flash
2024-10-15 03:10 AM
@jijomathew wrote:
1024 KB (STM 32 L496ZG) Microcontrolle
Including TouchGFX stuff?
2024-10-15 03:12 AM
yes,
2024-10-15 03:30 AM
So what is the purpose of the external Flash memory if you are locating TouchGFX stuff into the internal memory?
2024-10-15 03:32 AM
To load Images
2024-10-15 03:45 AM
@jijomathew wrote:1024 KB (STM 32 L496ZG) Microcontroller,
and what about the external Flash?
Please try to give as much information as possible, rather than just drip-feeding it.
2024-10-15 04:48 AM
My application is built with an STM 32 L496ZG microcontroller, OLED display, and touch GFX, using touch GFX I have designed about 150 screens that have text boxes and images. External Flash(16MB) is interfaced with a microcontroller to store the images used on different screens once, I try to build this code I get the following error.
2024-10-15 04:53 AM
Check you linker file and map file and find what you could move from the internal flash to the external one.