Working ESP32 Ethernet OTA update Mac terminal command #121
Lelandwilson
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If it helps anyone who is stuck, to achieve a sketch or SPIFFS flash do the following:
MAC & Java:
In Arduino open preferences and enable 'Verbose output during comilation'
Then upload sketch within Arduino software via OTA.
The terminal will produce a command string for you to copy for future reference. It details the location of your arduinoOTA file. Also as per original instructions, to get SPIFFS (data file) binary and location, perform and await for the failed SPIFFS OTA flash.
The command show in the terminal will be similar to this: Data upload:
/Applications/Utilities/Arduino.app/Contents/Java/hardware/tools/avr/bin/arduinoOTA -address 192.168.0.121 -port 65280 -username ESP32 -password password -sketch /var/folders/72/ssfbncvs5d1fjh7d9m4c800w0000gn/T/arduino_build_937228/ESP32httpsFS.spiffs.bin -upload /data -b
Sketch:
/Applications/Utilities/Arduino.app/Contents/Java/hardware/tools/avr/bin/arduinoOTA -address 192.168.0.121 -port 65280 -username ESP32 -password password -sketch /var/folders/72/ssfbncvs5d1fjh7d9m4c800w0000gn/T/arduino_build_937228/ESP32httpsFS.spiffs.bin -upload /sketch -b
Or alternatively there is a Python option which uses esports.py:
python /Users/............./Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/tools/espota.py -i 192.168.0.121 -p 65280 -a password -f /var/folders/72/ssfbncvs5d1fjh7d9m4c800w0000gn/T/arduino_build_937228/ESP32httpsFS.spiffs.bin
Beta Was this translation helpful? Give feedback.
All reactions