DFU Image Encryption

Hello,

I’m trying to enable image encryption on nRF54L. When I enable the encryption, MCUBoot firmware size gets bigger and does not fit into 60kb region. When I set the region to much bigger size, MCUBoot fails to start running the firmware. I’ve also read this ticket (https://devzone.nordicsemi.com/f/nordic-q-a/120819/nrf54-with-mcuboot) that if the app start address higher than 0x10000, the MCUBoot will fail to boot because of Fprotect.

1 - Is there an official support for image encryption with DFU on the nrf Connect SDK ? If yes, are there any reference documents about it ?

2 - If there is a support, how to adjust the partitions of the flash to solve Fprotect problem ?

Thanks & Best Regards,

Emre Bayraktar.

Parents Reply
  • Hi Viar, 

    With CONFIG_FPROTECT disabled and image encryption enabled, bootloader project exceeded 60kb region by 900 bytes. I've disabled log feature and resulting image fitted into 60kb region and encrypted.hex file is created. But when I flash it to the DK, nothing happens. Are there any extra steps for uploading encrypted image to the nRF54L ? 

    When I disable these config commands, blink app works fine. 

    SB_CONFIG_BOOT_ENCRYPTION=y
    SB_CONFIG_BOOT_ENCRYPTION_KEY_FILE="/opt/nordic/ncs/V3.1.0/bootloader/mcuboot/enc-x25519-priv.pem"

    Thanks & Best Regards,

    Emre.

Children
Related