9
0
Fork 0
sumorobot-firmware/Makefile

24 lines
600 B
Makefile

#SERIAL_PORT=/dev/tty.SLAB_USBtoUART
SERIAL_PORT=/dev/tty.wchusbserial1410
#SERIAL_PORT=/dev/ttyUSB0
all: flash lib config update reset
reset:
esptool.py -p $(SERIAL_PORT) --after hard_reset read_mac
lib:
ampy -d 0.5 -p $(SERIAL_PORT) put uwebsockets.py
update:
ampy -d 0.5 -p $(SERIAL_PORT) put hal.py
ampy -d 0.5 -p $(SERIAL_PORT) put main.py
ampy -d 0.5 -p $(SERIAL_PORT) put boot.py
config:
ampy -d 0.5 -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