Hi Alessandro,

You can confirm only the running image, so you need to reboot your
board after upload, and then confirm if it works ok.
If you reboot again without confirming the image, it will be reverted
back to the old one.

For a disconnection error at the end, could you try getting btmon logs
(on linux) so we can see the reason of disconnection?

On Thu, 16 Apr 2020 at 17:29, Alessandro Amato
<alessandrofgfioren...@gmail.com> wrote:
>
> Hello, I'm Alessandro from Italy.
>
> Im having trouble with mynewt loaded on an nrf52.
>
> I have followed the tutorial in this page :
> https://mynewt.apache.org/latest/tutorials/devmgmt/ota_upgrade_nrf52.html
> to upgrade my device trought BLE.
>
> During the load of the image i get this : "
>
>  127.32 KiB / 127.43 KiB [==================================]  99.92% 1.93 
> KiB/s
> Error: disconnected
>
> "
>
> After that, i used the command "newtmgr image list -c mybleprph" and the
> result was:
> "
> Images:
>
>  slot=0
>     version: 2.0.1
>     bootable: true
>     flags: active confirmed
>     hash: a5eb7f4bfef07b6441acc7901af074289cbc547b8639a4e0790614f164917998
>  slot=1
>     version: 2.0.0
>     bootable: true
>     flags: pending
>     hash: ff4c537c41a6cb53264d54f93e38c368434960fbc43a04a42809d9f6461028ed
> Split status: N/A (0)
> "
>
> So actually my image was uploaded but something wrong happed, because when
> i try to test and reset, my slot 1 image stay on flags: pending anche I
> cant confirm it.
>
> After all of that, I tried to re-upload the image, but now I get Error 2 :
>
> "
>  0 / 130484 [----------------------------------------------------------]   
> 0.00%
> Error: 2
> "
>
> I have even try to erase, but Error 2 block me:
>
> "
> sudo newtmgr image erase -c mybleprph
> Error:2
> "
>
> What can I do?
>
> Regards,
>
> Alessandro.



-- 
pozdrawiam
Szymon K. Janc

Reply via email to