Skip to content

SPIFFS Upload failed! #64

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

Closed
roncoa opened this issue Nov 15, 2019 · 42 comments
Closed

SPIFFS Upload failed! #64

roncoa opened this issue Nov 15, 2019 · 42 comments

Comments

@roncoa
Copy link

roncoa commented Nov 15, 2019

After updating the core of esp8266 2.6.1 the tool does not work anymore.
Are there any suggestions?
Thanks

Immagine 1

@ArcadeNut
Copy link

i have to same issue

@tihoangyeudau
Copy link

i have same issue

@i486you
Copy link

i486you commented Nov 16, 2019

i have the same issue

@TWJubb
Copy link

TWJubb commented Nov 16, 2019

Same issue for me... Reverted to ESP8266 Community version 2.6.0 (from 2.6.1) and the SPIFFS upload worked fine.

@tihoangyeudau
Copy link

Same issue for me... Reverted to ESP8266 Community version 2.6.0 (from 2.6.1) and the SPIFFS upload worked fine.

but we wish it will work with 2.6.1

@SunnyPage
Copy link

i have same issue

@DiegoMisa
Copy link

same issue

@DiegoMisa
Copy link

downgrade to 2.5.2 and work fine

@i486you
Copy link

i486you commented Nov 21, 2019

I found it out how to upload files by using command line.
(Don't forget to close Serial Monitor window when uploading.
And my laptop is a macbook. You could find a clue from my solution if you use windows OS.)

  1. Pack the folder data that files is located in to upload.
    > ./mkspiffs -c /Users//Documents/Arduino/Test_SPIFFS/data -b 4096 -p 256 spiffs.bin

  2. Upload the image file packed.
    > esptool.py --chip esp8266 --port /dev/cu.SLAB_USBtoUART --baud 115200 write_flash 0xEB000 spiffs.bin

    • You might get the error 'A fatal error occurred: Timed out waiting for packet header' after uploading. However, just ignore it if the console says 'Wrote ... ' before the error line, and then check if the file is uploaded by following the next step.
    • 0xEB000 is the start address of SPIFFS. You can find it when you try to upload files by clicking on menu button 'Tools > ESP8266 Sketch Data Upload', and then check '[SPIFFS] address: 0xEB000' on the console like the following captured image.

Screen Shot 2019-11-22 at 7 29 24 AM

  1. Check if the file uploaded successfully.
    > esptool.py --chip esp8266 --port /dev/cu.SLAB_USBtoUART --baud 115200 read_flash 0xEB000 0x1000 backout.txt
    • 0x1000 is the size of memory to read.

Screen Shot 2019-11-22 at 7 37 13 AM

I hope that it is helpful for you.

@hznupeter
Copy link

i have same issue in esp8266 2.6.1

@RudyFiero
Copy link

Will this be fixed soon?

@smartswitchsio
Copy link

i have same issue in esp8266 2.6.1

@2color
Copy link

2color commented Nov 24, 2019

This is probably related to esp8266/Arduino#6765 which was introduced in 2.6.1

@me-no-dev
Copy link
Collaborator

plugin has been updated to 0.5.0 :) please give it a try

@tihoangyeudau
Copy link

plugin has been updated to 0.5.0 :) please give it a try

it makes my arduino can not startup

@RudyFiero
Copy link

RudyFiero commented Nov 25, 2019

it makes my arduino can not startup

I can confirm this. It worked before the plugin update. I have both a a Windows installer version and a Portable install. Both will not run. After I remove 0.5 then it runs.

Arduino 1.8.10 and ESP8266 2.6.1

@hznupeter
Copy link

i've go back to esp8266 2.5.2,it's more safe

@me-no-dev
Copy link
Collaborator

the zip has been updated with earlier java. Please try again :)

@RudyFiero
Copy link

Arduino starts, but still "SPIFFS upload failed!"

@ghost
Copy link

ghost commented Nov 26, 2019

Same issue with 2.5.2.

@tihoangyeudau
Copy link

Arduino starts, but still "SPIFFS upload failed!"

#68

@masoud935
Copy link

masoud935 commented Dec 1, 2019

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

@jpasqua
Copy link

jpasqua commented Dec 4, 2019

Also failing for me on esp 2.6.1, ide 1.8.10, and plugin v5 (actually I tried every released plugin and they all fail with different messages). I am not in a position to downgrade to 2.5.2. I will try the manual uploading steps mentioned above to see if I can get that to work until this is fixed.

@RudyFiero
Copy link

To get around the failure I had used the web upload code from the FSbrowser.ino example and put that into the program I wanted to use. I wanted to try out someone else's examples and their program made use of SPIFFS.

@jpasqua
Copy link

jpasqua commented Dec 4, 2019

[UPDATE] Upon further investigation the plugin seems fine. I was able to make my system work with a minor change upload.py. I picked up the copy from here and made a few minor changes that you can see in the diffs below. It adds an extra test to see whether the argument is a file and saves it in the 'binary' variable. I've tested the following cases: (1) Downloading a sketch and erasing the sketch only, (2) Downloading a sketch and erasing the entire SPIFFS area, and (3) Downloading the data directory using the plugin

Hope it's useful, but YMMV.

49,52c49
<         if os.path.isfile(thisarg):
<             binary = thisarg
<         else:
<             cmdline = cmdline + [thisarg]
---
>         cmdline = cmdline + [thisarg]

Thanks to @i486you for the guidance on the manual process. I have it working now (though I had to download a separate copy of mkspiffs for some reason). I tried to just debug the plugin, but I couldn't find a java version that was compatible with the IDE. It would fail on launch saying my plugin was compiled with too new a version of Java. I backed off versions a bit, but no joy. Hopefully it will be an easy fix. It seems to just be generating an incorrect command line.

@coolpixel
Copy link

hi all... I have a same issue...but I find solve it.
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

it works for me ... thanks

@PersonalityFox
Copy link

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

its work with ide 1.8.9
Thank you

@Bob0505
Copy link

Bob0505 commented Dec 23, 2019

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

its work with ide 1.8.9
Thank you

may I know which version about ESP8266FS.zip ?

@PersonalityFox
Copy link

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

its work with ide 1.8.9
Thank you

may I know which version about ESP8266FS.zip ?

i dont know
may be @masoud935 knows answer to this question

@anctsys
Copy link

anctsys commented Dec 27, 2019

Hi
Just a little precision, for ide arduino 1.8.10 you must download the last ESP8266FS last release on
https://github.com/esp8266/arduino-esp8266fs-plugin/releases/
Bruno

@masoud935
Copy link

hi all... I have a same issue...but I find solve it.
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

it works for me ... thanks

😁😁😁

@masoud935
Copy link

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

its work with ide 1.8.9
Thank you

may I know which version about ESP8266FS.zip ?

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

its work with ide 1.8.9
Thank you

may I know which version about ESP8266FS.zip ?

I don't know which version this is.
I just know this version is working properly

@anctsys
Copy link

anctsys commented Dec 27, 2019

@masoud935

I don't know which version this is.
I just know this version is working properly

My configuration
IDE is 1.8.10
ESP8266 WEMOS D1 mini
Flash size: 4MB
esptool.py v2.8

This is my process to upload data into FS for ESP32 and ESP8266

@roncoa
Copy link
Author

roncoa commented Dec 27, 2019

@roncoa roncoa closed this as completed Dec 27, 2019
@Bob0505
Copy link

Bob0505 commented Dec 28, 2019

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

Dear @masoud935 ,

May I know which version of attach file(ESP8266FS.zip)?
It's work with Arduino IDE Ver.1.8.10

Thank you very much!

@rezaajdarkosh
Copy link

Hi
Just a little precision, for ide arduino 1.8.10 you must download the last ESP8266FS last release on
https://github.com/esp8266/arduino-esp8266fs-plugin/releases/
Bruno

@rezaajdarkosh
Copy link

Thank you very much!

@tonci14
Copy link

tonci14 commented Mar 26, 2020

No needed to downgrade, just updated from
https://github.com/esp8266/arduino-esp8266fs-plugin/releases/

I am using IDE 1.8.12

@alireza-azar
Copy link

hi all... I have a same issue...but I found the solution
IDE is 1.8.10 and esp is2.5.2
change your jar file to
ESP8266FS.zip

thank you so much bro this is work for me

@omarnas
Copy link

omarnas commented Sep 5, 2020

I have the same issue and my solution was going back to an older version of upload.py (attached below )
upload.py.zip replace it with the existing one (/Users/YOUUSER/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py)

@denimjeans
Copy link

Version 0.5.0 does not work for me with 18.10 and on Windows 10.
Filesystem will be created ok, but uploading does not work.
Workaround as suggested by @i486you helped me. Here is what needed to do:

change to folder:
C:\Users\YOUR_USER_NAME\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\tools\esptool>
esptool.py --chip esp8266 --port com4 --baud 115200 write_flash 0x200000 C:\Users\YOUR_USER_NAME\AppData\Local\Temp\arduino_build_225904\WIFI_IR_BLASTER.spiffs.bin
address might be different for your usecase. You will find all attributes if you scroll little up.

Hope they will fix it soon, it's kind of messy, but works for me.

@denimjeans
Copy link

Solved:
I needed to update my ESP development enviroment:
Tools-> Board->Boardmanager, Update ESP8266 to 3.0.2, then try again. It works for me. I was at 2.6.1 before...
tested on windows 10, Arduino 18.10 and 18.19, ESP8266 v 3.0.2.

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