cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo JC1 LoRaWAN Dual Core example doesn't compile.

bblouin
Associate III
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.

1 ACCEPTED SOLUTION

Accepted Solutions
SBEN .2
Senior II

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​ 

View solution in original post

3 REPLIES 3
SBEN .2
Senior II

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​ 

Fixed, thanks.

Souan.1
Associate II

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