From: Freddie Chopin Date: Fri, 21 May 2010 15:46:40 +0000 (+0200) Subject: LPC23xx and LPC24xx after reset run on internal 4MHz RC oscillator, so "flash bank... X-Git-Tag: v0.5.0-rc1~670 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06df4664a928c5b6de78e6ccd28499a4589d80f8;p=openocd 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 --- 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