Showing results for 
Search instead for 
Did you mean: 

Error Flash memory in STM32F7508-DK

Associate II


I am very new with STM32F7508-DK. For the first time, I only want to display image in the board and I think it is not a problem for this board. But still get some error with FLASH memory. This is the error:

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\\tools\arm-none-eabi\bin\ld.exe: stm32f7508dk-test.elf section `.text' will not fit in region `FLASH'
c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\\tools\arm-none-eabi\bin\ld.exe: region `FLASH' overflowed by 623400 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:85: stm32f7508dk-test.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

Any suggestion is really appreciated. Thanks in advance.

Associate II

Any help, please 🙏

"stm32f7508dk-test.elf section `.text' will not fit in region `FLASH'"

I have other flash issue, so I walk by. I just started STM32 for three weeks not an expert, just for your reference. From your error report, it seems that your code is "too big" to fit​ into memory. You might want to use the clue to trace possible problems. For example is your code too big, declare too large memory etc. If that is not helpful I will study the size of .elf, try to confirm whether the report of size too big is correct.

The internal flash for the STM32F7508 is specified as 64 KB, you aren't going to be able to cram 10x that amount into it.

You will need to have a linker script, and attributes on your data items, so they get placed into the external QSPI memory.

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