nuttx/configs/avr32dev1/tools/doisp.sh
patacongo d1d59d1c7c Add doisp.sh
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3048 42af7a65-404d-4744-a932-0658087f49c3
2010-10-23 17:47:13 +00:00

23 lines
645 B
Bash
Executable File

#!/bin/bash
# This script must be executed in the NuttX top-level directory
TOPDIR=`pwd`
if [ ! -f .config ]; then
echo "There is no configured version of NuttX in this directory."
echo " Is '$TOPDIR' the NuttX top level directory?"
echo " Has NuttX been configured?"
exit 1
fi
if [! -f nuttx ]; then
echo "The NuttX ELF file (nuttx) does not exist in this directory."
echo " Has the NuttX binary been built?"
exit 1
fi
DEVICE=at32uc3b0256
HARDWARE=usb
OPERATION="erase f memory flash blankcheck loadbuffer nuttx program verify start reset 0"
batchisp -device $DEVICE -hardware $HARDWAR -operation $OPERATION