From 9bd0116866d35be18890d0c008dc380e60a52597 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Mon, 14 Apr 2008 08:15:23 +0000 Subject: [PATCH] - added new and missing target scripts - stm32stick and str730 git-svn-id: svn://svn.berlios.de/openocd/trunk@579 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/Makefile.am | 3 ++- src/target/target/stm32stick.cfg | 25 +++++++++++++++++++++++++ src/target/target/str730.cfg | 28 ++++++++++++++++++++++++++++ src/target/target/str750.cfg | 12 +++++++++++- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 src/target/target/stm32stick.cfg create mode 100644 src/target/target/str730.cfg diff --git a/src/target/Makefile.am b/src/target/Makefile.am index d975d6fc..2619ca6a 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -27,5 +27,6 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script 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 + target/omap5912.cfg target/pxa270.cfg target/str750.cfg target/str9comstick.cfg \ + target/str730.cfg target/stm32stick.cfg diff --git a/src/target/target/stm32stick.cfg b/src/target/target/stm32stick.cfg new file mode 100644 index 00000000..66941499 --- /dev/null +++ b/src/target/target/stm32stick.cfg @@ -0,0 +1,25 @@ +# Hitex stm32 performance stick +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 4 0x1 0xf 0xe +jtag_device 5 0x1 0x1 0x1e +jtag_device 4 0x1 0xf 0xe + +#target +#target arm7tdmi +target cortex_m3 little reset_init 0 +run_and_halt_time 0 30 + +working_area 0 0x20000000 16384 nobackup + +#flash bank str7x 0 0 +flash bank stm32x 0 0 0 0 0 + +# For more information about the configuration files, take a look at: +# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger diff --git a/src/target/target/str730.cfg b/src/target/target/str730.cfg new file mode 100644 index 00000000..b3879a94 --- /dev/null +++ b/src/target/target/str730.cfg @@ -0,0 +1,28 @@ +#STR730 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 0x00040000 0 0 0 STR3x + diff --git a/src/target/target/str750.cfg b/src/target/target/str750.cfg index 6e7c2180..e6c09480 100644 --- a/src/target/target/str750.cfg +++ b/src/target/target/str750.cfg @@ -1,19 +1,29 @@ #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 +flash bank str7x 0x20000000 0x00040000 0 0 0 STR75x +flash bank str7x 0x200C0000 0x00004000 0 0 0 STR75x + -- 2.39.5