cancel
Showing results for 
Search instead for 
Did you mean: 

I've some problem to compile the project STM32WB55RG_Nucleo_2_Images_SECoreBin, I've the following error 'SeCoreBin.elf section `.rodata' will not fit in region `SE_ROM_region''

GPomp.1
Associate III

Hi all,

I've downloaded the package 'STM32CubeExpansion_SBSFU_V2.4.0' and I've opened, using STM32CubeIDE (Version: 1.6.1), the project STM32WB55RG_Nucleo_2_Images_SECoreBin.

I'm not able to compile the project because I've the following error:

arm-none-eabi-gcc -mcpu=cortex-m4 -c -x assembler-with-cpp -MMD -MP -MF"Application/SW4STM32/se_key.d" -MT"Application/SW4STM32/se_key.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Application/SW4STM32/se_key.o" "C:/progetti/INFOBOX_3.0/Micro/download/en.x-cube-sbsfu/STM32CubeExpansion_SBSFU_V2.4.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/2_Images/2_Images_SECoreBin/SW4STM32/se_key.s"

arm-none-eabi-gcc -mcpu=cortex-m4 -c -x assembler-with-cpp -MMD -MP -MF"Application/SW4STM32/startup_stm32wb55xx_cm4.d" -MT"Application/SW4STM32/startup_stm32wb55xx_cm4.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Application/SW4STM32/startup_stm32wb55xx_cm4.o" "C:/progetti/INFOBOX_3.0/Micro/download/en.x-cube-sbsfu/STM32CubeExpansion_SBSFU_V2.4.0/Projects/P-NUCLEO-WB55.Nucleo/Applications/2_Images/2_Images_SECoreBin/SW4STM32/startup_stm32wb55xx_cm4.s"

arm-none-eabi-gcc -o "SeCoreBin.elf" @"objects.list" -l:libSTM32CryptographicV3.0.0_CM4_GCC.a -mcpu=cortex-m4 -T"../stm32wb55xx_flash_cm4.ld" --specs=nosys.specs -Wl,-Map="SeCoreBin.map" -Wl,--gc-sections -static -Wl,--start-group -l:libSTM32CryptographicV3.0.0_CM4_GCC.a -Wl,--end-group -L../../../../../../../../Middlewares/ST/STM32_Cryptographic/Fw_Crypto/STM32WB/Lib -Xlinker -L ../../../../Linker_Common/SW4STM32 --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

c:\st\stm32cubeide_1.6.0\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: SeCoreBin.elf section `.rodata' will not fit in region `SE_ROM_region'

c:\st\stm32cubeide_1.6.0\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 `SE_ROM_region' overflowed by 401 bytes

collect2.exe: error: ld returned 1 exit status

make[1]: *** [makefile:68: SeCoreBin.elf] Error 1

make: *** [makefile:61: all] Error 2

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

What's the problem? How can I resolve it?

Regards,

Giampietro

2 REPLIES 2
ChahinezC
Lead

Hello @Community member​,

This looks similar to the case reported in this question. Try the workaround suggested by Jocelyn here.

Chahinez.

Henke
Associate

Hello,

You can reduce the overflow size by playing with the gcc optimization flags.

If that is not enough, you can change the size of the region. Please see X-CUBE-SBSFU integration guide AN5056, chapter 6.2.

Regards

Henke