-
-
Notifications
You must be signed in to change notification settings - Fork 221
Add WeMos D1 mini pro #8
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
Comments
I don't see this board here https://github.com/esp8266/Arduino/blob/master/boards.txt Is the only 1 difference Flash size? |
Yes, but seems to be the first one with SPIFFS >4MBytes so esptool needs an update too. |
Waiting on this: esp8266/Arduino#2550 |
Guys, any update on this? |
Using the hack details here http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html, I was able to get SPIFFS working on 16MB, but there still issues : SDK still try to access WiFi configs like 4MB, so I had to move SPIFFS_START after the first 4MB, with 12MB remaining. Also, I still face issue with OTA, when e-boot is call, I get "need boot 1.4+", and hangs forever until doing a erase_flash with esptool.py. |
Does it work in Arduino IDE? |
Bump. I just got my D1 mini pros and I need the extra file space on my product. Anything I can do to help? |
As mentioned earlier, the hack provided in http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html is the way to go. |
Thanks for the reply. I tried accessing SpiFlashChip but platformIO doesn't have the library. What library should I use? His routines would get me the ability to write and read the flash but only in a way like the EEProm which isn't very useful. Secondly, it's kind of hard to call it a workaround when the upload tools and the file system don't work. I saw the reply that had some kludges for the FS but I didn't understand what he was suggesting. |
I'm only play a bit with PlateformIO, I'm still using plain ArduinoESP framework. |
Thanks, I'm keeping this information. However it is a messy fix and also I
need OTA. I can wait a while for a simple solution.
|
Hi everybody, First thank you for developping such useful tools for the ESP! Thank you in advance, |
You can still use the Pro 16MB as a simple 4MB in the mean time we found a fix for having full usage of the 16MB, it still give you pretty much space. |
Did you mean that you have a fix now, or to wait until you find a fix? |
As mentioned above in January, there is a hack to use the above 12MB in SPIFFS, but it make OTA becomes broken until we found another hack to fix the OTA issue. If you use the 16MB as a simple 4GB, there is no issue other than loosing the above 12MB. |
Would be nice to use Wemos PRO. Thanks I´ll try the hack |
Ok ! I took time to investigate a bit more : to avoid the issue with OTA, this OTA still need to be done in low space location, not just before the SPIFFS_START. So, I added a check in Updater.cpp in the begin() method :
So, it seems to work, I've now a 12MB partition, and OTA still working. Of course, I'm loosing the space between addresses 0x100000 and 0x400000, but it can still be use using raw EspClass::flashWrite/EspClass::flashRead for other purposes than SPIFFS. |
Does this mean code has to be smaller than 0x100000/2 (512 KB)? Normally it can be 2 MB, right? Edit: Oh, you mean you are losing the SPIFF between 0x100000 and 0x400000. The code space is still the same, right? |
Not in ArduinoESP, the config 4MB/3MB SPIFFS is still 2x512KB. For the config 4MB/1MB SPIFFS, I didn't try it out, but it should be 2x 768KB.
Code space is still limited to 1M, whatever we try to do, it is in an Espressif limitation. |
Wouldn't that config have 3MB code total or 2 x 1536 KB? If so then your fix would only waste 1MB which is only 6%. That is really good.
Does that mean 2 x 512K or 2 x 1M? Where does 2 x 768KB come from? I'm sorry to be such a pain but I don't really know much about this stuff. I'll try to be helpful with experiments to see what I can do with your fix. |
My bad : I add in mind 1536KB, and I divided by two while writing ;-) |
Let me check if I understand correctly. We should be able to use ...
Is this correct? It would be nice if this setup was a choice in platformio.ini build flags. |
Right ! except "2 MB only usable for reading/writing flash minus the WiFi configs and EEPROM" |
@martinayotte May you please explain all steps to use 12MByte SPIFFS and OTA in ArduinoIDE? |
For board.txt, I've created a 16MB(12MB) section in Wemos-D1Mini by copy/pasting another definition and provide spiffs_start at 0x300000 and spiffs_end at 0x17FB00.
And for the OTA, to prevent getting located just under the SPIFFS, I forced it to stay at 0x100000 in Updater.cpp :
Finally, yes, the LD script also need to be tweaked with spiffs_start at 0x300000 too. |
Thanks a lot, @martinayotte
So, I have to change eagle.flash.16m.ld, right?
Do I have to change _SPIFFS_start to 0x300000 and _SPIFFS_end to 0x17FB00? |
maybe?? |
@martinayotte : |
In my setup, I moved the start above the 4M boundary, because ROM still access WiFi configs at the end of this first 4M. |
@martinayotte Yes, I already modified all the necessary files but still nothing. SPIFFS from "FS.h" keeps returning false for simple functions like format(). I already tried every _SPIFFS_start and _SPIFFS_end but the only configuration that works is the one from 4MB Wemos. Please help. |
Are you calling SPIFFS.begin() before any other calls. |
@martinayotte it's also returning false whenever I try to mount the flash file system using the call SPIFFS.begin().
|
Hi guys, |
Please add support for WeMos D1 mini pro (16 MBytes)
https://www.wemos.cc/product/d1-mini-pro.html
(Moved my wish on behalf of ivankravets from platformio/platformio-core#798 - hope I got the right place now.)
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/38047911-add-wemos-d1-mini-pro?utm_campaign=plugin&utm_content=tracker%2F38211776&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38211776&utm_medium=issues&utm_source=github).The text was updated successfully, but these errors were encountered: