-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add : espressif : make spiffs #382
Comments
@itsjustvenky please provide console output from Arduino IDE of this process. Thanks. |
@igrr could you explain us how does it work? What we should implement? Thanks. |
@ivankravets The SPIFFS bin generation and upload to ESP is done a arduino IDE plugin jar file.
I am till figuring out the details on the SPIFFS bin file generation. "igrr" is the correct person to answer your question. thanks. |
Thanks, I see now how does it work https://github.com/esp8266/arduino-esp8266fs-plugin/blob/master/src/ESP8266FS.java Will back to this issue as soon as possible. |
I found this too (just reference)
|
Ok this what is the java (Processing app) is using
|
The binary that is used to generate SPIFFS image is "mkspiffs" and it takes parameters from (on Win7) C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\boards.txt example
this code is from the java file
and then the image is getting uploaded into ESP using Esptool
and the esptool parameters too are taken from "boards.txt" (depending on the board the user selected). |
👍 @ivankravets: Practical example of @itsjustvenky post (BASH flavored):
Note 1: All these uppercase variables must be retrieved from |
If user needs to enter all these vars then he will use Make :) PlatformIO should simplify all these things. I'm working on it. |
@ivankravets: 😸 Thank you very much! This will be a very great Christmas present for many of us! |
Guys, let's test it! Docs http://docs.platformio.org/en/latest/platforms/espressif.html#uploading-files-to-file-system-spiffs P.S: Need to install the latest development version http://docs.platformio.org/en/latest/installation.html#d-development-version |
@ivankravets: Thank you very much! I'll travel now, however I'll try later (in 6h or tomorrow). This is the better 🎁 for us! |
@ivankravets I will test it sometime tomorrow and get back to you. Thank you. |
Upload to FS seems to writing at wrong address
The address is correct when building spiffs images, but while writing it is overwriting x0000000
This is from arduino ide
Note : Please ignore the sizes as the files (spiffs) are different in "arduino ide" project and platformio project. I used 1M ESP with this LD script : build_flags = -Wl,-Tesp8266.flash.1m256.ld I am on |
@itsjustvenky I've fixed it. Try PlatformIO 2.7.0.dev7 |
@crushedice2000, @comino could you test it? |
@ivankravets: It works for me! 👍 Thank you very much! |
I'm getting this error here: ▶ platformio run --target uploadfs [Wed Dec 30 01:27:03 2015] Processing huzzah (platform: espressif, board: huzzah, framework: arduino, build_flags: -Wl,-Tesp8266.flash.4m.ld)"/Users/georgkreimer/.platformio/packages/tool-mkspiffs/mkspiffs" -c data -p 256 -b 8192 -s 3125248 .pioenvs/huzzah/spiffs_image.bin |
Could you try for test to upload SPIFFS image using Arduino IDE? https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md#flash-layout Thanks |
Looks like that doesn't work either. Hmm, might be my cheap USB UART (CH340) that has only RX, TX, VCC and GND connected. Though uploading the sketch works fine. Sketch uses 249,920 bytes (23%) of program storage space. Maximum is 1,044,464 bytes. warning: espcomm_sync failed |
ESP-12E basic board (not nodemcu) like this one http://i.ebayimg.com/00/s/MTYwMFgxNjAw/z/NL8AAOSwMmBViphp/$_1.JPG |
@itsjustvenky AP. I used the OTA-mDNS-SPIFFS.ino example. Using a huzzah module and this for UART All I had taken with me on vacation. I can test with other setups in like 3 days. |
@georgkreimer can you paste the output from esp console (connect to UART) when doing OTA. |
@itsjustvenky Sure. �BBH�s���� ��������V������d$��|�l�<�l�c|����;�c�c��gn�dog���c8��lrl;lx�o��$��#g�|d����#��og�l��l �ng$ Chip ID: 0xA6046D See here. Left side platformIO, right side screen on UART |
@georgkreimer There are chances that you might not have 4M flash on your ESP-12 (huzzah) |
@itsjustvenky You are probably right. Would make sense since it dies at 34%. I will check how much it really has and report back. |
you can check using this
|
;ld��|�$�|�$�c|ǃ��{�c�c��og�l'o���#x��l{l{$x�o��d��cg�|lČ��c��'o�$��l Chip ID: 0xA6046D |
I should try the OTA in AP mode. |
@georgkreimer see this : esp8266/Arduino#785 |
Tried I have another huzzah at home. Will test it when I'm back. Maybe I should open a separate issue when I can confirm it affects huzzah modules. So let's close this here. |
It seams like
Using the default folder is working. |
@FWeinb Could you open separate issue with it? Thanks! |
@FWeinb did you place |
Sorry for the delay. Final exams... |
So, just to be clear, this is the option that needs to be used in order for
|
@msurguy you can omit this option if the directory is named as |
@ivankravets great, thanks for explaining, I was not able to find that in the docs |
@msurguy we have documented this option in a few places:
Did you see these pages? Maybe, need to rephrase what do we mean under |
@ivankravets exactly, it is not clear from http://docs.platformio.org/en/latest/platforms/espressif.html#uploading-files-to-file-system-spiffs that |
@ivankravets beautiful! This does it! |
Sorry if I'm missing something, but the new 2.0.x releases appear to break the upload_port setting in platformio.ini: it looks like it now interprets the upload_port as an IP address instead of a COM port (at least on windows platforms), so for example:
Now results in:
Any ideas? I didn't see anything helpful in the release notes. How do I tell it to use a specific serial port for upload? (Note: if no upload port is specified, it auto-detects the first serial port, but that's not the one I need to use). Also suggestion: when creating a new Arduino ESP8266 project, it would be very helpful for new users to include a comment in the auto-created platformio.ini referencing this page: |
Do you have COM5 hostname? |
@dalbert2 see platformio/platform-espressif8266#134 Please open PlatformIO IDE > PIO Home > Platforms > Updates. |
In Arduino-esp8266 project there is a option to build and upload just SPIFFS image to ESP.
Is it possible to add similar functionality to "PlatformIO" where I create a folder named "data" in the project root folder and set the flag/property to build just SPIFFS image and upload it to ESP using serial or ota
@igrr (and yourself) already provided mentioned the document the option to upload just SPIFFS image to ESP over OTA
Let me know.thanks.
The text was updated successfully, but these errors were encountered: