esp8266 / arduino-esp8266fs-plugin

Arduino plugin for uploading files to ESP8266 file system
GNU General Public License v2.0
706 stars 214 forks source link

SPIFFS Upload Does not complete on Ubuntu #60

Open rupin opened 4 years ago

rupin commented 4 years ago

I have an Arduino Folder unzipped and installed on Ubuntu. I am able to run and upload programs using the Arduino IDE.

I am using WifiManager and Need to upload a config file into the SPIFFS. I created a data directory, then copied the ESP8266FS tool as recommended.

Here is the log from the IDE

[SPIFFS] data    : /home/dailydiy/sketchbook/TriggerAlarm/data
[SPIFFS] size    : 64
[SPIFFS] page    : 256
[SPIFFS] block   : 4096
/config.json
[SPIFFS] upload  : /tmp/arduino_build_866440/TriggerAlarm.spiffs.bin
[SPIFFS] address  : 0xEB000
[SPIFFS] reset    : ck
[SPIFFS] port     : /dev/ttyUSB0
[SPIFFS] speed    : 115200
[SPIFFS] python   : /home/dailydiy/.arduino15/packages/esp8266/tools/python/3.7.2-post1/python
[SPIFFS] uploader : /home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/upload.py

esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting........_____...
Chip is ESP8266EX
Features: WiFi
MAC: 68:c6:3a:ab:c3:a0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 65536 bytes to 203...

Writing at 0x000eb000... (100 %)
Wrote 65536 bytes (203 compressed) at 0x000eb000 in 0.0 seconds (effective 21060.0 kbit/s)...
Traceback (most recent call last):
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/upload.py", line 25, in <module>
    esptool.main(fakeargs)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 2698, in main
    operation_func(esp, args)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 2177, in write_flash
    res = esp.flash_md5sum(address, uncsize)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 104, in inner
    return func(*args, **kwargs)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 651, in flash_md5sum
    timeout=timeout)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 354, in check_command
    val, data = self.command(op, data, chk, timeout=timeout)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 332, in command
    p = self.read()
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 277, in read
    return next(self._slip_reader)
  File "/home/dailydiy/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 1877, in slip_reader
    raise FatalError("Timed out waiting for packet %s" % waiting_for)
esptool.FatalError: Timed out waiting for packet header
SPIFFS Upload failed!

Why does the upload fail for the SPIFFS, but the ones for the sketch does not?