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
  • Hi  
    Yes I'm using a example  samples/subsys/mgmt/mcumgr/smp_svr  from NCS v2.2

    I executed commands as shown below:

    Case:1 (I did reset)

    mcumgr <connection string> image test <hash of slot-1 image>
    sudo mcumgr <connection string> reset
    After the test, it reverts back.

    Case:2
    And by using the command : 
    sudo mcumgr <connection string> image confirm , it works without reverting the images.

    So,

    1. What should be done in case 1, so that the image files are not reverted after reset.

    2. In case 2, how can I update with a new image again (for the 2nd time), because I assume the images are swapped in this case after 1st update and it no longer receives  mcumgr command. 

    It shows  Error:NMP timeout, when trying to execute mcumgr command.

Children
Related