From 3f0c9ccee1eb774821a542dc649b07325a990d3d Mon Sep 17 00:00:00 2001 From: Ingmar Jager Date: Mon, 7 Jan 2019 01:34:00 +0100 Subject: [PATCH] Fix support for LPC1115 and LPC1115XL devices (#415) * Add support for LPC11U3X devices. The DeviceID register has a different address from the LPC11XX devices. But it is shared with the LPC8XX family. * Fix support for LPC1115 and LPC1115XL devices * Fix whitespace --- src/target/lpc11xx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/target/lpc11xx.c b/src/target/lpc11xx.c index 37e232f..30143ba 100644 --- a/src/target/lpc11xx.c +++ b/src/target/lpc11xx.c @@ -74,7 +74,7 @@ lpc11xx_probe(target *t) case 0x1440102B: /* lpc1114 */ case 0x0A40902B: case 0x1A40902B: - case 0x2058002B: /* lpc1115 */ + case 0x00050080: /* lpc1115 and lpc1115L (not the XL version. See UM10398 Rev12.4 Chapter 3.1 ) */ case 0x1431102B: /* lpc11c22 */ case 0x1430102B: /* lpc11c24 */ case 0x095C802B: /* lpc11u12x/201 */ @@ -130,6 +130,11 @@ lpc11xx_probe(target *t) target_add_ram(t, 0x10000000, 0x2000); lpc11xx_add_flash(t, 0x00000000, 0x20000, 0x1000); return true; + case 0x00050080: /* lpc1115XL */ + t->driver = "LPC1100XL"; + target_add_ram(t, 0x10000000, 0x2000); + lpc11xx_add_flash(t, 0x00000000, 0x20000, 0x1000); + return true; } return false;