Serial recovery appcore + netcore without secure boot

Hello,

Currently I am working with the nrf connect SDK version 2.8.0 with an nrf5340 SoC. There is no external flash memory.

I am trying to build a bootloader with the serial recovery enabled in order to update the appcore and the netcore directly trough the bootloader.

I am able to update the appcore by following this guide: MCUboot serial recovery

But for the netcore additional steps are required: MCUboot’s serial recovery of the networking core image


Nothing is really clearly stated but it seems that is not possible to do it if we dont have the config SB_CONFIG_SECURE_BOOT_NETCORE set.

E.g the overlay for the flash sim is added only if secure boot is enabled:

  if(SB_CONFIG_SECURE_BOOT_NETCORE)
    if(NOT SB_CONFIG_NETCORE_NONE)
      set_config_bool(${SB_CONFIG_NETCORE_IMAGE_NAME} CONFIG_SECURE_BOOT y)
    endif()

    if(SB_CONFIG_BOOTLOADER_MCUBOOT)
      if(SB_CONFIG_NETCORE_APP_UPDATE)
        set_config_bool(mcuboot CONFIG_PCD_APP y)

        add_overlay_dts(
          mcuboot
          ${ZEPHYR_NRF_MODULE_DIR}/modules/mcuboot/flash_sim.overlay
          )
        if(SB_CONFIG_SECURE_BOOT_BUILD_S1_VARIANT_IMAGE)
          add_overlay_dts(
            s1_image
            ${ZEPHYR_NRF_MODULE_DIR}/modules/mcuboot/flash_sim.overlay
            )
        endif()
      else()
        set_config_bool(mcuboot CONFIG_PCD_APP n)
      endif()
    endif()
  endif()


I would like to avoid having to enable secure boot as it's adding more complexity and constraints which is not required for us.


Can you confirm me that is mandatory to enable SB_CONFIG_SECURE_BOOT_NETCORE if it's the case where in the documentation this is mentioned?

Do you know if using a newer SDK like 3.x.x if it's possible to do this without having to enable secure boot?

Related