From e1cefb2031836c886b33995c850c3a45077ebfa3 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Tue, 24 Apr 2018 11:06:07 +0100 Subject: [PATCH] Update maximum RAM sizes for F4 and F7 devices --- src/target/stm32f4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/target/stm32f4.c b/src/target/stm32f4.c index ec5cdc7..aa6f5bf 100644 --- a/src/target/stm32f4.c +++ b/src/target/stm32f4.c @@ -253,7 +253,8 @@ bool stm32f4_probe(target *t) uint32_t flashsize = target_mem_read32(t, flashsize_base) & 0xffff; if (is_f7) { target_add_ram(t, 0x00000000, 0x4000); /* 16 k ITCM Ram */ - target_add_ram(t, 0x20000000, 0x10000); /* 64 k DTCM Ram */ + target_add_ram(t, 0x20000000, 0x20000); /* 128 k DTCM Ram */ + target_add_ram(t, 0x20020000, 0x60000); /* 384 k Ram */ if (dual_bank) { uint32_t optcr; optcr = target_mem_read32(t, FLASH_OPTCR); @@ -262,7 +263,7 @@ bool stm32f4_probe(target *t) } else { if (has_ccmram) target_add_ram(t, 0x10000000, 0x10000); /* 64 k CCM Ram*/ - target_add_ram(t, 0x20000000, 0x10000); /* 64 k RAM */ + target_add_ram(t, 0x20000000, 0x50000); /* 320 k RAM */ if (dual_bank) { use_dual_bank = true; if (flashsize < 0x800) {