DFU totalSize bugfix #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mikaelf/itd:dfu-bugfix-totalSize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix special case when firmware size aligns with dfu transfer size.
Without this fix, doing a dfu with a firmware size that is exactly
one multiple of the chunk size, itd would give the following result:
427400 / 427596 B
|------------------------------------------------------------------------>|
99.95% 0s
3:15PM FTL Error while running app error="unexpected dfu response 100301
(expected 11)"
With this change, itd no longer waits for a 0x11 packet receipt when the
current packet also completes the firmware image.
After all firmware bytes are sent, it now explicitly waits for
dfuResponseRecvFwImgSuccess (0x10 0x03 0x01) before moving on to
validation.
Note: I used Codex to diagnose this problem and implement a fix.
That looks good to me, merging!