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?

Parents Reply
  • Sorry for the late reply, I was away.

    In sysbuild/ipc_radio/prj_release.conf I found the following enabled options:

    CONFIG_BT_ISO_PERIPHERAL=y
    CONFIG_BT_ISO_CENTRAL=y
    CONFIG_BT_ISO_BROADCASTER=y
    CONFIG_BT_ISO_SYNC_RECEIVER=y

    I only need a controller which supports the LE audio broadcast source role. Can I disable all these options except CONFIG_BT_ISO_BROADCASTER? I found no documentation about these options.

    Regarding setting SB_CONFIG_SECURE_BOOT_NETCORE=n: Is then updating the ipc_radio image still possible but updating the b0n image is not possible anymore?

Children
Related