mirror of
https://github.com/icewind1991/esp8266-flash.git
synced 2026-06-03 10:34:05 +02:00
example and basic readme
This commit is contained in:
parent
f50307e071
commit
6cd7bab5e5
8 changed files with 169 additions and 22 deletions
14
flash_example
Executable file
14
flash_example
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/zsh
|
||||
|
||||
xargo build --example counter --release || exit
|
||||
|
||||
# change this for release flashes
|
||||
BIN_PATH=target/xtensa-esp8266-none-elf/release/examples/counter
|
||||
|
||||
rm $BIN_PATH.bin*
|
||||
|
||||
# convert to bin
|
||||
esptool.py elf2image --flash_mode="dio" --flash_freq "40m" -o $BIN_PATH.bin $BIN_PATH
|
||||
|
||||
# flash
|
||||
esptool.py --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x0000 $BIN_PATH.bin0x00000.bin
|
||||
Loading…
Add table
Add a link
Reference in a new issue