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

Add erase() method to hal.storage #13119

Merged
merged 5 commits into from Jan 2, 2020
Merged

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Dec 27, 2019

This fixes an issue where the flash based storage gets sufficiently corrupted that it can't be fixed by writing zero bytes. The usual method of setting FORMAT_VERSION to zero or loading a different vehicle firmware also doesn't work. We need to erase the sectors, which means we need a separate erase call

@tridge tridge added the ChibiOS label Dec 27, 2019
@tridge tridge merged commit 040a1b7 into ArduPilot:master Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant