nrf54l15: FOTA error

Hello Team,

I am trying to set configurations for FOTA. I refer smv_server sample code and the following document https://docs.nordicsemi.com/bundle/ncslatest/page/nrf/app_dev/device_guides/nrf54l/fota_update.html for the configuration.

But I am getting the following error while compiling the code "error: 'PM_MCUBOOT_PRIMARY_ID' undeclared".

Can anyone please help me resolve the error?

Thanks,

Payal

Parents
  • Hi,

    I am not able to reproduce this with SDK 2.9.1 when building for the nRF54L15 DK. Are you using an older SDK? If so, I suggest you udate. If you see this error with 2.9.1, have you made any changes to the sample? If so, which?

  • Hi,

    Thanks for your reply. I resolved the error; it was due to the missing SB_CONFIG_BOOTLOADER_MCUBOOT=y configuration in sysbuild.conf. But after adding in sysbuild.conf file, I got a new error: "region `FLASH' overflowed by 10364 bytes". To resolve this error, I increased the FLASH space allocated for the MCUboot partition by adding CONFIG_PM_PARTITION_SIZE_MCUBOOT=0xd000 in my prj.conf file and build the code but getting the warning "warning: attempt to assign the value '0xd000' to the undefined symbol PM_PARTITION_SIZE_MCUBOOT" and error "error: Aborting due to Kconfig warnings".

  • Hi,

    I see. That is expected, as the configuration is for MCUboot, and should not go in the application prj.conf. The cleanest way to add this is probably to make a file named "mcuboot.conf" under the "susbuild" folder in the project you are building, and add the config there. You can see an example of that here.

Reply
  • Hi,

    I see. That is expected, as the configuration is for MCUboot, and should not go in the application prj.conf. The cleanest way to add this is probably to make a file named "mcuboot.conf" under the "susbuild" folder in the project you are building, and add the config there. You can see an example of that here.

Children
  • Hi,

    The cleanest way to add this is probably to make a file named "mcuboot.conf" under the "susbuild" fol

    I tried the suggested way, but I still get the "region `FLASH' overflowed by 18240 bytes" error.

    Regards,

    Payal

  • Hi,

    I see. That is odd. Did you try to incrase the value? Also, which SDK version are you using?

  • Yes, I tried to increase the value. I am using SDK version 2.9.0 and compiling the code for nrf54l05.

  • Hi,

    Ah, I see. I misunderstood and thought you were using nRF54L15. The nRF54L05 has much less memory, so there you need to to soem optimziation in order to achieve it. You will need to do quite a bit of optimization, as the application is now 18 kB too large (based on the linker error you pasted earlier today). Generally, the amount of storage on the nRF54L05 means that in order to use it with DFU without external flash you will need a small and highly optimized application. You could start by disabling logging and see how far you get, then find other features you don't need and turn off until you get the size down enough.

  • Ok, Thanks. I will try to optimize the application