No free slot DFU issue

I'm trying to enable DFU on our device but am getting a lot of issues. 

I used Device Manager to upload  app_update.bin and it worked. If I use Flutter example to upload firmware I need to use dfu_application.zip. This is where issues arise. Firmware is uploaded but then it fails to update. 

If I go to the Device Manager app I can see that Image Slot 0-1 is taken by new firmware but I can't confirm it or erase it. I get no free slot(9) error. Now I cant upload new firmware using Device manager as it is also giving me no free slot(9) error when uploading new firmware. 

  external_flash (0x800000 - 8192kB):
+-----------------------------------------------+
| 0x0: mcuboot_secondary (0xf0000 - 960kB)      |
| 0xf0000: littlefs_storage (0x710000 - 7232kB) |
| 0x800000: external_flash (0x0 - 0B)           |
+-----------------------------------------------+

  flash_primary (0x100000 - 1024kB):
+--------------------------------------------------+
| 0x0: mcuboot (0x15000 - 84kB)                    |
| 0x15000: EMPTY_0 (0x3000 - 12kB)                 |
+---0x18000: mcuboot_primary (0xe8000 - 928kB)-----+
| 0x18000: mcuboot_pad (0x200 - 512B)              |
+---0x18200: mcuboot_primary_app (0xe7e00 - 927kB)-+
| 0x18200: app (0xe7e00 - 927kB)                   |
+--------------------------------------------------+

  otp (0x2fc - 764B):
+------------------------------+
| 0xff8100: otp (0x2fc - 764B) |
+------------------------------+

  sram_primary (0x80000 - 512kB):
+-----------------------------------------------+
| 0x20000000: pcd_sram (0x2000 - 8kB)           |
| 0x20002000: sram_primary (0x6e000 - 440kB)    |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB) |
+-----------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB):
+--------------------------------------------+
+---0x1000000: b0n_container (0x8800 - 34kB)-+
| 0x1000000: b0n (0x8580 - 33kB)             |
| 0x1008580: provision (0x280 - 640B)        |
+---0x1008800: app (0x37800 - 222kB)---------+
| 0x1008800: hci_ipc (0x37800 - 222kB)       |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB):
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+

Parents Reply
  • Thanks, I understand better now.

    If I go to the Device Manager app I can see that Image Slot 0-1 is taken by new firmware but I can't confirm it or erase it. I get no free slot(9) error. Now I cant upload new firmware using Device manager as it is also giving me no free slot(9) error when uploading new firmware. 

    What exactly does Device Manager list for the slots?

    Does MCUboot log anything when you reset the device?

Children
Related