nRF5340 OTA fails with Mcu Mgr Error: 10 Group: 1 after interrupted upload

Hi,

I get a Mcu Mgr Error: 10 Group: 1, when I

  1. start OTA on Android smart phone
  2. interrupt during upload by disabling BLE on the phone
  3. enable BLE again
  4. retry OTA upload

This is the corresponding error message:
<err> mcumgr_img_grp: Image upload inspect failed: 10

Do I need to wait longer until the error will go away 

or

do I need to do anything other then retrying directly?

I found out that if I run `kernel reboot cold` on the Zephyr shell, then there is no more Error 10 and the upload will start as expected.

Thanks, Alex

Parents Reply Children
  • Yes, sure. I am using NCS SDK v2.6.1 and I am using a custom PCB based on the nRF5340 DK

    I am not sure if I am allowed to share the entire log but I can share the part that contains the messages that come up when I start OTA.

    [00:00:18.663,269] <inf> mcuboot_util: Secondary image of image pair (0.) is unreachable. Treat it as empty
    [00:00:18.690,490] <inf> mcuboot_util: Image index: 0, Swap type: none
    [00:00:18.714,721] <err> mcumgr_img_grp: Failed to open flash area ID 2: -19
    [00:00:18.739,624] <inf> mcuboot_util: Secondary image of image pair (1.) is unreachable. Treat it as empty
    [00:00:18.766,906] <inf> mcuboot_util: Image index: 1, Swap type: none
    [00:00:18.790,863] <err> mcumgr_img_grp: Failed to open flash area ID 1: -2
    [00:00:18.815,643] <err> mcumgr_img_grp: Failed to open flash area ID 8: -19
    [00:00:19.017,608] <inf> mcuboot_util: Secondary image of image pair (1.) is unreachable. Treat it as empty
    [00:00:19.045,043] <inf> mcuboot_util: Image index: 1, Swap type: none
    [00:00:19.069,000] <err> mcumgr_img_grp: Failed to open flash area ID 8: -19
    [00:00:19.093,750] <err> mcumgr_img_grp: Image upload inspect failed: 10
    [00:00:19.118,286] <err> mcumgr_img_grp: Failed to open flash area ID 2: -19

    
    

    And the following messages show up for a successful OTA:
    (the errors should be okay because the network core update is not in flash)

    [00:03:20.543,823] <inf> mcuboot_util: Image index: 0, Swap type: none
    [00:03:20.568,267] <inf> mcuboot_util: Image index: 1, Swap type: none
    [00:03:20.592,315] <err> mcumgr_img_grp: Failed to open flash area ID 1: -2
    [00:03:32.743,469] <inf> mcuboot_util: Image index: 1, Swap type: none
    [00:03:44.001,068] <err> mcumgr_img_grp: Failed to open flash area ID 1: -2
    [00:03:44.026,275] <inf> mcuboot_util: Image index: 1, Swap type: none
    [00:03:44.051,361] <inf> mcuboot_util: Image index: 0, Swap type: none
    [00:03:44.076,080] <inf> mcuboot_util: Image index: 1, Swap type: perm
    [00:03:44.100,158] <err> mcumgr_img_grp: Failed to open flash area ID 1: -2
    [00:03:44.192,321] <inf> mcuboot_util: Image index: 0, Swap type: none
    [00:03:44.217,254] <inf> mcuboot_util: Image index: 0, Swap type: perm
    [00:03:44.242,065] <inf> mcuboot_util: Image index: 1, Swap type: perm
    [00:03:44.266,143] <err> mcumgr_img_grp: Failed to open flash area ID 1: -2
    shell:~$ I: Starting bootloader
    I: Image index: 0, Swap type: perm
    I: Image index: 1, Swap type: perm
    I: Image 0 upgrade secondary slot -> primary slot
    I: Erasing the primary slot
    I: Image 0 copying the secondary slot to the primary slot: 0x4e9c8 bytes
    I: Image 1 upgrade secondary slot -> primary slot
    I: Erasing the primary slot
    I: Image 1 copying the secondary slot to the primary slot: 0x2ca0c bytes
    I: Turned on network core
    I: Turned off network core
    I: Bootloader chainload address offset: 0xc000
    �: Jumping to the first image slot
Related