-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add erase flash option to Arduino IDE menu #7043
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
Conversation
+ unnecessary comments removed.
One question from discussion: |
Add few lines about this options to: https://docs.espressif.com/projects/arduino-esp32/en/latest/guides/tools_menu.html |
UPDATE: Did not find possible solution for erasing only part of the flash. We can add support to erase all flash before upload as it does now in this PR. |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read my comments and let me know if you agree.
Then just adjust the file board.txt
as suggested.
Thanks.
@SuGlider I agree that this would be more descriptive / easier to understand, but @P-R-O-C-H-Y did most of the work so I will leave the decision up to him and I will unassign myself. |
@P-R-O-C-H-Y, my suggestion to keep the same style as the other IDE Menu Options would be: "Erase All Flash Before Uploading:" --> "Enabled" | "Disabled" |
Even better! |
@SuGlider @pedrominatel @PilnyTomas |
Hi @P-R-O-C-H-Y - I see some changes to WiFi code... is it correct? Maybe something that came along with a Please let me know. |
Also it will make sense to squash commits here. |
…rduino-esp32 into pr/7043" This reverts commit 31d0b73, reversing changes made to 3f47a0c.
…essif/arduino-esp32 into pr/7043" This reverts commit 6a584ef, reversing changes made to 8161e78.
…yTomas/arduino-esp32 into pr/7043"" This reverts commit 55d2a29.
@SuGlider |
I still don't understand why would anyone need this. What is the benefit? Why should someone use it? Maybe a short description in the docs, please? |
I had a need for that in the past. In my case, I was using SPIFFS and I had to erase the whole FS. |
Description of Change
This PR is adding new option
Erase Flash
into Arduino IDE -> tools menu. This option can be used to erase all flash contents before uploading the sketch as it is possible for ESP8266.Updated docs with the new tools menu option.
Tests scenarios
Tested on all chips.
Related links
Closes #5902