Skip to content

Comments

Fix verification bug: only verify modified pages#36

Open
sijk wants to merge 1 commit intotwinearthsoftware:masterfrom
sijk:fix-verify
Open

Fix verification bug: only verify modified pages#36
sijk wants to merge 1 commit intotwinearthsoftware:masterfrom
sijk:fix-verify

Conversation

@sijk
Copy link

@sijk sijk commented Jul 16, 2018

This adds the same check in VerifyProgram() as in ProgramDevice() so that only those pages that were written to are read back for verification.

For example, I write a table of constants to the end of flash and without this fix it tries to verify all flash, even though it only wrote the last couple of pages.

@OncelUmutTURER
Copy link

OncelUmutTURER commented Jul 25, 2019

This commit solved the verification problem that I'm was having. Checking only the modified bytes is the right approach. Thank you for the fix, your pull request should be accepted as soon as possible.

@SuperNinja-4965
Copy link

when you are uploading the hex file ensure you are not using the file that contains the bootloader. this will cause verification to fail. (using the non bootloader file will not delete your bootloader if you have one)

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.

3 participants