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

cmdEraseMemory(): fix incorrect crc calculation #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liamstask
Copy link

No description provided.

@kuraga
Copy link

kuraga commented May 25, 2017

@jsnyder is this correct?

@florisla
Copy link

florisla commented Mar 7, 2018

Basically, this includes N (the number of pages) in the checksum whereas previously it would include value 0xFF instead, which would only be correct for N=255, which is impossible because that's reserved for global erase.

ST application note 3155 says "((...) checksum XOR (N, N+1 bytes))" so this seems to be correct now.

florisla added a commit to florisla/stm32loader that referenced this pull request Mar 7, 2018
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.

None yet

3 participants