mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-16 01:47:51 +00:00
When issuing a target.reboot(), the reset was immediately followed by a boot() (for platforms that have it) and an attempt to connect. When issuing a soft reset, it's possible the target is still shutting down when the attempt to connect is made. This results in the connection succeeding but being severed shortly thereafter. This introduces a delay after the reset to the reboot sequence, giving the target time to shutdown and improves the handling of EOF's that result from failed reconnection attempts (while still being with the allotted timeout period.