aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/lpc1xxx.cfg
diff options
context:
space:
mode:
authorRod Boyce <developer@teamboyce.co.uk>2018-12-16 17:41:39 +0000
committerTomas Vanek <vanekt@fbl.cz>2019-01-02 21:54:03 +0000
commitb3ed97a4925ff441c3c2679d01e6cdb6edc123d8 (patch)
tree3097d70683a33e28cdfbeedb1c57d125534da2f8 /tcl/target/lpc1xxx.cfg
parent8f777bc1a66b5f604fde8bbdbe64206413c8aa1c (diff)
downloadriscv-openocd-b3ed97a4925ff441c3c2679d01e6cdb6edc123d8.zip
riscv-openocd-b3ed97a4925ff441c3c2679d01e6cdb6edc123d8.tar.gz
riscv-openocd-b3ed97a4925ff441c3c2679d01e6cdb6edc123d8.tar.bz2
NOR: lpc2000 Add support for LPC84x devices
These devices differ from LPC8xx devices in that they have a different IAP entry point, but everything else is the same. Using Tcl to pass different IAP entry point. no new Clang analyser warnings and no new build sanitizers issues. Change-Id: I2d654dd250f416e74262c0228cad8713a283402f Signed-off-by: Rod Boyce <developer@teamboyce.co.uk> Reviewed-on: http://openocd.zylin.com/4684 Reviewed-by: Jean-Christian de Rivaz <jcamdr70@gmail.com> Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'tcl/target/lpc1xxx.cfg')
-rw-r--r--tcl/target/lpc1xxx.cfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/tcl/target/lpc1xxx.cfg b/tcl/target/lpc1xxx.cfg
index 701adf2..1969e46 100644
--- a/tcl/target/lpc1xxx.cfg
+++ b/tcl/target/lpc1xxx.cfg
@@ -99,10 +99,14 @@ $_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE
# (same cmd51 destination boundary alignment, and all three support 256 byte
# transfers).
#
-# flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
+# flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum] [iap entry]
+set _IAP_ENTRY 0
+if { [info exists IAP_ENTRY] } {
+ set _IAP_ENTRY $IAP_ENTRY
+}
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME lpc2000 0x0 0 0 0 $_TARGETNAME \
- auto $_CCLK calc_checksum
+ auto $_CCLK calc_checksum $_IAP_ENTRY
if { $_CHIPSERIES == "lpc800" || $_CHIPSERIES == "lpc1100" || $_CHIPSERIES == "lpc1200" || $_CHIPSERIES == "lpc1300" } {
# Do not remap 0x0000-0x0200 to anything but the flash (i.e. select