Skip to content
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

Help with SPIFFS uploader ignoring boards settings #2

Open
tobozo opened this issue Nov 25, 2020 · 0 comments
Open

Help with SPIFFS uploader ignoring boards settings #2

tobozo opened this issue Nov 25, 2020 · 0 comments

Comments

@tobozo
Copy link
Owner

tobozo commented Nov 25, 2020

The current ESP8266 Sketch Data Upload tool fails as it ignores the "reset method" and "flash mode" board settings,

esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP8266EX
Features: WiFi
WARNING: Detected crystal freq 20.33MHz is quite different to normalized freq 26MHz. Unsupported crystal in use?
Crystal is 26MHz
MAC: 00:08:ff:00:00:00
Uploading stub...
Running stub...
Traceback (most recent call last):
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2909, in main
    esp = esp.run_stub()
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 637, in run_stub
    p = self.read()
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 292, in read
    return next(self._slip_reader)
  File "~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2057, in slip_reader
    raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x46)
SPIFFS Upload failed!

image

Possible workarounds:

  • Manual upload
    ~/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 /.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/upload.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 --before no_reset --after soft_reset write_flash 0x100000 /tmp/arduino_build_15608/Unpack_targz_file.spiffs.bin

  • OTA SPIFFS upload (from esp32 to esp8266, or from Arduino IDE)

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

1 participant