nrf_audio sample with FOTA enabled exceeds ipc_radio FLASH partition

Hi.

I try to build the nrf_audio sample as BIS headset with enabled FOTA and NCS2.7.0 and get the following link error for the ipc_radio image:

FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map nrf5340_audio/build/sink-fota/ipc_radio/zephyr/zephyr_pre0.map
ld.bfd.exe: region `FLASH' overflowed by 2976 bytes

The b0n bootloader links fine with this output:

Memory region         Used Size  Region Size  %age Used
           FLASH:       23874 B      34176 B     69.86%
             RAM:        3528 B        64 KB      5.38%

As you can see there is 10KiB unused space in the b0n partition. Therefore I tried to reduce the size of this partition from 0x7800 to 0x6800. I tried to set the config variables CONFIG_PM_PARTITION_SIZE_B0_IMAGE in the corresponding sysbuild conf files (sysbuild/b0n/proj_fota.conf and sysbuild/ipc_radio/proj_fota.conf) or in sysbuild_fota.conf (with SB_ prefix), but my setting is ignored or there is a cmake configure error.

How can I reduce the b0n partition size?

Related