b04ae46ea6
* boards/arm/tiva/tm4c129e-launchpad: New subdirectory providing board support for the Texas Instruments TM4C Crypto Connected LaunchPad, or more correctly the EK-TM4C129EXL. * Documentation/introduction/detailed_support.rst, Documentation/introduction/supported_platforms.rst, boards/README.txt: Document the additional board support. * boards/Kconfig: (ARCH_BOARD_TM4C129E_LAUNCHPAD): New config. (ARCH_BOARD): Add tm4c129e-launchpad. (Board-Specific Options): Source the board-specific Kconfig boards/arm/tiva/tm4c129e-launchpad/Kconfig when selected.
58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# See boards/arm/tiva/tm4c129e-launchpad/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}/boards/arm/tiva/tm4c129e-launchpad/tools/ek-tm4c129exl.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"
|