-
Yes, I too struggled with this couple of times.
Than discovered there is aREADME_flash.txt
in the ESP32 directory that shows pretty much the commands you used.
IIRC, saw somewhere that first you have to flash all parts as above, and after that you can just flashespruino_XvYY_esp32.bin
to upgrade.Actually the docs tell you to do this, but starts with building from source. So splitting
Building
andFlashing
to separate paragraphs would be a good idea IMO. Or even better, moving the Build instructions down, and only showing the download & flashing instructions in the "Getting Started" sections would make it clearer. Maybe the docs were not updated since ESP32 builds are available...You can always send a PR https://github.com/espruino/EspruinoDocs/blob/master/boards/ESP32.md :)
I have successfully flashed the ESP32-CAM , the LILYGO® TTGO and official expressif ESP32-WROOM-32D using the following code.
Since I haven't seen it clearly written anywhere I figured I'd share this with everyone.
I tried the .bin but could NOT get it to work. so you'll go to the "directory" of the latest version (v2.04 right now) and you'd download all the files from there:
https://www.espruino.com/binaries/espruino_2v04_esp32/
of course the only thing you've change is the port "/dev/cu.SLAB_USBtoUART " to what ever it is on your computer.