aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kubiak <jakub@kubiak.es>2015-05-27 21:52:41 +0200
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-26 12:17:54 +0000
commit9a6d6b51b7428ddac6ada28dd9db589deb616f4d (patch)
tree69245f6d6f1b5689c65e2cd465ac51c56f66b64c
parentae2142d5a220a0e8eec3bceb499782ce53596f35 (diff)
downloadriscv-openocd-9a6d6b51b7428ddac6ada28dd9db589deb616f4d.zip
riscv-openocd-9a6d6b51b7428ddac6ada28dd9db589deb616f4d.tar.gz
riscv-openocd-9a6d6b51b7428ddac6ada28dd9db589deb616f4d.tar.bz2
flash/nor/lpc2000: add alternative part ID for LPC1343
http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip > Note that once you have recovered debug access to your MCU, then in most cases you should then modify your Debug Configuration to turn vector catch off again. If this is not done, then this can cause problems in some circumstances with some versions of the Code Red IDE. For example with NXP LPC13xx parts, connecting more than once to the MCU with vector catch enabled can lead to the part ID being incorrectly read - which can again cause debug connections to fail This patch adds an alternative part ID for LPC1343. With this patch "program" command works fine for flashing. Change-Id: I8632e898a4c33102455925d25715b4f4edfa1d97 Signed-off-by: Jakub Kubiak <jakub@kubiak.es> Reviewed-on: http://openocd.zylin.com/2782 Tested-by: jenkins Reviewed-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
-rw-r--r--src/flash/nor/lpc2000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nor/lpc2000.c b/src/flash/nor/lpc2000.c
index 8340aea..cc10a3b 100644
--- a/src/flash/nor/lpc2000.c
+++ b/src/flash/nor/lpc2000.c
@@ -213,6 +213,7 @@
#define LPC1317 0x1A020525
#define LPC1342 0x3D01402B
#define LPC1343 0x3D00002B
+#define LPC1343_1 0x3000002B
#define LPC1345 0x28010541
#define LPC1346 0x08018542
#define LPC1347 0x08020543
@@ -1317,6 +1318,7 @@ static int lpc2000_auto_probe_flash(struct flash_bank *bank)
case LPC1313_1:
case LPC1315:
case LPC1343:
+ case LPC1343_1:
case LPC1345:
lpc2000_info->variant = lpc1100;
bank->size = 32 * 1024;