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 support for erasing otadata #229

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

maximeborges
Copy link
Contributor

Closes #119

This PR adds a --erase-otadata argument when flashing.

This will force using stub since it's using the ERASE_REGION command.
I also implemented the ERASE_FLASH command but didn't do any particular test nor did I implement an argument switch to use it.

I guess implementing two other commands for both ERASE_REGION and ERASE_FLASH would make sense, but having a first support for erasing the otadata partition thus allowing to reflash the chip after an OTA update seems more of a priority.

espflash/src/cli/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for getting that fixed up. LGTM!

One other small thing, we're in the process of re-licensing the project so if you wouldn't mind please commenting in this RFC stating that this is okay with you that'd be much appreciated!

@jessebraham jessebraham merged commit d64ff68 into esp-rs:master Sep 13, 2022
@maximeborges
Copy link
Contributor Author

One other small thing, we're in the process of re-licensing the project so if you wouldn't mind please commenting in #224 stating that this is okay with you that'd be much appreciated!

Looking at the last comment I guess it's already decided, but I'm definitely in favor of this change.

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.

When doing espflash→OTA→espflash, (sometimes?) the boot partition is not set
3 participants