Error Flash memory in STM32F7508-DK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-11 9:28 PM
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.
- Labels:
-
Flash
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-12 4:25 AM
Any help, please :folded_hands:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-12 5:11 PM
"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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-12 6:32 PM
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.
Up vote any posts that you find helpful, it shows what's working..
