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

config reset #4

Closed
SpComb opened this issue Jul 31, 2021 · 2 comments
Closed

config reset #4

SpComb opened this issue Jul 31, 2021 · 2 comments

Comments

@SpComb
Copy link
Member

SpComb commented Jul 31, 2021

Needs support for some kind of hardware config reset button, or a config error -> bootloop is unrecoverable.

This should inhibit loading of /config/boot.ini, and boot with defaults.

Should probably not enter a bootloop with #3 type configuration errors.

Requires some kind of wifi bootstrap... like defaulting to AP mode.

Workaroud

Erase config partition using esptool.py

ESPPORT=/dev/ttyUSB0 docker-compose run --rm flash /opt/ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset erase_region 0x200000 0x100000
SpComb added a commit that referenced this issue Aug 15, 2021
SpComb added a commit that referenced this issue Aug 15, 2021
@SpComb
Copy link
Member Author

SpComb commented Aug 15, 2021

195e3cd added docker-comose up config-reset -> make config-reset -> esptool.py ... erase_region support

@SpComb
Copy link
Member Author

SpComb commented Sep 18, 2021

a149f9a implemented support for reading the NodeMCU FLASH button on GPIO0. It needs to be held for >5s, and the configuration will be reset and the system restarted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant