This is an automated email from Gerrit.

Andreas Färber ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/3089

-- gerrit

commit 8d47b834e36a63a41e51cb54cfafc4580db58c89
Author: Andreas Färber <[email protected]>
Date:   Sun Jul 12 15:45:20 2015 +0200

    lpcspifi: Add SWD support for LPC43xx
    
    Since JTAG and SWD modes use different IDCODEs, the flash driver complains:
    
      Error: Device ID 0x2ba01477 is not known as SPIFI capable
      Error: auto_probe failed
    
    Fix this by adding a new target device array entry for the SWD IDCODE,
    otherwise duplicating the existing JTAG line.
    
    Tested with LPC4357 and LPC4370.
    
    Change-Id: Ic230e3e989a3e1f1a5b3bae68bdb34e5ef55d392
    Signed-off-by: Andreas Färber <[email protected]>

diff --git a/src/flash/nor/lpcspifi.c b/src/flash/nor/lpcspifi.c
index 3b383eb..4074652 100644
--- a/src/flash/nor/lpcspifi.c
+++ b/src/flash/nor/lpcspifi.c
@@ -70,6 +70,7 @@ struct lpcspifi_target {
 static const struct lpcspifi_target target_devices[] = {
        /* name,          tap_idcode, spifi_base, ssp_base,   io_base,    
ioconfig_base */
        { "LPC43xx/18xx", 0x4ba00477, 0x14000000, 0x40083000, 0x400F4000, 
0x40086000 },
+       { "LPC43xx/18xx", 0x2ba01477, 0x14000000, 0x40083000, 0x400F4000, 
0x40086000 },
        { NULL,           0,          0,          0,          0,          0 }
 };
 

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to