RAM overflow migrating from ncs 2.2.0 to v2.4.4

Hi,

I'm working on a project using MCUboot, TFM, and a network core app. We use MCUboot with an external flash module for OTA firmware updates.

Recently, we tried upgrading from ncs v2.2.0 to v2.4.4 but keep hitting a RAM overflow error when compiling the network core firmware.

arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `bss' will not fit in region `RAM'
c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed 

We first tried updating pm_static.yml for the new TFM requirements, then using partition manager to create partitions. Both approaches still gave the RAM overflow.

When migrating sdk, we compared the nRF5340 DK board file changes between v2.2.0 and v2.4.4 and applied relevant changes to our board files.

Attached is a modified "TFM - hello world" example with mcuboot, a network core image, and our custom board.

7317.tfm_hello_world.zip

Compiling this firmware with our board yields the error below when building the network core image.

: region `RAM' overflowed by 245896 bytes

However, compiling with the nRF5340 DK board file works fine.

I compared the generated partitions.yml from our custom board vs nRF5430 builds - all RAM partitions look identical. So I'm stumped on why we're getting RAM overflow.

Would anyone be able to give some pointers on what I'm missing?

Thanks,

Parents Reply Children
No Data
Related