e5dfd805e6
Add support for LPC40xx family chips * Corrected a few peripheral definitions and pin functions for the LPC17xx family. Added configuration options, chip definitions, and additional pin functions for the LPC40xx family. Added board configurations for Embedded Artists LPC4088 Quickstart board and LPC4088 Developer's kit. These configurations are still something of a work in progress. In particular, the LCD functionality is untested. * First pass rename in *.c and *.h files. * Renamed LPC17XX to LPC17XX_40XX in config files * Rplaced LPC17xx with LPC17xx/LPC40xx in .c files * Replaced LPC17xx with LPC17xx/LPC40xx in .h files * Updated some documentation * Working on moving directories * moved arch/arm/src/lpc17xx and arch/arm/include/lpc17xx to lpc17xx_40xx * Renamed LPC17_* constants / configuration options to LPC17_40_* * Updated chip family name defines * Renamed some chip-specific files * Updated references to renamed files * Updated references to lpc17_ to lpc17_40_ * Renamed source files from lpc17_* to lpc17_40_* * Clean up white space Approved-by: Gregory Nutt <gnutt@nuttx.org>
58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# See configs/lpc4088-devkit/README.txt for information about
|
|
# this file.
|
|
|
|
TOPDIR=$1
|
|
USAGE="$0 <TOPDIR> [-d]"
|
|
if [ -z "${TOPDIR}" ]; then
|
|
echo "Missing argument"
|
|
echo $USAGE
|
|
exit 1
|
|
fi
|
|
|
|
# Assume that OpenOCD was installed and at /usr/local/bin. Uncomment
|
|
# the following to run directly from the build directory
|
|
|
|
# OPENOCD_PATH="/home/OpenOCD/openocd/src"
|
|
# OPENOCD_PATH="/usr/bin"
|
|
OPENOCD_PATH="/usr/local/bin"
|
|
|
|
# TARGET_PATH="/home/OpenOCD/openocd/tcl"
|
|
# TARGET_PATH="/usr/share/openocd/scripts"
|
|
TARGET_PATH="/usr/local/share/openocd/scripts"
|
|
|
|
# Assume a Unix development environment. Uncomment to use a Windows
|
|
# like environment
|
|
|
|
OPENOCD_EXE=openocd.exe
|
|
# OPENOCD_EXE=openocd
|
|
|
|
OPENOCD_CFG="${TOPDIR}/configs/lpc4088-devkit/tools/lpc4088-devkit.cfg"
|
|
OPENOCD_ARGS="-f ${OPENOCD_CFG} -s ${TARGET_PATH}"
|
|
|
|
if [ "X$2" = "X-d" ]; then
|
|
OPENOCD_ARGS=$OPENOCD_ARGS" -d3"
|
|
set -x
|
|
fi
|
|
|
|
if [ ! -d ${OPENOCD_PATH} ]; then
|
|
echo "OpenOCD path does not exist: ${OPENOCD_PATH}"
|
|
exit 1
|
|
fi
|
|
if [ ! -x ${OPENOCD_PATH}/${OPENOCD_EXE} ]; then
|
|
echo "OpenOCD does not exist: ${OPENOCD_PATH}/${OPENOCD_EXE}"
|
|
exit 1
|
|
fi
|
|
if [ ! -f ${OPENOCD_CFG} ]; then
|
|
echo "OpenOCD config file does not exist: ${OPENOCD_CFG}"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Starting OpenOCD"
|
|
cd ${OPENOCD_PATH} || { echo "Failed to CD to ${OPENOCD_PATH}"; exit 1; }
|
|
${OPENOCD_EXE} ${OPENOCD_ARGS} &
|
|
echo "OpenOCD daemon started"
|
|
ps -ef | grep openocd
|
|
echo "In GDB: target remote localhost:3333"
|