Skip to main content
bblouin
Associate III
July 6, 2021
Solved

Nucleo JC1 LoRaWAN Dual Core example doesn't compile.

arm-none-eabi-gcc -o "LoRaWAN_End_Node_DualCore_CM0PLUS.elf" @"objects.list" -mcpu=cortex-m0plus -T"/Users/ben.blouin/dev/LoRaWAN_End_Node_DualCore/STM32CubeIDE/CM0PLUS/STM32WL55JCIX_FLASH.ld" --specs=nosys.specs -Wl,-Map="LoRaWAN_End_Node_DualCore_CM0PLUS.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: LoRaWAN_End_Node_DualCore_CM0PLUS.elf section `.text' will not fit in region `ROM'
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: region `ROM' overflowed by 7240 bytes
collect2: error: ld returned 1 exit status
make: *** [makefile:76: LoRaWAN_End_Node_DualCore_CM0PLUS.elf] Error 1
"make -j11 all" terminated with exit code 2. Build might be incomplete.

This happens on new project.

This topic has been closed for replies.
SBEN .2
SBEN .2Best answer
Visitor II
July 6, 2021

Hello @bblouin​ ,

As indicated by your ld's output, the issue is that the code won't fit into the available memory. Try recompiling the project with the -Os (optimize for size) flag.

Best regards,

@SBEN .2​ 

3 replies

SBEN .2
SBEN .2Best answer
Visitor II
July 6, 2021

Hello @bblouin​ ,

As indicated by your ld's output, the issue is that the code won't fit into the available memory. Try recompiling the project with the -Os (optimize for size) flag.

Best regards,

@SBEN .2​ 

bblouin
bblouinAuthor
Associate III
July 7, 2021

Fixed, thanks.

Souan.1
Visitor II
April 25, 2022

is there any tutorial on how to implement this dual core example?