cancel
Showing results for 
Search instead for 
Did you mean: 

I have some error with stm32u5f7vjt with touchgfx designer.

Furkan2
Visitor

I'm using stm32u5f7vjt MCU with touch gfx designer for 5" Touch display. So I'm getting some error during adding image in touchgfx Designer not any issue its generated the but when i build my main code its generated error likes TouchGFX_Framebuffer will not fit in region 'FLASH', makefile error and region overflowed by 134688 bytes. how to solve this error?

Description Resource Path Location Type
5INCH_TFT.elf section `TouchGFX_Framebuffer' will not fit in region `FLASH' 5INCH_TFT C/C++ Problem

Description Resource Path Location Type
make: *** [makefile:121: 5INCH_TFT.elf] Error 1 5INCH_TFT C/C++ Problem

Description Resource Path Location Type
region `FLASH' overflowed by 134688 bytes 5INCH_TFT C/C++ Problem

1 REPLY 1
GaetanGodart
ST Employee

Hello @Furkan2 ,

 

5INCH_TFT.elf section `TouchGFX_Framebuffer' will not fit in region `FLASH' 5INCH_TFT C/C++ Problem
region `FLASH' overflowed by 134688 bytes 5INCH_TFT C/C++ Problem

This error means that the framebuffer requires more memory than you have memory available in your flash.

To solve this issue you have multiple solutions:

  1. change your memory allocation to put your framebuffer in a bigger memory such as external SDRAM or inter SRAM (it is usually not recommended to use the flash for the framebuffer).
  2. use a smaller framebuffer such as single framebuffer if you were using double or even partial framebuffer : https://support.touchgfx.com/docs/basic-concepts/framebuffer#framebuffer-strategies
  3. optimize your code for size. Set your compiler to optimize for size and maybe you will be able to fit the framebuffer in your flash

 

I hope this helps!
If this comment solves your issue, I invite you to select it as "best answer".

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)