From d7a6f0165e7d26a82d6b8bb3797bb7cc8c6e44f3 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Wed, 27 Mar 2013 11:24:43 -0700 Subject: [PATCH] Accept new chip ID for stm32f4 and include flash layout for 2MiB parts. Thanks to Mike Smith. --- src/stm32f4.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/stm32f4.c b/src/stm32f4.c index 364fef8..724e8d0 100644 --- a/src/stm32f4.c +++ b/src/stm32f4.c @@ -66,6 +66,15 @@ static const char stm32f4_xml_memory_map[] = "" " " " 0x20000" " " + " " + " 0x4000" + " " + " " + " 0x10000" + " " + " " + " 0x20000" + " " " " " " ""; @@ -157,6 +166,7 @@ bool stm32f4_probe(struct target_s *target) switch(idcode & 0xFFF) { case 0x411: /* Documented to be 0x413! This is what I read... */ case 0x413: + case 0x419: /* 427/437 */ target->driver = stm32f4_driver_str; target->xml_mem_map = stm32f4_xml_memory_map; target->flash_erase = stm32f4_flash_erase;