This is an automated email from Gerrit.

Paul Fertser (fercer...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2464

-- gerrit

commit 8b2ccbcd473f2d2403659867c4ca01697a163dab
Author: Paul Fertser <fercer...@gmail.com>
Date:   Thu Jan 15 23:48:42 2015 +0300

    tcl/target: add lpc8xx.cfg
    
    This adds a trivial config for LPC8xx chips based on the already
    existing infrastructure in lpc1xxx.cfg.
    
    Change-Id: I7384df1f3c2e3e8ab767319728db5c4f8149480f
    Signed-off-by: Paul Fertser <fercer...@gmail.com>

diff --git a/tcl/target/lpc1xxx.cfg b/tcl/target/lpc1xxx.cfg
index 60b5052..091c02a 100644
--- a/tcl/target/lpc1xxx.cfg
+++ b/tcl/target/lpc1xxx.cfg
@@ -8,6 +8,7 @@
 #
 # !!!!!!
 
+# LPC8xx chips support only SWD transport.
 # LPC11xx chips support only SWD transport.
 # LPC12xx chips support only SWD transport.
 # LPC11Uxx chips support both JTAG and SWD transports.
@@ -24,7 +25,7 @@ if { [info exists CHIPNAME] } {
 
 if { [info exists CHIPSERIES] } {
        # Validate chip series is supported
-       if { $CHIPSERIES != "lpc1100" && $CHIPSERIES != "lpc1200" && 
$CHIPSERIES != "lpc1300" && $CHIPSERIES != "lpc1700" } {
+       if { $CHIPSERIES != "lpc800" && $CHIPSERIES != "lpc1100" && $CHIPSERIES 
!= "lpc1200" && $CHIPSERIES != "lpc1300" && $CHIPSERIES != "lpc1700" } {
                error "Unsupported LPC1xxx chip series specified."
        }
        set _CHIPSERIES $CHIPSERIES
@@ -43,7 +44,7 @@ if { [info exists CCLK] } {
        set _CCLK $CCLK
 } else {
        # LPC11xx/LPC12xx/LPC13xx use a 12MHz one, LPC17xx uses a 4MHz one
-       if { $_CHIPSERIES == "lpc1100" || $_CHIPSERIES == "lpc1200" || 
$_CHIPSERIES == "lpc1300" } {
+       if { $_CHIPSERIES == "lpc800" || $_CHIPSERIES == "lpc1100" || 
$_CHIPSERIES == "lpc1200" || $_CHIPSERIES == "lpc1300" } {
                set _CCLK 12000
        } elseif { $_CHIPSERIES == "lpc1700" } {
                set _CCLK 4000
@@ -55,7 +56,7 @@ if { [info exists CPUTAPID] } {
        set _CPUTAPID $CPUTAPID
 } else {
        # LPC11xx/LPC12xx uses a Cortex M0 core, LPC13xx/LPC17xx use a Cortex 
M3 core
-       if { $_CHIPSERIES == "lpc1100" || $_CHIPSERIES == "lpc1200" } {
+       if { $_CHIPSERIES == "lpc800" || $_CHIPSERIES == "lpc1100" || 
$_CHIPSERIES == "lpc1200" } {
                set _CPUTAPID 0x0bb11477
        } elseif { $_CHIPSERIES == "lpc1300" || $_CHIPSERIES == "lpc1700" } {
                if { [using_jtag] } {
@@ -99,7 +100,7 @@ set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME lpc2000 0x0 0 0 0 $_TARGETNAME \
        auto $_CCLK calc_checksum
 
-if { $_CHIPSERIES == "lpc1100" || $_CHIPSERIES == "lpc1200" || $_CHIPSERIES == 
"lpc1300" } {
+if { $_CHIPSERIES == "lpc800" || $_CHIPSERIES == "lpc1100" || $_CHIPSERIES == 
"lpc1200" || $_CHIPSERIES == "lpc1300" } {
        # Do not remap 0x0000-0x0200 to anything but the flash (i.e. select
        # "User Flash Mode" where interrupt vectors are _not_ remapped,
        # and reside in flash instead).
diff --git a/tcl/target/lpc8xx.cfg b/tcl/target/lpc8xx.cfg
new file mode 100644
index 0000000..0c31a63
--- /dev/null
+++ b/tcl/target/lpc8xx.cfg
@@ -0,0 +1,8 @@
+# NXP LPC8xx Cortex-M0 with at least 1kB SRAM
+set CHIPNAME lpc8xx
+set CHIPSERIES lpc800
+if { ![info exists WORKAREASIZE] } {
+       set WORKAREASIZE 0x400
+}
+
+source [find target/lpc1xxx.cfg]

-- 

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to