Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Security Level: Public (Viewable by anyone)
-
None
Description
(Pull request: https://github.com/apache/mynewt-newtmgr/pull/15)
An image upgrade consists of two phases:
1. Erase slot
2. Upload image
On nRF boards, both phases cause the processor to stall while flash is being accessed. Such stalls can cause any established BLE connections to terminate due to "supervision timeout."
Currently, the newtmgr tool automatically recovers from a disconnect during the first phase (erase). However, it does not recover from such a disconnect during the upload phase.
Newtmgr should be improved to use the same reconnect logic during the second phase that it already uses during the first phase.