Not able to update firmware over UART using MCUboot: flag shows pending

I tried to update firmware over UART (using MCUboot).

The flag shows test pending, and was able to test the application and provide expected output.

But was not able to "confirm image", it shows Error:NMP timeout, when the confirm image command is executed.

Thanks in advance

Parents Reply
  •   Now the bootloader lit's up the LED for 5 sec and waits for mcumgr command and if there are no commands send in 5 sec then LED turn off (works as expected)

    But after updating the application firmware, and resetting the device, then later the LED turns ON back after 5 secs and never runs the application.

    And it works fine if the below configs are not included:

    # Enable wait for DFU functionality
    CONFIG_BOOT_SERIAL_WAIT_FOR_DFU=y
    CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=10000

     

Children
  • lorao said:
    CONFIG_BOOT_SERIAL_WAIT_FOR_DFU=y
    CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=10000

    I tried this briefly, and I can update the application multiple times.

    Can you upload a zip of the sample you use so I can use that to reproduce?

  •   Please find the attachment below:
    Issue: I can update the image file but the application does not run after update And also it stays in the bootloader mode.
    Thank you

  • Your sample works for me. See the recording:

  •   Thank you so much for the feedback.
    I will try it again if not then I will use 'ncs 2.4.0' version.

    Also in my case I dont see the 'hash' value as shown below:

    Images:
    image=0 slot=0
    version: 0.0.0.0
    bootable: false
    flags:
    hash: Unavailable
    Split status: N/A (0)

    Any reason why

  • In v2.4.0, Serial Recovery was upgraded to print some more information about the image.

    What you see is expected before v2.4.0

Related