#!/bin/bash # This works for the Olimex SAM7-H256 and Atmel AT91SAM7S-EK # evaluation boards, both with the same AT91SAM7S256 uC. # The JTAG programmer is an Olimex ARM-USB-OCD. INTERFACE=interface/arm-usb-ocd.cfg BOARD=board/atmel_at91sam7s-ek.cfg # cat $0 SCRIPTS=/usr/local/share/openocd/scripts OPENOCD=openocd # OPENOCD="strace openocd" while sleep 1; do $OPENOCD \ --file $SCRIPTS/$INTERFACE \ --file $SCRIPTS/$BOARD \ --file $0.cfg \ "$@" echo echo echo Restarting... done