mirror of
https://github.com/google/pebble.git
synced 2025-05-28 14:03:12 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
24
platform/robert/boot/flash
Executable file
24
platform/robert/boot/flash
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
SCRIPTDIR="${0%/*}"
|
||||
IMGFILE="${SCRIPTDIR}/build/robert_boot.hex"
|
||||
|
||||
if [ ! -f "${IMGFILE}" ]; then
|
||||
echo "Cannot find bootloader binary at '${IMGFILE}'."
|
||||
echo "Try running './waf build'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OPENOCD_SCRIPT="
|
||||
init
|
||||
reset halt
|
||||
flash write_image erase \"${IMGFILE}\"
|
||||
reset
|
||||
shutdown
|
||||
"
|
||||
|
||||
openocd -f openocd.cfg -c "${OPENOCD_SCRIPT}"
|
||||
|
||||
# vim:filetype=sh
|
Loading…
Add table
Add a link
Reference in a new issue