Skip to main content
ANguy.3
Associate
October 12, 2020
Question

Error Flash memory in STM32F7508-DK

Hi,

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\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.4.0.202007081208\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\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.4.0.202007081208\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.

This topic has been closed for replies.

3 replies

ANguy.3
ANguy.3Author
Associate
October 12, 2020

Any help, please :folded_hands:

DTung.2
Associate
October 13, 2020

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

Tesla DeLorean
Guru
October 13, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..