summaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorFreddie Chopin <freddie_chopin@op.pl>2010-05-21 17:46:40 +0200
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-05-24 09:20:43 +0100
commit06df4664a928c5b6de78e6ccd28499a4589d80f8 (patch)
tree4f5c7c2711754e7a969a0289551d328cc7f9af03 /tcl/target
parent2e1eaaae35e506efe6190817876b1078885a83d7 (diff)
downloadopenocd+libswd-06df4664a928c5b6de78e6ccd28499a4589d80f8.tar.gz
openocd+libswd-06df4664a928c5b6de78e6ccd28499a4589d80f8.tar.bz2
openocd+libswd-06df4664a928c5b6de78e6ccd28499a4589d80f8.tar.xz
openocd+libswd-06df4664a928c5b6de78e6ccd28499a4589d80f8.zip
LPC23xx and LPC24xx after reset run on internal 4MHz RC oscillator, so "flash bank" parameter should be 4000 (not 12000)
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/lpc2478.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/lpc2478.cfg b/tcl/target/lpc2478.cfg
index 950ef63f..57aa36fd 100644
--- a/tcl/target/lpc2478.cfg
+++ b/tcl/target/lpc2478.cfg
@@ -44,7 +44,7 @@ $_TARGETNAME configure -event reset-init {
# After reset the chip uses its internal 4MHz RC oscillator.
# flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
set _FLASHNAME $_CHIPNAME.flash
-flash bank $_FLASHNAME lpc2000 0x0 0x7D000 0 0 $_TARGETNAME lpc2000_v2 12000 calc_checksum
+flash bank $_FLASHNAME lpc2000 0x0 0x7D000 0 0 $_TARGETNAME lpc2000_v2 4000 calc_checksum
# Try to use RCLK, if RCLK is not available use "normal" mode. 4MHz / 6 = 666kHz, so use 500.
jtag_rclk 500