Skip to content

Fix CRC calculation on verify for crc-capable bootloaders - #100

Merged
shumatech merged 1 commit into
shumatech:masterfrom
cmaglie:fix-crc
Feb 1, 2020
Merged

Fix CRC calculation on verify for crc-capable bootloaders#100
shumatech merged 1 commit into
shumatech:masterfrom
cmaglie:fix-crc

Conversation

@cmaglie

@cmaglie cmaglie commented Jul 10, 2019

Copy link
Copy Markdown
Collaborator

The calculated CRC accumulator must be reset to 0 after each page. Previously the latest result was retained leading to incorrect crc for all the pages after the first one.

This bug won't lead to a verify error (so it may not be the cause of #96 IMHO), because the page was compared anyway with a direct read if the CRC fails, but it degrades performance due to the slow byte-by-byte comparison.

@shumatech
shumatech merged commit 724e9cf into shumatech:master Feb 1, 2020
@cmaglie
cmaglie deleted the fix-crc branch April 16, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants