GithubHelp home page GithubHelp logo

esp8266 / arduino-esp8266fs-plugin Goto Github PK

View Code? Open in Web Editor NEW
706.0 50.0 216.0 372 KB

Arduino plugin for uploading files to ESP8266 file system

License: GNU General Public License v2.0

Shell 6.84% Java 93.16%

arduino-esp8266fs-plugin's Introduction

Arduino ESP8266 filesystem uploader Build Status

Arduino plugin which packs sketch data folder into SPIFFS filesystem image, and uploads the image to ESP8266 flash memory.
Tested with the following Arduino IDE versions: 1.6.5-r2, 1.6.6

Installation

  • Make sure you use one of the supported versions of Arduino IDE and have ESP8266 core installed.
  • Download the tool archive from releases page.
  • In your Arduino sketchbook directory, create tools directory if it doesn't exist yet. You can find the location of your sketchbook directory in the Arduino IDE at File > Preferences > Sketchbook location.
  • Unpack the tool into tools directory (the path will look like <sketchbook directory>/tools/ESP8266FS/tool/esp8266fs.jar).
  • Restart Arduino IDE.

On OS X and Linux based OSs create the tools directory in ~/Documents/Arduino/ and unpack the files there

Usage

  • Open a sketch (or create a new one and save it).
  • Go to sketch directory (choose Sketch > Show Sketch Folder).
  • Create a directory named data and any files you want in the file system there.
  • Make sure you have selected a board, port, and closed Serial Monitor.
  • Select Tools > ESP8266 Sketch Data Upload menu item. This should start uploading the files into ESP8266 flash file system. When done, IDE status bar will display SPIFFS Image Uploaded message. Might take a few minutes for large file system sizes.

Screenshot

Screenshot

Credits and license

  • Copyright (c) 2015 Hristo Gochkov (ficeto at ficeto dot com)
  • Licensed under GPL v2 (text)
  • Maintained by Ivan Grokhotkov (ivan at esp8266 dot com)

Issues and suggestions

File issues here on github, or ask your questions on the esp8266.com forum.

arduino-esp8266fs-plugin's People

Contributors

ccostel avatar earlephilhower avatar igrr avatar me-no-dev avatar per1234 avatar rickhewes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-esp8266fs-plugin's Issues

Build a plug-in

Hello!
Thanks for the plugin!

I need to change some things. I cloned the repository in the eclipse.
How to get the esp8266fs.jar file?

Please make a quick guide to assembling the plugin.

How to set up tool for OTA update?

I just installed the latest Arduino IDE, the "ESP-extension" for it, then copied this tool to the folder that is specified in the readme. The tool shows up in the Tools menu, but there is no option to select anything related to OTA, see screenshot below:
upload-tool-no-ota-option
I'm developing for an ESP-12 board, then environment is Windows 10 Pro 64.

What am I missing?

Thanks for any help in advance!

Suggestion: Automatic gzip for known "mime types"

Would love to see options for automatically adding gzipped versions of webserver related files.

I.e. add smoothie.js to data folder, and automagically get both smoothie.js and smoothie.js.gz in the SPIFFS binary. Similar for .html etc.

