Try older OpenOCD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4044 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9f645b695e
commit
104087d854
0
configs/ea3131/README.txt
Executable file → Normal file
0
configs/ea3131/README.txt
Executable file → Normal file
0
configs/ea3131/include/board.h
Executable file → Normal file
0
configs/ea3131/include/board.h
Executable file → Normal file
0
configs/ea3131/include/board_memorymap.h
Executable file → Normal file
0
configs/ea3131/include/board_memorymap.h
Executable file → Normal file
0
configs/ea3131/locked/Makefile
Executable file → Normal file
0
configs/ea3131/locked/Makefile
Executable file → Normal file
0
configs/ea3131/nsh/Make.defs
Executable file → Normal file
0
configs/ea3131/nsh/Make.defs
Executable file → Normal file
0
configs/ea3131/nsh/defconfig
Executable file → Normal file
0
configs/ea3131/nsh/defconfig
Executable file → Normal file
0
configs/ea3131/nsh/ld.script
Executable file → Normal file
0
configs/ea3131/nsh/ld.script
Executable file → Normal file
0
configs/ea3131/ostest/Make.defs
Executable file → Normal file
0
configs/ea3131/ostest/Make.defs
Executable file → Normal file
0
configs/ea3131/ostest/defconfig
Executable file → Normal file
0
configs/ea3131/ostest/defconfig
Executable file → Normal file
0
configs/ea3131/ostest/ld.script
Executable file → Normal file
0
configs/ea3131/ostest/ld.script
Executable file → Normal file
0
configs/ea3131/pgnsh/Make.defs
Executable file → Normal file
0
configs/ea3131/pgnsh/Make.defs
Executable file → Normal file
0
configs/ea3131/pgnsh/defconfig
Executable file → Normal file
0
configs/ea3131/pgnsh/defconfig
Executable file → Normal file
0
configs/ea3131/pgnsh/ld.script
Executable file → Normal file
0
configs/ea3131/pgnsh/ld.script
Executable file → Normal file
0
configs/ea3131/src/Makefile
Executable file → Normal file
0
configs/ea3131/src/Makefile
Executable file → Normal file
0
configs/ea3131/src/ea3131_internal.h
Executable file → Normal file
0
configs/ea3131/src/ea3131_internal.h
Executable file → Normal file
0
configs/ea3131/src/up_boot.c
Executable file → Normal file
0
configs/ea3131/src/up_boot.c
Executable file → Normal file
0
configs/ea3131/src/up_buttons.c
Executable file → Normal file
0
configs/ea3131/src/up_buttons.c
Executable file → Normal file
0
configs/ea3131/src/up_clkinit.c
Executable file → Normal file
0
configs/ea3131/src/up_clkinit.c
Executable file → Normal file
0
configs/ea3131/src/up_fillpage.c
Executable file → Normal file
0
configs/ea3131/src/up_fillpage.c
Executable file → Normal file
0
configs/ea3131/src/up_leds.c
Executable file → Normal file
0
configs/ea3131/src/up_leds.c
Executable file → Normal file
0
configs/ea3131/src/up_mem.c
Executable file → Normal file
0
configs/ea3131/src/up_mem.c
Executable file → Normal file
0
configs/ea3131/src/up_nsh.c
Executable file → Normal file
0
configs/ea3131/src/up_nsh.c
Executable file → Normal file
0
configs/ea3131/src/up_spi.c
Executable file → Normal file
0
configs/ea3131/src/up_spi.c
Executable file → Normal file
0
configs/ea3131/src/up_usbstrg.c
Executable file → Normal file
0
configs/ea3131/src/up_usbstrg.c
Executable file → Normal file
0
configs/ea3131/tools/Makefile
Executable file → Normal file
0
configs/ea3131/tools/Makefile
Executable file → Normal file
0
configs/ea3131/tools/armusbocd.cfg
Executable file → Normal file
0
configs/ea3131/tools/armusbocd.cfg
Executable file → Normal file
0
configs/ea3131/tools/crc32.c
Executable file → Normal file
0
configs/ea3131/tools/crc32.c
Executable file → Normal file
0
configs/ea3131/tools/lpchdr.c
Executable file → Normal file
0
configs/ea3131/tools/lpchdr.c
Executable file → Normal file
0
configs/ea3131/tools/lpchdr.h
Executable file → Normal file
0
configs/ea3131/tools/lpchdr.h
Executable file → Normal file
0
configs/ea3131/usbserial/Make.defs
Executable file → Normal file
0
configs/ea3131/usbserial/Make.defs
Executable file → Normal file
0
configs/ea3131/usbserial/defconfig
Executable file → Normal file
0
configs/ea3131/usbserial/defconfig
Executable file → Normal file
0
configs/ea3131/usbserial/ld.script
Executable file → Normal file
0
configs/ea3131/usbserial/ld.script
Executable file → Normal file
0
configs/ea3131/usbstorage/Make.defs
Executable file → Normal file
0
configs/ea3131/usbstorage/Make.defs
Executable file → Normal file
0
configs/ea3131/usbstorage/defconfig
Executable file → Normal file
0
configs/ea3131/usbstorage/defconfig
Executable file → Normal file
0
configs/ea3131/usbstorage/ld.script
Executable file → Normal file
0
configs/ea3131/usbstorage/ld.script
Executable file → Normal file
0
configs/ea3152/README.txt
Executable file → Normal file
0
configs/ea3152/README.txt
Executable file → Normal file
0
configs/ea3152/include/board.h
Executable file → Normal file
0
configs/ea3152/include/board.h
Executable file → Normal file
0
configs/ea3152/include/board_memorymap.h
Executable file → Normal file
0
configs/ea3152/include/board_memorymap.h
Executable file → Normal file
0
configs/ea3152/ostest/Make.defs
Executable file → Normal file
0
configs/ea3152/ostest/Make.defs
Executable file → Normal file
0
configs/ea3152/ostest/defconfig
Executable file → Normal file
0
configs/ea3152/ostest/defconfig
Executable file → Normal file
0
configs/ea3152/ostest/ld.script
Executable file → Normal file
0
configs/ea3152/ostest/ld.script
Executable file → Normal file
0
configs/ea3152/src/Makefile
Executable file → Normal file
0
configs/ea3152/src/Makefile
Executable file → Normal file
0
configs/ea3152/src/ea3152_internal.h
Executable file → Normal file
0
configs/ea3152/src/ea3152_internal.h
Executable file → Normal file
0
configs/ea3152/src/up_boot.c
Executable file → Normal file
0
configs/ea3152/src/up_boot.c
Executable file → Normal file
0
configs/ea3152/src/up_buttons.c
Executable file → Normal file
0
configs/ea3152/src/up_buttons.c
Executable file → Normal file
0
configs/ea3152/src/up_clkinit.c
Executable file → Normal file
0
configs/ea3152/src/up_clkinit.c
Executable file → Normal file
0
configs/ea3152/src/up_fillpage.c
Executable file → Normal file
0
configs/ea3152/src/up_fillpage.c
Executable file → Normal file
0
configs/ea3152/src/up_leds.c
Executable file → Normal file
0
configs/ea3152/src/up_leds.c
Executable file → Normal file
0
configs/ea3152/src/up_mem.c
Executable file → Normal file
0
configs/ea3152/src/up_mem.c
Executable file → Normal file
0
configs/ea3152/src/up_nsh.c
Executable file → Normal file
0
configs/ea3152/src/up_nsh.c
Executable file → Normal file
0
configs/ea3152/src/up_spi.c
Executable file → Normal file
0
configs/ea3152/src/up_spi.c
Executable file → Normal file
0
configs/ea3152/src/up_usbstrg.c
Executable file → Normal file
0
configs/ea3152/src/up_usbstrg.c
Executable file → Normal file
0
configs/ea3152/tools/Makefile
Executable file → Normal file
0
configs/ea3152/tools/Makefile
Executable file → Normal file
34
configs/ea3152/tools/armusbocd.cfg
Normal file
34
configs/ea3152/tools/armusbocd.cfg
Normal file
@ -0,0 +1,34 @@
|
||||
#daemon configuration
|
||||
telnet_port 4444
|
||||
gdb_port 3333
|
||||
|
||||
#interface
|
||||
interface ft2232
|
||||
ft2232_device_desc "Olimex OpenOCD JTAG A"
|
||||
ft2232_layout "olimex-jtag"
|
||||
ft2232_vid_pid 0x15BA 0x0003
|
||||
jtag_speed 2
|
||||
|
||||
#use combined on interfaces or targets that can't set TRST/SRST separately
|
||||
reset_config trst_and_srst separate
|
||||
|
||||
#jtag scan chain
|
||||
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
|
||||
jtag_device 4 0x1 0xf 0xe
|
||||
|
||||
#target configuration
|
||||
daemon_startup reset
|
||||
|
||||
#target <type> <startup mode>
|
||||
#target arm9ejs <reset mode> <chainpos> <endianness> <variant>
|
||||
target arm926ejs little run_and_halt 0 arm926ejs
|
||||
run_and_halt_time 0 30
|
||||
|
||||
#target_script 0 reset oocd_flash2138.script
|
||||
working_area 0 0x1102800 0x60000 nobackup
|
||||
|
||||
#flash configuration
|
||||
#flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum
|
||||
|
||||
# For more information about the configuration files, take a look at:
|
||||
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
|
0
configs/ea3152/tools/crc32.c
Executable file → Normal file
0
configs/ea3152/tools/crc32.c
Executable file → Normal file
0
configs/ea3152/tools/lpc3152.cfg
Executable file → Normal file
0
configs/ea3152/tools/lpc3152.cfg
Executable file → Normal file
0
configs/ea3152/tools/lpchdr.c
Executable file → Normal file
0
configs/ea3152/tools/lpchdr.c
Executable file → Normal file
0
configs/ea3152/tools/lpchdr.h
Executable file → Normal file
0
configs/ea3152/tools/lpchdr.h
Executable file → Normal file
0
configs/ea3152/tools/olimex-arm-usb-ocd.cfg
Executable file → Normal file
0
configs/ea3152/tools/olimex-arm-usb-ocd.cfg
Executable file → Normal file
@ -8,6 +8,9 @@ if [ -z "${TOPDIR}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
# OpenOCD 0.4.0 ###############################################################
|
||||
###############################################################################
|
||||
# This script *probably* only works with the following version of OpenOCD:
|
||||
|
||||
OPENOCD_PATH="/cygdrive/c/OpenOCD/openocd-0.4.0/src"
|
||||
@ -19,16 +22,10 @@ OPENOCD_SEARCHDIR="${TOPDIR}/configs/ea3152/tools"
|
||||
OPENOCD_WSEARCHDIR="`cygpath -w ${OPENOCD_SEARCHDIR}`"
|
||||
OPENOCD_INTERFACE="olimex-arm-usb-ocd.cfg"
|
||||
OPENOCD_TARGET="lpc3152.cfg"
|
||||
|
||||
OPENOCD_ARGS="-s ${OPENOCD_WSEARCHDIR} -f ${OPENOCD_INTERFACE} -f ${OPENOCD_TARGET}"
|
||||
|
||||
# Verify that everything is what it claims it is and is located where it claims it is.
|
||||
|
||||
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
|
||||
@ -45,6 +42,48 @@ if [ ! -f "${OPENOCD_SEARCHDIR}/${OPENOCD_INTERFACE}" ]; then
|
||||
echo "OpenOCD interface config file does not exist: ${OPENOCD_SEARCHDIR}/${OPENOCD_INTERFACE}"
|
||||
exit 1
|
||||
fi
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Older OpenOCD that Shipped with the ARM-OCD JTAG ############################
|
||||
###############################################################################
|
||||
# This script *probably* only works with the following version of OpenOCD:
|
||||
#
|
||||
#OPENOCD_PATH="/cygdrive/c/gccfd/openocd/bin"
|
||||
#OPENOCD_EXE=openocd-ftd2xx.exe
|
||||
#
|
||||
# Local search directory and configurations
|
||||
#
|
||||
#OPENOCD_CFG="${TOPDIR}/configs/ea3152/tools/armusbocd.cfg"
|
||||
#OPENOCD_ARGS="-f `cygpath -w ${OPENOCD_CFG}`"
|
||||
#
|
||||
#if [ ! -f ${OPENOCD_CFG} ]; then
|
||||
# echo "OpenOCD config file does not exist: ${OPENOCD_CFG}"
|
||||
# exit 1
|
||||
#fi
|
||||
#
|
||||
# Verify that everything is what it claims it is and is located where it claims it is.
|
||||
#
|
||||
#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
|
||||
###############################################################################
|
||||
|
||||
# Enable debug if so requested
|
||||
|
||||
if [ "X$2" = "X-d" ]; then
|
||||
OPENOCD_ARGS=$OPENOCD_ARGS" -d3"
|
||||
set -x
|
||||
fi
|
||||
|
||||
# Okay... do it!
|
||||
|
||||
@ -53,7 +92,3 @@ ${OPENOCD_PATH}/${OPENOCD_EXE} ${OPENOCD_ARGS} &
|
||||
echo "OpenOCD daemon started"
|
||||
ps -ef | grep openocd
|
||||
echo "In GDB: target remote localhost:3333"
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user