Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 1, 2020

Conversation

cmaglie
Copy link
Collaborator

@cmaglie cmaglie commented Jul 10, 2019

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