From 06df4664a928c5b6de78e6ccd28499a4589d80f8 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Fri, 21 May 2010 17:46:40 +0200 Subject: 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 --- tcl/target/lpc2478.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0 0 [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 -- cgit v1.2.3