Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -z "$1" ]; then
- PORT="ttyUSB0"
- else
- PORT=$1
- fi
- echo "Make sure the Arduino IDE Serial monitor is closed"
- echo "Erasing old image"
- sudo esptool.py --port /dev/$PORT --baud 115200 erase_flash
- if [ $? != 0 ]; then
- echo "Failed!";
- exit 1;
- fi
- echo "Flashing Firmware"
- sudo esptool.py --port /dev/$PORT --baud 115200 write_flash \
- --flash_size=detect \
- 0xFB000 blank.bin \
- 0xFC000 esp_init_data_default.bin \
- 0x7E000 blank.bin \
- 0xFE000 blank.bin \
- 0x00000 boot_v1.6.bin \
- 0x01000 at/512+512/user1.1024.new.2.bin
Add Comment
Please, Sign In to add comment