nRF54L15 mcuboot fprotect issue

Hello,

I'm developing for nRF54L15 the application with the NSIB + MCUBoot. I have a problem with fprotect in mcuboot returning EINVAL error.
That happens due to limitation of the max protect area size in function fprotect_area in file fprotect_rram.c to 0x7C00.
While building S0 and S1, the MCUBoot passes to fprotect function PM_S0_ADDRESS as start address and (PM_MCUBOOT_PRIMARY_ADDRESS - PM_S0_ADDRESS) as size.
Without pm_static file, the generated partitions for S0 and S1 have size of 0xC000 each.
The NSIB (b0) size is 0x8000 and is placed right before S0. The PM_MCUBOOT_PRIMARY_ADDRESS is equal to 0x20000 (placed right after S1 image).
It means that the fprotect_area function will take parameters start = 0x8000 and size = (0x20000 - 0x8000) = 0x18000.

How should I configure the project so I can build the application with NSIB + MCUBoot and protect both S0 and S1 images with fprotect?

NCS 2.9.0

Regards
Filip

Related