summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2021-10-25 15:13:04 +0200
committerStefan Roese <[email protected]>2021-11-03 06:45:27 +0100
commita6fcac274a99c9675f4b6841321e085c79326429 (patch)
tree60146f484fccfef7fffe97b0d08a3a38ee8f73c4 /scripts/basic
parentd14a342073ca7ed108ca1c2477e102da431a527c (diff)
tools: kwboot: Resend first 3 xmodem retry packets immediately
Currently when kwboot receive some garbage reply which does not understand, it waits 1s before it tries to resend packet again. The most common error on UART is that receiver sees some bit flipped which results in invalid reply. This behavior slows down xmodem transfer over UART as basically on every error kwboot is waiting one second. To fix this, try to resend xmodem packet for first 3 attempts immediately without any delay. If broken reply is received also after the 3 attempts, continue retrying with 1s delay like it was before. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Marek Behún <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions