cancel
Showing results for 
Search instead for 
Did you mean: 

Hi every one, I am using STM32F469 discovery , I just created a project in touchgfx with 2 png background screens and and when I refresh and compile this project in IDE I got errors .

SR.8
Associate II

the errors like :\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: STM32F469I-DISCO.elf section `ExtFlashSection' will not fit in region `QSPI'

c:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: region `QSPI' overflowed by 887220 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:92: STM32F469I-DISCO.elf] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

i checked my liker file

MEMORY

{

 CCMRAM  (xrw)  : ORIGIN = 0x10000000,  LENGTH = 64K

 RAM  (xrw)  : ORIGIN = 0x20000000,  LENGTH = 320K

 FLASH  (rx)  : ORIGIN = 0x8000000,  LENGTH = 2048K

 SDRAM (rw)   : ORIGIN = 0xC0000000, LENGTH = 16M

 QSPI (r)    : ORIGIN = 0x90000000, LENGTH = 16M  

}

in hardware changes also - middleware - free RTOS - advanced settings - enabled     USE_NEWLIB_REENTRANT   parameter.

i am new to this i couldn't get rid of this .. ..help meeeee

4 REPLIES 4
MM..1
Chief III

PNG size need be same as display and too check if in images you realy have only two images. All too unused images is compiled in code...

24MB won't fit in 16MB, check how large these images are and how much of the kitchen is being added.

Could perhaps say QSPI is 32 MB so linker gets closure and then look at what's in the .MAP file.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SR.8
Associate II

same screens using another project, i didn't get any errors over there

MM..1
Chief III

Check or show here folder list for TouchGFX\assets\images\ and TouchGFX\generated\images\src\

 Directory of ....assets\images
 
26. 07. 2021  17:35    <DIR>          .
26. 07. 2021  17:35    <DIR>          ..
18. 10. 2019  15:14             1 079 gauge_needle_pin.png
10. 12. 2019  12:25               140 green1.png
30. 01. 2020  12:26            21 519 Nu-44_L.png
30. 01. 2020  12:26            21 534 Nu-44_R.png
30. 01. 2020  12:26             1 656 Nu-44_S.png
31. 01. 2020  09:24            20 512 Nu-46B_oL.png
31. 01. 2020  09:24            20 581 Nu-46B_oR.png
31. 01. 2020  10:01             1 784 Nu-46B_oS.png
07. 02. 2020  11:04            18 489 ST_103.png
07. 02. 2020  11:04            18 418 vumeter02.png
26. 07. 2021  17:35    <DIR>          __designer

my example