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

Grand Central M4 (SAMD51) writing to flash corrupted #201

Open
hydrofoor opened this issue May 1, 2023 · 0 comments
Open

Grand Central M4 (SAMD51) writing to flash corrupted #201

hydrofoor opened this issue May 1, 2023 · 0 comments

Comments

@hydrofoor
Copy link

It appears the eraseFlash() function for SAMD51 is not correct. When trying to flash sketches to an Adafruit Grand Cental M4 Express board (through WifiEspAt) the data written to flash was corrupted. After some searching I found in the SAM D5x datasheet 'The NVM <...> is organized into blocks, where each block contains sixteen pages' and as the memory is to be erased in blocks before writing the the attached patch was applied. Then upload and flash was successful.

InternalStorage.cpp.patch

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

No branches or pull requests

1 participant