cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Flash overload TOUCHGFX for stm32 h757 riverdi

hamzatamer
Associate II

Hello,
I am working with stm32 h757 riverdi kit. I get this error in stm32cubeide

arm-none-eabi-g++ -o "Riverdi_70STM32H7_CM7.elf" @"objects.list"  -l:libtouchgfx-float-abi-hard.a -mcpu=cortex-m7 -T"C:\TouchGFXProjects\AKUSTEK_V3\STM32CubeIDE\CM7\STM32H747XIHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Riverdi_70STM32H7_CM7.map" -Wl,--gc-sections -static -L../../../CM7/Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: Riverdi_70STM32H7_CM7.elf section `.text' will not fit in region `FLASH'
C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 1307900 bytes
C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: Riverdi_70STM32H7_CM7.elf has a LOAD segment with RWX permissions
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:109: Riverdi_70STM32H7_CM7.elf] Error 1
make: *** [makefile:102: all] Error 2
"make -j12 all" terminated with exit code 2. Build might be incomplete.

But my GUI works. Even when I make updates to my GUI, the code still runs and I get the expected output, although I keep getting this error. Also, I have already marked all TouchGFX assets such as images and fonts to be stored in external flash via TouchGFX Designer, but I still get a flash overflow error for internal flash.

hamzatamer_0-1747834048224.png

 

1 REPLY 1
Osman SOYKURT
ST Employee

Hello @hamzatamer ,

Can you check your linker script and confirm that your ExtFlashSection is linked to QUADSPI region and not FLASH? (Because it looks like it is not using QUADSPI at the moment).

Have you started your application from TouchGFX Designer using the example project that we provide, or not?

OsmanSOYKURT_0-1750776223441.png

Osman SOYKURT
ST Software Developer | TouchGFX