2018-08-30 10:25:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-05-17 15:50:39 +00:00
|
|
|
#SERIAL_PORT=/dev/ttyUSB0
|
2019-08-14 11:40:05 +00:00
|
|
|
SERIAL_PORT=/dev/tty.usbserial-1410
|
2018-08-30 10:25:14 +00:00
|
|
|
#SERIAL_PORT=/dev/tty.SLAB_USBtoUART
|
2019-08-14 11:40:05 +00:00
|
|
|
#SERIAL_PORT=/dev/tty.wchusbserial1410
|
2018-02-15 19:33:11 +00:00
|
|
|
|
2019-08-14 11:47:02 +00:00
|
|
|
all: flash
|
2018-01-10 21:21:26 +00:00
|
|
|
|
|
|
|
flash:
|
2018-02-15 19:33:11 +00:00
|
|
|
esptool.py -p $(SERIAL_PORT) -b 460800 erase_flash
|
|
|
|
esptool.py -p $(SERIAL_PORT) -b 460800 write_flash --flash_mode dio 0x1000 esp32-*.bin
|