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

IoT Firmware: Default config settings after complete flashing #34

Closed
mikexmas opened this issue Jan 22, 2016 · 6 comments
Closed

IoT Firmware: Default config settings after complete flashing #34

mikexmas opened this issue Jan 22, 2016 · 6 comments

Comments

@mikexmas
Copy link

When ESP is complete flashed (also blank.bin and esp_init_data_default.bin) there is different configuration of softAP & station which is stored by ESP SDK than when you press long button and restore_defaults occurs.

Is there a way to detect initial ESP settings in user_main to be overriden by restore_defaults (which works better) not only with long-button press?

Best Regards

@peter-valkov
Copy link
Contributor

Press the button and hold it for more than 5 secs. It will reset settings to IoT Firmware defaults.

@peter-valkov
Copy link
Contributor

Here is the command I use for complete flash

esptool/esptool.py --baud 576000 write_flash 0x00000 bin/boot_v1.2.bin 0x01000 bin/upgrade/user1.2048.new.3.bin 0x81000 bin/upgrade/user2.2048.new.3.bin 0x1FC000 bin/esp_init_data_default.bin 0x1FE000 bin/blank.bin --flash_size 16m

@peter-valkov
Copy link
Contributor

Note the last blank.bin at address 0x1FE000

@peter-valkov
Copy link
Contributor

If you want to clear previous IoT Firmware settings as well you should flash with blank.bin at address 0x100000

@peter-valkov
Copy link
Contributor

... so complete flash command should look like this:

esptool/esptool.py --baud 576000 write_flash 0x00000 bin/boot_v1.2.bin 0x01000 bin/upgrade/user1.2048.new.3.bin 0x81000 bin/upgrade/user2.2048.new.3.bin 0x100000 bin/blank.bin 0x1FC000 bin/esp_init_data_default.bin 0x1FE000 bin/blank.bin --flash_size 16m

@peter-valkov
Copy link
Contributor

After update to SDK 1.5.1 and new bootloader version 1.5 complete firmware flash command should look like:

esptool/esptool.py --baud 576000 write_flash 0x00000 bin/boot_v1.5.bin 0x01000 bin/upgrade/user1.2048.new.3.bin 0x81000 bin/upgrade/user2.2048.new.3.bin 0x100000 bin/blank.bin 0x1FC000 bin/esp_init_data_default.bin 0x1FE000 bin/blank.bin --flash_size 16m

@mikexmas if this solves your problem let me know so we can close this issue.

Best Regards
Peter

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

No branches or pull requests

2 participants