-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unable to use SPIFFS #2655
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
Any takers? |
I have problem with SPIFFS create failure. I have tried to get OTA and SPIFFS data upload from ESP8266 FSBrowser example woking on OSX 10.7.5 under Arduino IDE 1.6.7 and 1.6.8, using ESP8266 core boards pkg 2.2.0 and 2.3.0 with the same errors. I am not very knowledgeable about Linux, but I have attempted to explore some command line uses in Terminal as well. I have tested this with with ArpilBrother CP2102 ESP-01 dedicated programmer and also a ESP-12E Witty Cloud board with Micro USB adaptor plate, but both setups give the same error. I have run flash config check sketch to match my selected flash sizes to the hardware each time. I can upload sketches successfully to both, and the FSBrowser sketch connects to my router, gives IP address, and when I go there with Safari browser, it says no files because I can't load the index.html from data folder, so part of it is working. My process is that I have the serial console closed, board connected, settings selected (board type, flash size, port), the flash button(GPIO-0 --> GND) depressed on power up, and then click "Tools > ESP8266 Sketch Data Upload" button in IDE (I have also tried releasing the button at different times as well, but that is not needed for flashing the sketch to load). I have Googled, read related threads, tried the modified Platform.txt methods, but still no joy. I hope someone on this board can help. Thanks in advance. examples of errors: Arduino: 1.6.8 (Mac OS X), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, QIO, 115200, 1M (128K SPIFFS), ck, Disabled, All" [SPIFFS] data : /Users/kd/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/examples/FSBrowser/data SPIFFS Create Failed! Arduino: 1.6.8 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)" [SPIFFS] data : /Users/kd/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/examples/FSBrowser/data SPIFFS Create Failed! |
In case this helps someone else, I was just lucky this morning to have solved my problem of not being able to create SPIFFS (previous msg, above). This morning I found that I had two versions of the "mkspiffs" tool on my hard drive. The default "mkspiffs" tool is 276kb and came as part of the boards manager download, but the other one I got yesterday during my efforts to fix the "SPIFFS Create Failed!" error from GitHub - WereCatf/mkspiffs/ Thanks to WereCatf… and please can someone look into this and fix the 2.2.0 and 2.3.0 boards manager accordingly. |
Hi mailforkeith, I am glad it worked for you. So, do I have to use mkspiffs on each and every board then? I was under the impression, the fs can be made by internal code via FS.format(). Perhaps that is where I missed it! |
Hi sxkod, from my limited experience, I believe it can be done either way. I would check the commands from the examples or the Wiki, but I think FS.Format() is to erase the whole SPIFFS so you can start over fresh. I was working with an example in the WifiManager library ( https://github.com/tzapu/WiFiManager ) that uses a method within the sketch to create, read, and write, to SPIFFS for small data, which can be used much like EEPROM, but the other method is described in the ESP8266.com Arduino IDE Wiki and uses the "Upload SPIFFS Data" link in the IDE "tools" menu to load files from the "data" folder in the sketch directory. This method is useful when loading larger data or multiple files, such as demonstrated in the ESP8266 FSBrowser example or for operating a web page from SPIFFS hosted web pages. Cheers! |
Hi mailforkeith Sadly, still no joy. I tried both as a generic esp8266 and modified options in many permutations such as Code is below. Unfortunately nothing works. The code below generates the binary chop debugging as below. Debug messages: +++++++++++++ code below
|
+1. same issue here. |
I had this problem with Wemos d1 mini and d1 mini pro, flashing with I know that these boards have 4 & 16mb respectively (not 32mb) but it works for some reason, correct boundary address I suspect. |
32 megabits is 4 megabytes |
Of course, I assumed it was in megabytes.
|
I have same issue. Including code that checks realSize vs. ideSize, it both crashes inside SPIFFS.format() and SPIFFS.begin(). The device is either Wemos D1 Mini (4Mb/512k) or RobotDyn (16Mb/2MB)
|
@sxkod I am using nodemcu and SPIFFS, and I can't reproduce this issue with latest git. Format works fine, and mkspiffs + upload from Arduino IDE works fine. About the 16MB flash ESP boards like the Wemos D1 mini pro, SDK 2.1.0 add support for it. There is an ongoing PR for the new SDK, and a separate issue for supporting >4MB. |
I suffered the same problems (spiffs seems to geneate infraestructure ok...Arduino shows DATA directory transfered ok..but files aren't found in chip...besides, ftp does not work either.....it happened to me with 2 different modules: wemos nodemcu and plain 12f without usb. |
Basic Infos
Hi there
I have been trying to use SPIFFS. I will paste the code below. I am somehow unable to format the flash and not able to mount/create/write/read. Any guidance on finding the trouble will be great. I get a fail at SPIFFS.format(). I tried doing format() only in one cycle in setup() and then comment it out among other things.
Thanks
Hardware
Hardware: ESP-12e on nodemcu 1.0
Core Version: 2.3.0-rc2
Arduino ide 1.6.5-r5
Description
Formatting SPIFFS fails.
Settings in IDE
Module: Generic ESP8266 Module 12e
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: qio?
Flash Frequency: 80Mhz?
Upload Using: USB
Reset Method: nodemcu
Sketch
The text was updated successfully, but these errors were encountered: