cancel
Showing results for 
Search instead for 
Did you mean: 

Touch gfx code optimization

jijomathew
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions

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

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.

View solution in original post

10 REPLIES 10
Andrew Neil
Evangelist III

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

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


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

yes,

So what is the purpose of the external Flash memory if you are locating TouchGFX stuff into the internal memory?

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.

 To load Images 


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

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

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.overflowerror.png

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

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.