Add support for LPC11U14 (tested) and related U-series microcontrollers (untested).

This commit is contained in:
Jared Boone 2014-03-03 09:56:08 -08:00 committed by Gareth McMullin
parent 12aeaad441
commit 096e1b32c6
1 changed files with 10 additions and 1 deletions

View File

@ -64,7 +64,7 @@ static const char lpc11xx_xml_memory_map[] = "<?xml version=\"1.0\"?>"
" PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\"" " PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\""
" \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"*/ " \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"*/
"<memory-map>" "<memory-map>"
" <memory type=\"flash\" start=\"0x00000000\" length=\"0x10000\">" " <memory type=\"flash\" start=\"0x00000000\" length=\"0x20000\">"
" <property name=\"blocksize\">0x1000</property>" " <property name=\"blocksize\">0x1000</property>"
" </memory>" " </memory>"
" <memory type=\"ram\" start=\"0x10000000\" length=\"0x2000\"/>" " <memory type=\"ram\" start=\"0x10000000\" length=\"0x2000\"/>"
@ -103,6 +103,15 @@ lpc11xx_probe(struct target_s *target)
case 0x2058002B: /* lpc1115 */ case 0x2058002B: /* lpc1115 */
case 0x1431102B: /* lpc11c22 */ case 0x1431102B: /* lpc11c22 */
case 0x1430102B: /* lpc11c24 */ case 0x1430102B: /* lpc11c24 */
case 0x095C802B: /* lpc11u12x/201 */
case 0x295C802B:
case 0x097A802B: /* lpc11u13/201 */
case 0x297A802B:
case 0x0998802B: /* lpc11u14x/201 */
case 0x2998802B:
case 0x2972402B: /* lpc11u23/301 */
case 0x2988402B: /* lpc11u24x/301 */
case 0x2980002B: /* lpc11u24x/401 */
target->driver = "lpc11xx"; target->driver = "lpc11xx";
target->xml_mem_map = lpc11xx_xml_memory_map; target->xml_mem_map = lpc11xx_xml_memory_map;
target->flash_erase = lpc11xx_flash_erase; target->flash_erase = lpc11xx_flash_erase;