This commit is contained in:
Lubos Petrovic
2020-12-04 13:59:38 +01:00
parent e2100ad6bf
commit e7618a3cd8
8 changed files with 46 additions and 17 deletions

25
flash_linux.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# Setup
# 1. Ensure you have Python 2.7 or 3.4+ installed
# 2. `pip install esptool`
# 3. `sudo usermod -a -G dialout <USERNAME>` // log out and log in is required
# Select distribution:
# TTGO T4
DIST=./dist/ttgo_t4_v13
# or m5stack
DIST=./dist/m5stack_core1
# Set USB port
PORT=/dev/ttyUSB0
esptool.py -p $PORT -b 921600 write_flash \
--flash_mode dio \
--flash_size detect \
--flash_freq 80m \
0xe000 $DIST/boot_app0.bin \
0x1000 $DIST/bootloader_qio_80m.bin \
0x10000 $DIST/evDash.ino.bin \
0x8000 $DIST/evDash.ino.partitions.bin