Skip to content

Commit

Permalink
Add script to build and program ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
garyservin committed Dec 15, 2014
1 parent 679b188 commit 6e461e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions at/build_and_program.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh
rm -rf .output
make
cd .output/eagle/debug/image
esptool -eo eagle.app.v6.out -bo eagle.app.v6.flash.bin -bs .text -bs .data -bs .rodata -bc -ec
xtensa-lx106-elf-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
/opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 eagle.app.v6.flash.bin 0x40000 eagle.app.v6.irom0text.bin 0x7E000 ../../../../../bin/blank.bin

0 comments on commit 6e461e3

Please sign in to comment.