9
0
Fork 0
sumorobot-firmware/Makefile

19 lines
436 B
Makefile

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