Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

24
platform/robert/boot/flash Executable file
View 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