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
  • I tried to build a FOTA variant now with a nrf5340_audio/sysbuild/ipc_radio/prj_fota.conf copied from prj_release.conf with the following disabled:

    CONFIG_DEBUG=n
    CONFIG_ASSERT=n
    CONFIG_STACK_USAGE=n
    CONFIG_THREAD_MONITOR=n
    CONFIG_SERIAL=n
    CONFIG_CONSOLE=n
    CONFIG_PRINTK=n
    CONFIG_UART_CONSOLE=n
    CONFIG_BOOT_BANNER=n
    CONFIG_NCS_BOOT_BANNER=n


    With that config I managed to link the ipc_radio image, but only in a tiny margin:
    Memory region         Used Size  Region Size  %age Used
               FLASH:      226592 B       222 KB     99.68%
                 RAM:       55652 B        64 KB     84.92%

    Is there more I can disable? I fear for the future, when the softdevice controller grows only a little in size then there is no space anymore.

Children
Related