power cycle by default
[openocd-rpi2-stm32] / zc-dump.sh
1 #!/bin/sh -xe
2
3 id=$1
4 test -z "$id" && id=$$
5
6 /bin/echo -e "flash read_bank 0 $id.bank0\nflash read_bank 1 $id.bank1\nmdw 0x08080000 1536\nexit\n" | nc localhost 4444 | tee $id.eeprom