From 53c41935cd72687ffb7f6b408a824f8e40f82ee9 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 14 Apr 2008 06:26:53 +0000 Subject: moved out stuff that wasn't already moved from openocd.pdf to the target library. git-svn-id: svn://svn.berlios.de/openocd/trunk@576 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/Makefile.am | 6 +++++- src/target/event/omap5912_reset.script | 21 +++++++++++++++++++++ src/target/interface/amontec-tiny.cfg | 8 ++++++++ src/target/interface/str9-comstick.cfg | 3 +++ src/target/target/epc9301.cfg | 12 ++++++++++++ src/target/target/ipx42x.cfg | 13 +++++++++++++ src/target/target/lpc2129.cfg | 15 +++++++++++++++ src/target/target/netx500.cfg | 13 +++++++++++++ src/target/target/omap5912.cfg | 25 +++++++++++++++++++++++++ src/target/target/pxa270.cfg | 22 ++++++++++++++++++++++ src/target/target/str750.cfg | 19 +++++++++++++++++++ src/target/target/str9comstick.cfg | 19 +++++++++++++++++++ 12 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 src/target/event/omap5912_reset.script create mode 100644 src/target/interface/amontec-tiny.cfg create mode 100644 src/target/interface/str9-comstick.cfg create mode 100644 src/target/target/epc9301.cfg create mode 100644 src/target/target/ipx42x.cfg create mode 100644 src/target/target/lpc2129.cfg create mode 100644 src/target/target/netx500.cfg create mode 100644 src/target/target/omap5912.cfg create mode 100644 src/target/target/pxa270.cfg create mode 100644 src/target/target/str750.cfg create mode 100644 src/target/target/str9comstick.cfg (limited to 'src/target') diff --git a/src/target/Makefile.am b/src/target/Makefile.am index 2de8cf00..d975d6fc 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -24,4 +24,8 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script target/sam7x256.cfg target/str710.cfg target/str912.cfg target/nslu2.cfg target/pxa255_sst.cfg \ target/pxa255.cfg target/zy1000.cfg event/zy1000_reset.script event/at91sam9260_reset.script target/at91sam9260.cfg \ target/wi-9c.cfg event/wi-9c_reset.script event/pxa255_reset.script target/stm32.cfg target/xba_revA3.cfg event/xba_revA3.script \ - ecos/at91eb40a.elf target/lm3s6965.cfg interface/parport.cfg + ecos/at91eb40a.elf target/lm3s6965.cfg interface/parport.cfg \ + event/omap5912_reset.script interface/amontec-tiny.cfg interface/str9-comstick.cfg \ + target/epc9301.cfg target/ipx42x.cfg target/lpc2129.cfg target/netx500.cfg \ + target/omap5912.cfg target/pxa270.cfg target/str750.cfg target/str9comstick.cfg + diff --git a/src/target/event/omap5912_reset.script b/src/target/event/omap5912_reset.script new file mode 100644 index 00000000..9d452018 --- /dev/null +++ b/src/target/event/omap5912_reset.script @@ -0,0 +1,21 @@ +# +# halt target +# +poll +sleep 1 +halt +wait_halt +# +# disable wdt +# +mww 0xfffec808 0x000000f5 +mww 0xfffec808 0x000000a0 + +mww 0xfffeb048 0x0000aaaa +sleep 500 +mww 0xfffeb048 0x00005555 +sleep 500 +# +# detect flash +# +flash probe 0 diff --git a/src/target/interface/amontec-tiny.cfg b/src/target/interface/amontec-tiny.cfg new file mode 100644 index 00000000..aaa1cde2 --- /dev/null +++ b/src/target/interface/amontec-tiny.cfg @@ -0,0 +1,8 @@ +#interface +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 diff --git a/src/target/interface/str9-comstick.cfg b/src/target/interface/str9-comstick.cfg new file mode 100644 index 00000000..afece3ce --- /dev/null +++ b/src/target/interface/str9-comstick.cfg @@ -0,0 +1,3 @@ +interface ft2232 +ft2232_device_desc "STR9-comStick A" +ft2232_layout comstick diff --git a/src/target/target/epc9301.cfg b/src/target/target/epc9301.cfg new file mode 100644 index 00000000..f3b5eb88 --- /dev/null +++ b/src/target/target/epc9301.cfg @@ -0,0 +1,12 @@ +# Cirrus Logic EP9301 processor on an Olimex CS-E9301 board. +jtag_device 4 0x1 0xf 0xe +jtag_nsrst_delay 100 +jtag_ntrst_delay 100 +#target configuration +daemon_startup attach +#target +target arm920t little reset_halt 0 +working_area 0 0x80014000 0x1000 backup +#flash configuration +#flash bank [driver_options ...] +flash bank cfi 0x60000000 0x1000000 2 2 0 diff --git a/src/target/target/ipx42x.cfg b/src/target/target/ipx42x.cfg new file mode 100644 index 00000000..397985d2 --- /dev/null +++ b/src/target/target/ipx42x.cfg @@ -0,0 +1,13 @@ +#xscale ixp42x CPU + +#use combined on interfaces or targets that can’t set TRST/SRST separately +reset_config srst_only srst_pulls_trst +#jtag scan chain +#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) +jtag_device 7 0x1 0x7f 0x7e +#target configuration +daemon_startup reset +#target +#target arm7tdmi +target xscale big run_and_halt 0 IXP42x +run_and_halt_time 0 30 diff --git a/src/target/target/lpc2129.cfg b/src/target/target/lpc2129.cfg new file mode 100644 index 00000000..908b2512 --- /dev/null +++ b/src/target/target/lpc2129.cfg @@ -0,0 +1,15 @@ +#LPC-2129 CPU +#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 +#target arm7tdmi +target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4 +run_and_halt_time 0 30 +working_area 0 0x40000000 0x4000 nobackup +#flash bank +flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum diff --git a/src/target/target/netx500.cfg b/src/target/target/netx500.cfg new file mode 100644 index 00000000..9bb6bed2 --- /dev/null +++ b/src/target/target/netx500.cfg @@ -0,0 +1,13 @@ +#Hilscher netX 500 CPU +#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 +jtag_nsrst_delay 100 +jtag_ntrst_delay 100 +#target configuration +daemon_startup reset +#target +target arm926ejs little run_and_halt 0 arm926ejs +run_and_halt_time 0 500 diff --git a/src/target/target/omap5912.cfg b/src/target/target/omap5912.cfg new file mode 100644 index 00000000..2c471a7a --- /dev/null +++ b/src/target/target/omap5912.cfg @@ -0,0 +1,25 @@ +#TI OMAP5912 dual core processor - http://www.ti.com +#on a OMAP5912 OSK board http://www.spectrumdigital.com. + +#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 38 0x0 0x0 0x0 +jtag_device 4 0x1 0x0 0xe +jtag_device 8 0x0 0x0 0x0 + +#target configuration +daemon_startup reset + +#target +target arm926ejs little run_and_init 1 arm926ejs +target_script 0 reset event/omap5912_reset.script +run_and_halt_time 0 30 + +# omap5912 lcd frame buffer as working area +working_area 0 0x20000000 0x3e800 nobackup + +#flash bank +flash bank cfi 0x00000000 0x1000000 2 2 0 diff --git a/src/target/target/pxa270.cfg b/src/target/target/pxa270.cfg new file mode 100644 index 00000000..5946e757 --- /dev/null +++ b/src/target/target/pxa270.cfg @@ -0,0 +1,22 @@ +#Marvell/Intel PXA270 Script +# set jtag_nsrst_delay to the delay introduced by your reset circuit +# the rest of the needed delays are built into the openocd program +jtag_nsrst_delay 260 +# set the jtag_ntrst_delay to the delay introduced by a reset circuit +# the rest of the needed delays are built into the openocd program +jtag_ntrst_delay 0 +#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 7 0x1 0x7f 0x7e +#target configuration +daemon_startup reset +target xscale little reset_halt 0 pxa27x +# maps to PXA internal RAM. If you are using a PXA255 +# you must initialize SDRAM or leave this option off +working_area 0 0x5c000000 0x10000 nobackup +run_and_halt_time 0 30 +#flash bank +# works for P30 flash +flash bank cfi 0x00000000 0x1000000 2 4 0 diff --git a/src/target/target/str750.cfg b/src/target/target/str750.cfg new file mode 100644 index 00000000..6e7c2180 --- /dev/null +++ b/src/target/target/str750.cfg @@ -0,0 +1,19 @@ +#STR750 CPU +#use combined on interfaces or targets that can’t set TRST/SRST separately +#reset_config trst_and_srst srst_pulls_trst +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 +#jtag nTRST and nSRST delay +jtag_nsrst_delay 500 +jtag_ntrst_delay 500 +#target configuration +daemon_startup reset +#target +#target arm7tdmi +target arm7tdmi little run_and_halt 0 arm7tdmi +run_and_halt_time 0 30 +working_area 0 0x40000000 0x4000 nobackup +#flash bank +flash bank str7x 0x20000000 0x000040000 0 0 0 STR75x diff --git a/src/target/target/str9comstick.cfg b/src/target/target/str9comstick.cfg new file mode 100644 index 00000000..f9886674 --- /dev/null +++ b/src/target/target/str9comstick.cfg @@ -0,0 +1,19 @@ +#Hitex STR9 Comstick +jtag_nsrst_delay 100 +jtag_ntrst_delay 100 +#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 8 0x1 0x1 0xfe +jtag_device 4 0x1 0xf 0xe +jtag_device 5 0x1 0x1 0x1e +#target configuration +daemon_startup reset +#target +#target arm966e +target arm966e little reset_halt 1 arm966e +run_and_halt_time 0 30 +working_area 0 0x50000000 16384 nobackup +#flash bank +flash bank str9x 0x00000000 0x00080000 0 0 0 -- cgit v1.2.3