From 2cec23fc3761b2f7d978851eef62c4a291a0f18f Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 7 Aug 2008 16:35:26 +0000 Subject: lpc2148 2MHz, RCLK and clockless config script versions git-svn-id: svn://svn.berlios.de/openocd/trunk@897 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/Makefile.am | 4 ++-- src/target/event/lpc2148_reset.script | 2 -- src/target/target/lpc2148.cfg | 5 ++++- src/target/target/lpc2148_2mhz.cfg | 3 +++ src/target/target/lpc2148_rclk.cfg | 3 +++ 5 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 src/target/event/lpc2148_reset.script create mode 100644 src/target/target/lpc2148_2mhz.cfg create mode 100644 src/target/target/lpc2148_rclk.cfg diff --git a/src/target/Makefile.am b/src/target/Makefile.am index adf1add4..be3e3146 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -21,7 +21,7 @@ noinst_HEADERS = target.h trace.h register.h armv4_5.h embeddedice.h etm.h arm7t nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script target/at91eb40a.cfg \ event/at91r40008_reset.script event/sam7s256_reset.script event/sam7x256_reset.script \ - target/at91r40008.cfg target/lpc2148.cfg target/lpc2294.cfg target/sam7s256.cfg \ + target/at91r40008.cfg target/lpc2148.cfg target/lpc2148_rclk.cfg target/lpc2148_2mhz.cfg target/lpc2294.cfg target/sam7s256.cfg \ 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 \ @@ -32,7 +32,7 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script target/str730.cfg target/stm32stick.cfg event/str710_program.script \ target/lm3s811.cfg interface/luminary.cfg interface/luminary-libftdi.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 \ interface/chameleon.cfg interface/at91rm9200.cfg interface/jlink.cfg interface/arm-usb-ocd.cfg \ interface/signalyzer.cfg event/eir-sam7se512_reset.script target/eir-sam7se512.cfg \ event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg target/mx31.cfg \ diff --git a/src/target/event/lpc2148_reset.script b/src/target/event/lpc2148_reset.script deleted file mode 100644 index e67065b7..00000000 --- a/src/target/event/lpc2148_reset.script +++ /dev/null @@ -1,2 +0,0 @@ -#do not remap 0x0000-0x0020 to anything but the flash -mwb 0xE01FC040 0x01 diff --git a/src/target/target/lpc2148.cfg b/src/target/target/lpc2148.cfg index ab339562..a5857308 100644 --- a/src/target/target/lpc2148.cfg +++ b/src/target/target/lpc2148.cfg @@ -15,7 +15,10 @@ jtag_device 4 0x1 0xf 0xe target arm7tdmi little 0 arm7tdmi-s_r4 -target_script 0 reset event/lpc2148_reset.script +proc target_0_post_reset {} { + #do not remap 0x0000-0x0020 to anything but the flash + mwb 0xE01FC040 0x01 +} working_area 0 0x40000000 0x4000 nobackup diff --git a/src/target/target/lpc2148_2mhz.cfg b/src/target/target/lpc2148_2mhz.cfg new file mode 100644 index 00000000..d709e13b --- /dev/null +++ b/src/target/target/lpc2148_2mhz.cfg @@ -0,0 +1,3 @@ +# 2MHz +jtag_khz 2000 +script target/lpc2148.cfg diff --git a/src/target/target/lpc2148_rclk.cfg b/src/target/target/lpc2148_rclk.cfg new file mode 100644 index 00000000..1afafaa8 --- /dev/null +++ b/src/target/target/lpc2148_rclk.cfg @@ -0,0 +1,3 @@ +# RCLK +jtag_khz 0 +script target/lpc2148.cfg -- cgit v1.2.3