Skip to main content
Associate III
October 15, 2024
Solved

Touch gfx code optimization

  • October 15, 2024
  • 1 reply
  • 2196 views

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!

Best answer by mƎALLEm

Check you linker file and map file and find what you could move from the internal flash to the external one.

1 reply

Andrew Neil
Super User
October 15, 2024

@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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate III
October 15, 2024

1024 KB (STM 32 L496ZG) Microcontroller, once i build it is taking more than 100 percentage of flash

mƎALLEm
Technical Moderator
October 15, 2024

@jijomathew wrote:

1024 KB (STM 32 L496ZG) Microcontrolle


Including TouchGFX stuff?

"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."