Or updating existing .gz files if their uncompressed counterpart is modified, or a warning. (Yes, I spent some time wondering why my modified .js file wasn't uploaded:))

This plugin doesn't work with 4M(3M SPIFSS) settings but it works with 4M(1M SPIFFS)

I use W25Q32 Winbond memory chip in my module. I am able to upload any skech, no matter if I set 4M(3M SPIFSS) or 4M(1M SPIFFS). Unfortunately, the plugin works only with 4M(1M SPIFFS) settings. In both cases plugin compiles the bin file of a proper size 1MB and 3MB respectively but 3M settings I recive the error:

warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
SPIFFS Upload failed!

In the data folder I have only on file (for test purpose) of 17kB size. The plugin behaves identically in IDE 1.6.4 and IDE 1.6.6 environment.

SPIFFS Not Defined for Adafruit Feather HUZZAH ESP8266

i want to upload sketch files to Adafruit Feather HUZZAH ESP8266
and arduino give this error:
Arduino: 1.8.9 (Windows 10), Плата:"Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, All Flash Contents, 115200" SPIFFS Not Defined for Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, All Flash Contents, 115200

how to fix it?

also i tested using arduino 1.6.6.

file "esp8266fs.jar" does not exist

The file "esp8266fs.jar" mentioned here

Installation

Make sure you use one of the supported versions of Arduino IDE and have ESP8266 core installed.
Download the tool archive from releases page.
In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
Unpack the tool into tools directory (the path will look like <home_dir>/Arduino/tools/ESP8266FS/tool/esp8266fs.jar).
Restart Arduino IDE.

does not exist, just "esp8266fs.java", but putting it into my sketchbook folder
<home_dir>/Arduino/tools/ESP8266FS/tool/esp8266fs.java
does not show up then an Arduino tools option "ESP8266 Sketch Data Upload".

Also renaming esp8266fs.java into esp8266fs.jar does not help.
(I am using the current IDE 1.8.2)

what is going wrong?

Subdirectories not included?

It seems that the upload tool does only upload files in the data folder, but not any subdirectories. Would be great if subdirs would also work. Or if that's a prob, suggest to clearly mention this limitation.

Btw is there a way / example of doing this task manually (I'm using the Eclipse Arduino IDE so need to work with two IDEs for uploads).

Error message - SPIFFS Error: esptool not found!

Hi,

I've tried to use this but I get this error message

SPIFFS Error: esptool not found!

Setup is Windows 1.6.5
cloned repo from github
Repo is installed and works fine, and uploads sketches

However from what I can tell, by looking in the source, this means that the plugin can't find

File(PreferencesData.get("runtime.tools.esptool.path"), esptoolCmd);

I can't see anything like runtime.tools.esptool in the preferences.txt file

I'm not sure if I missed something in the installation instructions.

is Arduino\tools\ESP8266FS\tool supposed to also contain exptool.exe etc rather than just the JAR file?

File gets silently truncated on upload

I tried to upload the Homie project's ui_bundle.gz file (49414 bytes) to a ESP-01 module (using the generic 512/64k setting).

The file gets truncated on upload and shows a file size of 45312 bytes on the SPI filesystem.
I suspect that is because the SPIFFS internals eat up the rest of the space.

Can you please check that and maybe display an error message?

automatic gz files like css and js / or pre-create-hook

to save some space in the spiffs it would be nice if the plugin gz files like css
OR
define a pre-create-hook (bash script) to do thinks like that... it would be great if the script can change the data directory.

in my case i have 5 steps:

  1. copy all files from data to /tmp/data....
  2. stitch all css and js files in one css and js file
  3. gz the generated files
  4. remove all unused and stitched css and js files
  5. build the spiffs from /tmp/data..... and upload

Yet another plugin for Arduino IDE

Hi,

I recently developed a plugin that provide a Serial Monitor with RESET (RTS) and DTR control in order to avoid keeping the ESP in reset state when using original Arduino Serial Monitor

I posted it on esp8266/Arduino#1360.

Now I'm looking for somebody that can help me publishing my code on GITHUB as part of this repository or another one. I do not know who should I contact to initiate this action.

Thanks

Can't upload if Serial Monitor is open

I'm on Arduino IDE 1.6.8

Is it possible for the plugin to work like the upload function, that disables the Serial Monitor while it's flashing the ESP?

Use from command line?

Is it possible to use this tool from the command line (Windows)? Maybe it is possible via Arduino-Builder, or as a standalone process. Either would suit.

How to compile JAR ? Compatibility with ESP32 ?

Hi.
I planed to edit the ESP8266FS.java according to espressif/arduino-esp32#411, copercini 17 July.
I installed "jdk-8u152-windows-x64.exe" and, starting a bash GUI (providen with GIT installation) from "C:\Program Files (x86)\Arduino\tools\ESP8266FS\tool", I got following errors (see below).

  1. I was not able to fix this. I download from "https://playground.arduino.cc/Interfacing/Processing" and follow the instructions, but it seems there is no relevant JAR to this (maybe I missed something ?)
  2. Does your work (ESP8266FS.jar) will be compatible with ESP32 ? When ?

Thanks in advance ;)

Regards.

src\ESP8266FS.java:37: error: package processing.app does not exist
import processing.app.PreferencesData;
                     ^
src\ESP8266FS.java:38: error: package processing.app does not exist
import processing.app.Editor;
                     ^
src\ESP8266FS.java:39: error: package processing.app does not exist
import processing.app.Base;
                     ^
src\ESP8266FS.java:40: error: package processing.app does not exist
import processing.app.BaseNoGui;
                     ^
src\ESP8266FS.java:41: error: package processing.app does not exist
import processing.app.Platform;
                     ^
src\ESP8266FS.java:42: error: package processing.app does not exist
import processing.app.Sketch;
                     ^
src\ESP8266FS.java:43: error: package processing.app does not exist
import processing.app.SketchData;
                     ^
src\ESP8266FS.java:44: error: package processing.app.tools does not exist
import processing.app.tools.Tool;
                           ^
src\ESP8266FS.java:45: error: package processing.app.helpers does not exist
import processing.app.helpers.ProcessUtils;
                             ^
src\ESP8266FS.java:46: error: package processing.app.debug does not exist
import processing.app.debug.TargetPlatform;
                           ^
src\ESP8266FS.java:49: error: package processing.app.helpers does not exist
import processing.app.helpers.FileUtils;
                             ^
src\ESP8266FS.java:51: error: package cc.arduino.files does not exist
import cc.arduino.files.DeleteFilesOnShutdown;
                       ^
src\ESP8266FS.java:56: error: cannot find symbol
public class ESP8266FS implements Tool {
                                  ^
  symbol: class Tool
src\ESP8266FS.java:57: error: cannot find symbol
  Editor editor;
  ^
  symbol:   class Editor
  location: class ESP8266FS
src\ESP8266FS.java:60: error: cannot find symbol
  public void init(Editor editor) {
                   ^
  symbol:   class Editor
  location: class ESP8266FS
src\ESP8266FS.java:114: error: cannot find symbol
  private String getBuildFolderPath(Sketch s) {
                                    ^
  symbol:   class Sketch
  location: class ESP8266FS
src\ESP8266FS.java:71: error: cannot find symbol
        final Process p = ProcessUtils.exec(arguments);
                          ^
  symbol:   variable ProcessUtils
  location: class ESP8266FS
src\ESP8266FS.java:126: error: cannot find symbol
        File buildFolder = FileUtils.createTempFolder("build", DigestUtils.md5Hex(s.getMainFilePath()) + ".tmp");
                           ^
  symbol:   variable FileUtils
  location: class ESP8266FS
src\ESP8266FS.java:137: error: cannot find symbol
          method = BaseNoGui.class.getMethod("getBuildFolder");
                   ^
  symbol:   class BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:155: error: cannot find symbol
    String data = BaseNoGui.getBoardPreferences().get(name);
                  ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:162: error: cannot find symbol
    if(!PreferencesData.get("target_platform").contentEquals("esp8266")){
        ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:164: error: cannot find symbol
      editor.statusError("SPIFFS Not Supported on "+PreferencesData.get("target_platform"));
                                                    ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:168: error: cannot find symbol
    if(!BaseNoGui.getBoardPreferences().containsKey("build.spiffs_start") || !BaseNoGui.getBoardPreferences().containsKey("build.spiffs_end")){
        ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:168: error: cannot find symbol
    if(!BaseNoGui.getBoardPreferences().containsKey("build.spiffs_start") || !BaseNoGui.getBoardPreferences().containsKey("build.spiffs_end")){
                                                                              ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:170: error: cannot find symbol
      editor.statusError("SPIFFS Not Defined for "+BaseNoGui.getBoardPreferences().get("name"));
                                                   ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:186: error: cannot find symbol
    TargetPlatform platform = BaseNoGui.getTargetPlatform();
    ^
  symbol:   class TargetPlatform
  location: class ESP8266FS
src\ESP8266FS.java:186: error: cannot find symbol
    TargetPlatform platform = BaseNoGui.getTargetPlatform();
                              ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:190: error: cannot find symbol
    if(PreferencesData.get("runtime.os").contentEquals("windows"))
       ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:199: error: cannot find symbol
        tool = new File(PreferencesData.get("runtime.tools.mkspiffs.path"), mkspiffsCmd);
                        ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:211: error: cannot find symbol
    String serialPort = PreferencesData.get("serial.port");
                        ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:236: error: cannot find symbol
          esptool = new File(PreferencesData.get("runtime.tools.esptool.path"), esptoolCmd);
                             ^
  symbol:   variable PreferencesData
  location: class ESP8266FS
src\ESP8266FS.java:265: error: cannot find symbol
    String resetMethod = BaseNoGui.getBoardPreferences().get("upload.resetmethod");
                         ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:266: error: cannot find symbol
    String uploadSpeed = BaseNoGui.getBoardPreferences().get("upload.speed");
                         ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:267: error: cannot find symbol
    String uploadAddress = BaseNoGui.getBoardPreferences().get("build.spiffs_start");
                           ^
  symbol:   variable BaseNoGui
  location: class ESP8266FS
src\ESP8266FS.java:304: error: cannot find symbol
      if(PreferencesData.get("runtime.os").contentEquals("windows"))
         ^
  symbol:   variable PreferencesData
  location: class ESP8266FS

Upload fails on certain USB-TTL adapters

Plugin works for me when using certain USB-TTL adapters but fails (freezes progress) on certain models. Posting here in case anyone has seen same issue. Tested with two models of problem

adapter listed below - both show same issue. (Both work perfectly when uploading sketch from IDE.)

Mac OS X 10.11.6
Arduino IDE 1.6.12
USB-TTL prodID 6001, vendID 0403

Note: this USB-TTL adapter is supposedly an FTDI chip, but since I got them for cheap online, I'm open to the possibility that they are clones. However, posting issue in case this is indicative of a problem in the plugin code.

Attached file shows where progress in IDE upload freezes. This is running the upload plugin on the FSBrowser example sketch in ESPWebServer package.

screen shot 2016-12-22 at 4 20 58 pm

lastest build (0.4) jar needed

the zip on the release page only contains source files, I tried to compile it but failed because I don't know how. Could you compile it into a single jar, thanks. :)

esptool.py match-up

It'd be great to see this FS plugin matching esptool.py for speed and ease of use.
I enjoy using Arduino IDE, but the speed and stability of uploading to an ESP module leaves much to be desired.
In the time it takes to upload SPIFFS using this tool, I can compile (with PIO) and upload both PROGMEM & SPIFFS using esptool.py, with a hash verification at the end.

4M (2M SPIFFS) - possible?

Not really an issue, just a question. Is it possible to split flash in half where 50% is used for firmware code and 50% is used for SPIFFS?

I see the definitions defined in boards.txt but I'm not sure if to get this working, this is a case of just creating a new board profile using the eagle.flash.4m.ld and specifying a new SPIFFS start address or if a brand new eagle.flash.* layout would be required.

Tool not showing in arduino menu

I've been playing with this for a little bit now. I'm sure I have just missed something. I cant seem to get the tools menu option for this. I have tried it with arduino 1.8.7, 1.8.2, and 1.6.12.

Not sure what I should do now. I have placed the esp8266fs.jar file into my sketch folder. Arduino/tools/esp8266fs/tool/esp8266.jar

If you have any suggestions or need different information please let me know.

Thanks for you help in advanced

Watchdog Reset on v0.9 but not v1.0

I am running the same code on v0.9 and v1.0 ESP8266-12 module. Configuration is as follows:

ESP8266WebServer server(80);

//Our ESP8266-12E is an AccessPoint.
WiFi.mode (WIFI_AP);
WiFi.softAP(ssid, password, channel);

...
server.handleClient();

I've had this code running fine on both units for a long time but due to some recent changes (not sure what) on the version 0.9 hardware I get a watchdog reset as soon as I connect to the device,

Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vffffffff
~ld

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vffffffff
~ld

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room tail 8
chksum 0x2d
csum 0x2d

This is a new batch of NodeMcu ESP-12 modules. I have an older version of the same module that does not exhibit this problem.

SPIFFS Upload failed! - espcomm_upload_mem failed

hi@all,
I am trying to upload SPIFFS data to my ESP-12E modules since yesterday morning.
My Setup:
ESP-12E Standalone, FTDI232

This is the error message:


[SPIFFS] data   : C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\libraries\ESP8266WebServer\examples\FSBrowser\data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
/edit.htm.gz

/favicon.ico

/graphs.js.gz

/index.htm

[SPIFFS] upload : C:\Users\User\AppData\Local\Temp\build421e4affafbe2979ef4a065734a2bb44.spiffs/FSBrowser.spiffs.bin
[SPIFFS] address: 0x100000
[SPIFFS] reset  : nodemcu
[SPIFFS] port   : COM4
[SPIFFS] speed  : 115200

Uploading 3125248 bytes from to flash at 0x00100000

...................................................................................................................................................................................warning: espcomm_send_command: didn't receive command response

warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed

warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04

error: espcomm_upload_mem failed

SPIFFS Upload failed!

normal Sketches are uploading totally perfect.
tested with FSBrowser example and Arduino 1.6.5 and 1.6.8.
tested with 2 Computers, both Win7 64bit.
sometimes the error appeares after 2 seconds of flashing, sometimes after 30.

has anyone similar problems?

Add support OTA uploading.

This plugin tries to program thru serial port even if OTA selected.
I can upload using espota.py -i adress -p port -s -f spiffs.bin
It cannot be hard to support this.

Arduino-esp8266fs-plugin and folder Temp

I try to load data into my esp8266 module using arduino-esp8266fs-plugin and get the error: "error: failed to open file for reading", because The security policy configured in my antivirus prevents the files from the Temp folder from starting.

Is there a way to change the folder in which to save the file with the extension .spiffs.bin?

[SPIFFS] data   : C:\Users\user\Desktop\arduino-1.8.2\WIFI\ESP-remote_sensor_info\data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192

/index.htm.gz
/style.css.gz

[SPIFFS] upload : C:\Users\user\AppData\Local\Temp\buildec90edca78b1d4140f53f77473583aca.spiffs/ESP-remote_sensor_info.spiffs.bin
[SPIFFS] address: 0x100000
[SPIFFS] reset  : nodemcu
[SPIFFS] port   : COM21
[SPIFFS] speed  : 921600

error: failed to open file for reading

SPIFFS Upload failed!

Plugin Fails to Load on Arduino 1.6.9 Ubuntu Gnome 16.06

I am running Ubuntu Gnome in a VM (16.06). When I copy the plugin into Tools/ESP8266FS/tool/ESP8266FS.jar and restart the Arduino IDE, I do not get the extra command in the tools menu.

I tested on a Windows 10 machine and it works OK.

Version0.2.0 of "readBytes (byte, length)" I get an error at.

I will for the first time questions.
English I'm sorry the weak.

Version is 0.1.3 of the was no problem, but in ver 0.2.0 of the following sketch "readBytes (byte, length)" I get an error at.
Following message is issued.

SPIFFS_10:9: error: invalid conversion from 'byte * {aka unsigned char *}' to 'char *' [-fpermissive]

What does that mean?

I hope if you could tell me please.

My PC environment:
Windows8.1
Arduino IDE 1.6.5

Sample sketch:

include ”FS.h”

void setup() {
SPIFFS.begin();
Serial.begin(115200);
byte buf[2];

File file = SPIFFS.open("/test.bin", "r");
file.seek(0,SeekSet);
file.readBytes(buf,2);

Serial.println();
for(int i=0; i<2; i++){
Serial.println(buf[i],HEX);
}
}
void loop() {
}

Plugin warns about "empty spiffs" if subdirectory is used

My files are located in data/wwwroot/; all files are in that particular directory and no regular files are located immediately below data/.

In this case, the plugin warns me that I'm about to create an empty spiffs. If I click "yes", the plugin proceeds to upload a correct (including all files) spiffs image.

Not all files uploaded

Hello,

I used the previous version and it works great. After update to the latest version 0.4.0, some of files are not uploaded though the process completed successfully and hash of data verified.

Any idea what's wrong and how to fix it?
Thank you.

1M(512k SPIFFS) does not work, 1M(256k Spiffs) does

Hey,
im currently trying to create my own Webserver which serves an Website, when I try to upload my HTML, JS and CSS files on the ESP8266 ESP-01 some files are left out when the Flash has the 1M(512k SPIFFS) configuration, everything works fine on 1M(256k Spiffs) tho.
Would very much like to use a 512k SPIFFS but cant.

Thanks
Quaras

On IDE 1.6.7: Error with uploading

Greetings,

I'm on IDE 1.6.7 and it fails with the upload. I set everything up as described, and I can upload a sketch with no problems, and it seems to compile the 3 MB of file system binary, but uploading results in these messages:

[SPIFFS] data   : U:\ ..... \main\data
[SPIFFS] size   : 3052
[SPIFFS] page   : 256
[SPIFFS] block  : 8192
/test.txt

[SPIFFS] upload : C:\ [...] 8b9a9.spiffs/main.spiffs.bin
[SPIFFS] reset  : ck
[SPIFFS] port   : COM8
[SPIFFS] speed  : 115200
[SPIFFS] address: 0x100000

warning: espcomm_sync failed
error: espcomm_open failed
SPIFFS Upload failed!

Am I doing something wrong?

Thanks

Not installing. Arduino 1.8.5 on Mac

I believe I've created the folder structure correctly but I never get the tool's menu item.

Beardy/Documents/Arduino/tools/ESP8266FS/tool/ESP8266FS.java

What am I missing?

Thanks in advance

Need to automate creating and uploading a SPIFFS image from the CLI

I'm working on polishing a Makefile for automating compilation and uploading to an ESP8266 board. Using the Arduino IDE I'm able to build and upload a SPIFFS image per these instructions. I am unable to find a way to automate this from the command line.

What commands does the IDE use to compile and upload a SPIFFS image? I found reference to this chunk of code in another issue as a starting point. Is there a way to enable debug mode in the IDE and spit out the exact commands it runs? Once I can figure out the exact commands I can recreate them in my Makefile.

SPIFFS hangs during uploading?

When I try to flash the files, the SPIFFS uploader "hangs" and stops transmitting. I'm using Arduino IDE 1.6.5 and Mac OS X Yosemite. Any ideas as to why this could be happening?

IllegalAccessError: plugin 0.2.0 IDE 1.6.7

Hello,

I've got this message:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access method processing.app.Sketch.prepareDataFolder()Ljava/io/File; from class com.esp8266.mkspiffs.ESP8266FS at com.esp8266.mkspiffs.ESP8266FS.createAndUpload(ESP8266FS.java:165) at com.esp8266.mkspiffs.ESP8266FS.run(ESP8266FS.java:226) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Any ideas?

Feature request: Ignore Thumbs.db on Windows

Hey it'll be great if the uploader can ignore the Thumbs.db file on Windows. This file is usually automatically generated by Windows and is hidden. The only other option is to disable thumbnails inside Windows system wide, which I do not want to do.

CLI available ?

Hi

First of all thanks for making this plugin available for the community, very appreciated :)

I just wonder to know if it's possible to launch the plugin from the command line, something like :
esp8266fs.jar <path to data directory> --board esp8266:esp8266:d1_mini:CpuFrequency=80,FlashSize=4M3M,UploadSpeed=921600 --port COMxx

You may noticed the --board & --port parameters are exactly the same as the ones for arduino CLI.

Any chance ? :)

Kind Regards

Olivier

ERROR: AWT-EventQueue-0 Using arduino Ver1.6.11 ESP8266 Sketch Data Upload

Hi.
I want to use " ESP8266 Sketch Data Upload " but I couldn't.
The upload file is sample.txt. The file contents is just "abc".
I have a trouble.Thanks in advance.

THE ERROR :

Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access method processing.app.Sketch.prepareDataFolder()Ljava/io/File; from class com.esp8266.mkspiffs.ESP8266FS
at com.esp8266.mkspiffs.ESP8266FS.createAndUpload(ESP8266FS.java:165)
at com.esp8266.mkspiffs.ESP8266FS.run(ESP8266FS.java:226)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

SPIFFS data directory subfolder not converted in prefixed files.

From @far5893 on December 4, 2015 9:16

SPIFFS does not support directories so dir is only a prefix of filename,
if i prepare SPIFFS filesystem in linux (data directory) i cannot prefix files with /somewhere/ (/ is not allowed) but i can create directories , spiffs flash tool does not convert directories name in file prefixes!

Copied from original issue: esp8266/Arduino#1139

no warnings for filenames that are too long

i recently came up against an issue with the SPIFFS file system, mainly due to a lack of documentation, see PR: 2860 in which i had uploaded a file with a name longer than the filesystem allows, so SPIFFS.exists(filename) returned false even though the file was there.

i'm thinking would it be possible to update the upload tool so that a warning or error is raised when this occurs? i know this may not be trivial given that the limit can be changed in the header, but in this case a warning should be sufficient? at least then at upload time the user is given some kind of warning why it (may) not work?

src/ESP8266FS.java:117: error: cannot find symbol

I failed to find esp8266fs.jar, so I tried to compile it, but I've got the following error.

$ bash make.sh
 INSTALLDIR: /home/y/Documents/Arduino
pde_path: ../../../.local/share/umake/ide/arduino/lib/pde.jar
core_path: ../../../.local/share/umake/ide/arduino/lib/arduino-core.jar
lib_path: ../../../.local/share/umake/ide/arduino/lib/commons-codec-1.7.jar
src/ESP8266FS.java:117: error: cannot find symbol
      String buildpath = s.getBuildPath().getAbsolutePath();
                          ^
  symbol:   method getBuildPath()
  location: variable s of type Sketch
1 error

Ubuntu 16.04x64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.