aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth McMullin2015-04-03 21:38:43 -0700
committerGareth McMullin2015-04-11 16:05:40 -0700
commit7cd34329940d3032e3c7a09c45eb0dee96659ff1 (patch)
tree642d0516155930969adad627afed54d298c6f078
parent1efad1a03a322e82b85c18a6c22c4d96574e6697 (diff)
stm32f4: Add second bank for F42x/F43x.
-rw-r--r--src/stm32f4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stm32f4.c b/src/stm32f4.c
index 7dd4761..7b7a92e 100644
--- a/src/stm32f4.c
+++ b/src/stm32f4.c
@@ -128,9 +128,14 @@ bool stm32f4_probe(target *t)
idcode = target_mem_read32(t, DBGMCU_IDCODE);
switch(idcode & 0xFFF) {
+ case 0x419: /* 427/437 */
+ /* Second bank for 2M parts. */
+ stm32f4_add_flash(t, 0x8100000, 0x10000, 0x4000, 12);
+ stm32f4_add_flash(t, 0x8110000, 0x10000, 0x10000, 16);
+ stm32f4_add_flash(t, 0x8120000, 0xE0000, 0x20000, 17);
+ /* Fall through for stuff common to F40x/F41x */
case 0x411: /* Documented to be 0x413! This is what I read... */
case 0x413: /* F407VGT6 */
- case 0x419: /* 427/437 */
case 0x423: /* F401 B/C RM0368 Rev.3 */
case 0x431: /* F411 RM0383 Rev.4 */
case 0x433: /* F401 D/E RM0368 Rev.3 */