forked from verybadsoldier/esp_rgbww_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflash
executable file
·16 lines (13 loc) · 1.11 KB
/
flash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export rgbww=usb-1a86_USB2.0-Serial-if00-port0
export second_devel=usb-1a86_USB_Single_Serial_5647014434-if00
export main_devel=usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_01A7B447-if00-port0
COM_SPEED=$(grep -e "^COM_SPEED" component.mk |cut -d "=" -f 2)
if [ "$1" == "1" ]
then
COM_PORT=/dev/serial/by-id/$second_devel
else
COM_PORT=/dev/serial/by-id/$rgbww
fi
python3 /home/pjakobs/devel/esp_rgbww_firmware/Sming/Sming/Components/esptool/esptool/esptool.py -p $COM_PORT -b $COM_SPEED --chip esp8266 --before default_reset --after hard_reset write_flash -z -fs 4MB -ff 40m -fm dio 0x00000 out/Esp8266/debug/firmware/rboot.bin 0x003fa000 out/Esp8266/debug/firmware/partitions.bin 0x00002000 out/Esp8266/debug/firmware/rom0.bin 0x00102000 out/Esp8266/debug/firmware/rom0.bin 0x00200000 out/Esp8266/debug/firmware/spiff_rom.bin 0x003fc000 /home/pjakobs/devel/esp_rgbww_firmware/Sming/Sming/Arch/Esp8266/Components/esp8266/sdk/bin/esp_init_data_default.bin
#usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_01A7B447-if00-port0
python3 -m serial.tools.miniterm --raw --encoding ascii --rts 0 --dtr 0 $COM_PORT $COM_SPEED