#!/bin/bash # This works for the Olimex SAM7-H256 and Atmel AT91SAM7S-EK # evaluation boards, both with the same AT91SAM7S256 uC. # Also works with Atmel AT91SAM7X-EK evaluation board. # 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 while sleep 1; do openocd \ --file $SCRIPTS/$INTERFACE \ --file $SCRIPTS/$BOARD \ --file $0.cfg \ "$@" done