/usr/bin/ao-flash-lpc is in altos 1.6-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh
case "$#" in
0)
echo "usage: $0 <filename> ..."
exit 1
;;
esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
file="$1"
echo "program $file verify reset" > $cmds
openocd \
-f interface/stlink-v2.cfg \
-f target/lpc11u14.cfg \
-f $cmds \
-c shutdown
|