FOTA with external Flash.

Hi Team,
NCS v2.3.0

I need put the second slot FOTA on an external flash for nrf52840.

 Is there any feasibility for use bluetooth dfu with SINGLE_APPLICATION_SLOT?

1. I added CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y  to prj.conf
2. I added to overlay:
  
/ {
	chosen {
		nordic,pm-ext-flash = &mx25r64;
	};
};


What else needs to be added to make it work?




Thank you.



Parents
  • Hi,

    You need to add the overlay with pm-ext-flash to both the application and MCUboot. If you have added this to an overlay file called something like <board_name>.overlay, then the structure should look like this:

    project_dir
    |__ src
    |__ CMakeLists.txt
    |__ prj.conf
    |__ boards
        |__<board_name>.overlay
    |__ child_image
        |__mcuboot
           |__ boards
               |__ <board_name>.overlay

    Best regards,
    Marte

  • Hi Marte,
    Thanks, I've already added what you said.
    How can I understand that an external flash is already in use?

    00> Connected to SMP service: err 0 id 1
    00> [00:01:20.553,955] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.555,236] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.819,061] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.819,519] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:23.269,561] <inf> mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x6c000 bytes of image slot
    00> [00:01:23.319,854] <inf> mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x1000 bytes of image slot trailer

    Best regards,
    Serhii

Reply
  • Hi Marte,
    Thanks, I've already added what you said.
    How can I understand that an external flash is already in use?

    00> Connected to SMP service: err 0 id 1
    00> [00:01:20.553,955] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.555,236] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.819,061] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:20.819,519] <inf> mcuboot_util: boot_swap_type_multi: Swap type: none
    00> [00:01:23.269,561] <inf> mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x6c000 bytes of image slot
    00> [00:01:23.319,854] <inf> mcumgr_img_mgmt: img_mgmt_erase_image_data: Erased 0x1000 bytes of image slot trailer

    Best regards,
    Serhii

Children
No Data
Related