Problems with V92 and wifi.save() on ESP8266 512K Flash Boards? #5979
Replies: 1 comment
-
Posted at 2017-04-27 by @MaBecker hi @hungryforcodes, check http://www.espruino.com/binaries/ for file espruino_1v92_esp8266_combined_512.bin Posted at 2017-04-27 by @MaBecker tested this images on a ESP8266 12 board
result after reset
so it works Posted at 2017-04-27 by Fabiano-Gomes Hi @hungryforcodes, I have the same issue. I am testing with ESP8266-01 doesn't work and with node MCU, works fine. Regards, Posted at 2017-04-27 by Fabiano-Gomes Good to know that in previous versions it works, if the issue persist I have alternatives. Posted at 2017-04-27 by hungryforcodes @MaBecker great! Thank you :) I'll try your suggestion too and report back :) Posted at 2017-04-27 by hungryforcodes @MaBecker @Fabiano-Gomes So just to report it did work on my ESP-01. I was able to flash it using the espruino_1v92_esp8266_combined_512.bin file. And after wifi.save() worked correctly. Interestingly though both v92 and v91 combined files put my ESP-201 into a constant restart mode where the blue light on it flashed continuously. I downgraded to v86 and it works fine, so I'll use that for these remaining boards. Espytool said it autodetected 8m of flash, which would suggest that the ESP-201 is not a 512KB board as the spec suggests, but rather a 1MB board. Either way, maybe we should include the espruino_1v92_esp8266_combined_512.bin file by default in the v92 distribution? Just curious why this way preserves the wifi.save() functionality, and the more complex way does not? Anyways thanks guys! :) Posted at 2017-04-27 by @MaBecker Great, thanks for your feedback. you could erase flash before flashing new files
This is exactly what is achieved when using a combined file :) Posted at 2017-04-27 by hungryforcodes Yes those were in the instructions and I followed them :) I will try again with the ESP-01 (I have a few coming in anyways), as I did that with the ESP-201 and had a negative result. Posted at 2017-04-28 by hungryforcodes @MaBecker So a quick update -- the ESP-201 is supposed to come with only 4mbit flash, and this is even supported by many photos online (at least I guess of early chips), but mine for whatever reason have 8mbit parts (maybe they ran out at the factory of the 4mbit flash? Who knows). This is what caused the problem. So I guess you can never assume anything in the ESP world :P So I did erase the flash and use the following as per the README (adjusted for 8mbit flash):
and now it works, and thus no need for the combined file. Anyways so if anyone else has an ESP-201 board and is having problems flashing, please check the part size for the flash. -hfc Posted at 2017-05-05 by @MaBecker Good to know - thanks Posted at 2018-01-21 by Will Is this still an issue with latest firmware? If so, what are the instructions for avoiding? I believe I am having same issue with the esp8266 in the sonoff Posted at 2018-01-21 by @MaBecker let esptool.py figure out your flash size
Posted at 2018-01-23 by Will Thank you @MaBecker This worked for me (leaving off the flash size, and using bin locations for larger chip:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-04-27 by hungryforcodes
Hi Guys,
Just curious if anyone can reproduce this problem. I noticed that when I flashed my 512K boards (specifically an ESP-01, and several ESP-201s), that they did not execute wifi.save(), and thus when restarted did not automatically connect to the network. The network parameters were blank/null.
I went BACK and tried v86 -- my kind of "standard" -- that always works, and after v91. Both work fine. However, I was using the following method:
After I was able to use wifi.save() normally, and the boards reconnected normally on startup. However after some experimentation I discovered that if I use for example:
on v91 then it does NOT save any wifi configuration when I do wifi.save().
As v92 does not have the "espruino_1v92_esp8266_combined_512.bin" file, its impossible to test between the two methods.
I'm curious if anyone else can confirm this, or if perhaps its a problem with my setup. I have not tested if this problem exists on my 4MB flash boards at this point.
Thanks :)
-hfc.
Beta Was this translation helpful? Give feedback.
All reactions