#!/bin/bash -x
img_path=$PWD/.output/eagle/debug/image
#you can modify com port path your self
#esptool.py --port /dev/ttySx write_flash 0x00000 $img_path/eagle.app.v6.flash.bin 0x40000 $img_path/eagle.app.v6.irom0text.bin
esptool.py --port `ls /dev/ttyS*` write_flash 0x00000 $img_path/eagle.app.v6.flash.bin 0x40000 $img_path/eagle.app.v6.irom0text.bin

