-
Notifications
You must be signed in to change notification settings - Fork 13.3k
PoC for handling Erase WiFi Setting after OTA #6965
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
Draft
mhightower83
wants to merge
64
commits into
esp8266:master
Choose a base branch
from
mhightower83:pr-erase-config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
6fde10f
Proof of concept for post OTA 1st boot erase config.
mhightower83 93fb3d3
Added a 2nd method
mhightower83 c66ae2e
Merge branch 'master' into pr-erase-config
mhightower83 6d882e4
Added two_shots init to noextra4k
mhightower83 500b7cc
Removed cleaned up debug crud and added test example.
mhightower83 afd603b
Merge branch 'master' into pr-erase-config
mhightower83 bfb21b1
A proof of concept for handling Erase WiFi Setting after OTA
mhightower83 e51ab08
Addressed Tavis CI style issues.
mhightower83 a284b0a
Take two
mhightower83 3258d63
Merge branch 'master' into pr-erase-config
mhightower83 9d6e059
Merge branch 'master' into pr-erase-config
mhightower83 95eefed
Update example. Removed some debug crud. Added a Flash Info hotkey op…
mhightower83 815f1dc
Merge branch 'master' into pr-erase-config
mhightower83 660d19c
Merge branch 'master' into pr-erase-config
mhightower83 4554a7c
style fix
mhightower83 1ce4c60
Merge branch 'master' into pr-erase-config
mhightower83 7130877
Merge branch 'master' into pr-erase-config
mhightower83 73f16dc
Merge branch 'master' into pr-erase-config
mhightower83 9c4e44b
Added print messages to show progress.
mhightower83 546f0cb
Merge branch 'master' into pr-erase-config
mhightower83 560ddc5
Set default Method to 2, to side step travis issue of using preinit().
mhightower83 049d91b
Added a Third method.
mhightower83 4e2493a
Resolve merge conflict.
mhightower83 39160c8
one more :(
mhightower83 c0394fb
Merge branch 'master' into pr-erase-config
mhightower83 f1acb40
Access bin image header through ICACHE reduces IRAM usage by 16.
mhightower83 604b40a
Merge branch 'master' into pr-erase-config
mhightower83 4553009
Made function name longer to avoid possible name conflicts in the fut…
mhightower83 372998c
Merge branch 'master' into pr-erase-config
mhightower83 39b9508
CI issues
mhightower83 4954dcd
Merge branch 'master' into pr-erase-config
mhightower83 828a47d
Merge branch 'master' into pr-erase-config
mhightower83 b2d35ea
Merge branch 'master' into pr-erase-config
mhightower83 74129c5
Merge branch 'master' into pr-erase-config
mhightower83 14fede0
Merge branch 'master' into pr-erase-config
mhightower83 be5fe6d
Merge branch 'master' into pr-erase-config
mhightower83 cfd54df
Merge branch 'master' into pr-erase-config
mhightower83 6f91be0
Merge branch 'master' into pr-erase-config
mhightower83 6b1cdb8
Merge branch 'master' into pr-erase-config
mhightower83 fcb8b21
Merge branch 'master' into pr-erase-config
mhightower83 c40a873
Merge branch 'master' into pr-erase-config
mhightower83 2b2def2
Corrected new errors after upgrade to GCC 10.1 toolchain.
mhightower83 48ed5e9
Merge branch 'master' into pr-erase-config
devyte b211727
Merge branch 'master' into pr-erase-config
mhightower83 ab9b6b2
Corrected manual merge error, with init order of class.
mhightower83 e5539fe
Merge branch 'master' into pr-erase-config
mhightower83 502d8bc
Merge branch 'master' into pr-erase-config
mhightower83 f50b3a6
Merge branch 'master' into pr-erase-config
mhightower83 94365e1
Fixed merge errors and code rot.
mhightower83 5234f3f
Updated wifi_health_t and WiFiDisconnectLog_t to take
mhightower83 025bb2f
Merge branch 'master' into pr-erase-config
mhightower83 edade1c
Merge branch 'master' into pr-erase-config
mhightower83 24a117c
Merge branch 'master' into pr-erase-config
d-a-v 4e31c91
Merge branch 'master' into pr-erase-config
mhightower83 0b01518
Replaced ROM_uart_div_modify and associated logic, with the current
mhightower83 f9a3f95
Merge branch 'master' into pr-erase-config
devyte 217b2d2
Cleanup merge conflict. Now use IRAM_ATTR and _NOINLINE_STATIC w/o ch…
mhightower83 0b7fced
Merge branch 'master' into pr-erase-config
mhightower83 9f0e220
Merge branch 'master' into pr-erase-config
mhightower83 e44e752
Merge branch 'master' into pr-erase-config
mhightower83 c44a3f9
Changed to comply with strict-aliasing rules. Changes based on discus…
mhightower83 63a2048
Merge branch 'pr-erase-config' of github.com:mhightower83/Arduino int…
mhightower83 21b0154
Merge branch 'master' into pr-erase-config
mhightower83 fb05f15
Merge branch 'master' into pr-erase-config
mhightower83 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added a Third method.
This method runs before the NONOS SDK is started. Patches the flashchip structure that the ROM APIs reference for validating input before calling SPIEraseSector. Extracted logic from EspClass::magicFlashChipSize() to make a "C" callable function and made EspClass::magicFlashChipSize() a thin wrapper to avoid duplicating code. Use Cache_Read_Enable() to enable flash code execution to reduce IRAM usage by pre SDK starup code. Improved comments and made comment formating more consistant in erase_config.cpp. Improved issolation of debug printing.
- Loading branch information
commit 049d91bca8147fa1f0a5e675b6d27e9e470fda5f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
With the
Arduino.h
change,ERASE_CONFIG_H
seems like it is always defined. Therefore, can we remove the #if/#else/#endif blocking?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.
I agree. Back when I did this, I was asked to not add it to eboot because there was very little space left and other activities that needed the space. So, I tried to get the task done before the SDK started. There are three methods because I don't like any of them. Since it is a PoC I kept all the 3 ideas as methods to pick from. I was hoping for some indication of which one might be better.
RE: ERASE_CONFIG_H is more for development. I left it in since this is a PoC and it makes it clear where code is changing. Since the Arduino IDE does not have a flexible way of setting a global, it also makes it easy to remove the feature by editing Arduino.h.