Skip to content

Add support for erasing otadata#229

Merged
jessebraham merged 3 commits into
esp-rs:masterfrom
maximeborges:feature/erase_otadata
Sep 13, 2022
Merged

Add support for erasing otadata#229
jessebraham merged 3 commits into
esp-rs:masterfrom
maximeborges:feature/erase_otadata

Conversation

@maximeborges
Copy link
Copy Markdown
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.

Comment thread espflash/src/cli/mod.rs Outdated
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread espflash/src/cli/mod.rs
Comment thread espflash/src/main.rs
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