Hi,
I am developing a LWM2M/OT solution including mcuboot on the nRF52840 chip. The solution is working well on the nRF52840 DK, but when building it for our custom board I need to make a few adjustments to the devicetree. Just switching a few pins, but whenever I include this overlay (even on the DK build configuration) the program size seems to grow around 500 kB, and I get an overflow message:
&i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 28)>, <NRF_PSEL(TWIM_SCL, 0, 29)>; }; }; &led0 { gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; label = "Green LED 0"; };
The error message (sorry, I was unable to insert it as a code block for some odd reason):
[912/931] Linking CXX static library zephyr\kernel\libkernel.a
[913/931] Linking CXX executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\NordicSemi\toolchains\v2.1.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-g++.exe @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D C:\test\FarrowLinkSC20221102\build\zephyr && C:\NordicSemi\toolchains\v2.1.0\opt\bin\cmake.exe -E echo ""
c:/nordicsemi/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `text' will not fit in region `FLASH'
c:/nordicsemi/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: region `FLASH' overflowed by 274692 bytes
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\NordicSemi\toolchains\v2.1.0\opt\bin\cmake.EXE' --build 'c:\test\FarrowLinkSC20221102\build'
The terminal process terminated with exit code: 1.
I am using nRF Connect SDK 2.1.0 and tried with 2.2.0 too. OS is Windows 10.
Adding the overlay to a simple hello-world example does not result in increased size.
Any help is greatly appreciated,
Erik