Skip to content

Instantly share code, notes, and snippets.

@ankitsejwal
Created February 14, 2019 17:32
Show Gist options
  • Save ankitsejwal/d80ca106690bab966360514c3be9132c to your computer and use it in GitHub Desktop.
Save ankitsejwal/d80ca106690bab966360514c3be9132c to your computer and use it in GitHub Desktop.
# make sure hardware is connected
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 --after no_reset read_mac
# erase the flash:
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 --after no_reset erase_flash
# flash new firmware
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 esp32-20180127-v1.9.3-240-ga275cb0f.bin
# confirm success
$ screen /dev/cu.SLAB_USBtoUART 115200
# https://appelsiini.net/2018/m5stack-esp32-firmware-cli/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment