sumorobot-firmware/Makefile
2018-01-12 10:11:36 +01:00

17 lines
461 B
Makefile

all: flash update wifis
ampy -p /dev/tty.SLAB_USBtoUART put uwebsockets.py
update:
sleep 3
ampy -p /dev/tty.SLAB_USBtoUART put hal.py
ampy -p /dev/tty.SLAB_USBtoUART put main.py
ampy -p /dev/tty.SLAB_USBtoUART put boot.py
config:
sleep 3
ampy -p /dev/tty.SLAB_USBtoUART put config.json
flash:
esptool.py -p /dev/tty.SLAB_USBtoUART -b 460800 erase_flash
esptool.py -p /dev/tty.SLAB_USBtoUART -b 460800 write_flash --flash_mode dio 0x1000 esp32-*.bin