The target library is now the authorotative source of config examples

git-svn-id: svn://svn.berlios.de/openocd/trunk@642 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe 2008-05-06 09:12:00 +00:00
parent 85407421f3
commit 483ed5da4d
14 changed files with 9 additions and 272 deletions

View File

@ -1,29 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 2
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#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 arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
target_script 0 reset h2294_init.script
run_and_halt_time 0 30
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0

View File

@ -1,28 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#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 arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
target_script 0 reset h2294_init.script
run_and_halt_time 0 30
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0

View File

@ -1,28 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout "jtagkey"
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 1
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst
#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> <endianess> <reset mode>
target arm9tdmi little reset_halt 0 arm920t
working_area 0 0x200000 0x4000 backup
run_and_halt_time 0 5000
#flash configuration
#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
flash bank cfi 0x10000000 0x800000 2 2 0

View File

@ -1,25 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface at91rm9200
at91rm9200_device rea_ecr
jtag_speed 0
reset_config srst_only
#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 arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little reset_halt 0 arm7tdmi
target_script 0 reset at91sam7_ecr.script
working_area 0 0x00200000 0x2000 nobackup
#flash configuration
flash bank at91sam7 0 0 0 0 0

View File

@ -1,12 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_cable chameleon
jtag_speed 0
#jtag scan chain
# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 5 0x01 0x1f 0x01

View File

@ -1,28 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Stellaris Evaluation Board A"
ft2232_layout evb_lm3s811
ft2232_vid_pid 0x0403 0xbcd9
jtag_speed 40
#LM3S811 Evaluation Board has only srst
reset_config srst_only 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 attach
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target cortex_m3 little run_and_halt 0
# 4k working area at base of ram
working_area 0 0x20000800 0x1200 nobackup
#target_script 0 reset ../doc/scripts/evb_lm3s811_test.script
#flash configuration
flash bank stellaris 0 0 0 0 0

View File

@ -1,26 +0,0 @@
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface usbprog
jtag_speed 2
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#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 arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x400000 2 2 0

View File

@ -1,40 +0,0 @@
#--- Daemon configuration ------------------------
telnet_port 4444
gdb_port 3333
daemon_startup reset
#--- JTAG interface configuration ----------------
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#-- Reset options available
reset_config trst_and_srst
#-- jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 7 0x1 0x7f 0x7e
#--- Target Configuration ------------------------
#target <type> <endianess> <startup mode> <jtagpos> <variant>
#target xscale big reset_init 0 IXP42x
target xscale big reset_halt 0 IXP42x
target_script 0 reset uc7420-rb.ocd
run_and_halt_time 0 2500
working_area 0 0x00100000 0x00010000 nobackup
flash bank cfi 0x50000000 0x01000000 2 2 0
flash bank cfi 0x51000000 0x01000000 2 2 0
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

View File

@ -1,10 +0,0 @@
mww 0xfffffd44 0x00008000 # disable watchdog
mww 0xfffffd08 0xa5000001 # enable user reset
mww 0xfffffc20 0x00000601 # CKGR_MOR : enable the main oscillator
sleep 10
mww 0xfffffc2c 0x12560a64 # CKGR_PLLR: 119.8MHz (DIV=100,MUL=598+1)
sleep 10
mww 0xfffffc30 0x00000007 # PMC_MCKR : MCK = PLL / 2 = 59.9MHz
sleep 10
mww 0xffffff60 0x003c0100 # MC_FMR: flash mode (FWS=1,FMCN=60)
arm7_9 force_hw_bkpts enable # program resides in flash

View File

@ -1,9 +0,0 @@
# Resets and unlocks the MSM of TMS470R1A288 (an others with an MSM).
# Assumes default MSM keys (all 0xFFFFFFFF).
#
resume
jtag_reset 0 1
halt
jtag_reset 0 0
poll # hack-ish, but effective version of 'reset halt'
mdw 0x1fe0 4 # unlock MSM

View File

@ -1,36 +0,0 @@
#---------------------------------------------------------------------
#-- OpenOCD Reset Init Script for IXP42x box with RedBoot
#---------------------------------------------------------------------
#debug 3
#- Let U-Boot setup the box ------------------------------------------
poll
resume 0x40
sleep 2000
halt
wait_halt 20
#- Reverse RedBoot crap ----------------------------------------------
xscale icache disable
xscale dcache disable
xscale mmu disable
#- Check for flash ---------------------------------------------------
flash banks
flash probe 0
flash probe 1
#flash protect_check 0
#flash protect_check 1
#flash erase_check 0
#flash erase_check 1
#flash info 0
#flash info 1
#- Bootloader --------------------------------------------------------
#flash erase 0 0 2
#flash write 0 //devboc/homes/src/denx/u-boot-git/u-boot.bin 0x00000 bin
#- Kernel Image ------------------------------------------------------
#flash erase 0 3 23
#flash write 0 //devbox/homes/src/pengutronics/ptxdist-project/images/linuximage 0x60000 bin

View File

@ -31,4 +31,5 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script
target/str730.cfg target/stm32stick.cfg event/str912_reset.script event/str710_program.script \
target/lm3s811.cfg interface/luminary.cfg interface/luminary-lm3s811.cfg interface/stm32-stick.cfg \
interface/calao-usb-a9260-c01.cfg interface/calao-usb-a9260-c02.cfg \
interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script
interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script \
interface/chameleon.cfg interface/at91rm9200.cfg

View File

@ -0,0 +1,3 @@
#interface
interface at91rm9200
at91rm9200_device rea_ecr

View File

@ -0,0 +1,4 @@
#interface
interface parport
parport_cable chameleon