From c906a8614f77f12a9f72f8ef6a9612b46f4edca2 Mon Sep 17 00:00:00 2001 From: Alexandre Bustico Date: Mon, 11 Jul 2016 14:58:40 +0200 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=C2=B0=20add=20support=20for=20ITCM?= =?UTF-8?q?=20flash=20memory=20(in=20addition=20of=20DTCM)=20for=20STM32F7?= =?UTF-8?q?=20family=20=20=20=20=20=C2=B0=20add=20support=20for=20STM32F76?= =?UTF-8?q?x=20and=20STM32F77x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stm32f4.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/stm32f4.c b/src/stm32f4.c index 1cfbec3..f94f8db 100644 --- a/src/stm32f4.c +++ b/src/stm32f4.c @@ -181,9 +181,28 @@ bool stm32f4_probe(target *t) t->driver = stm32f7_driver_str; target_add_ram(t, 0x00000000, 0x4000); target_add_ram(t, 0x20000000, 0x50000); + /* DTCM */ stm32f4_add_flash(t, 0x8000000, 0x20000, 0x8000, 0); stm32f4_add_flash(t, 0x8020000, 0x20000, 0x20000, 4); stm32f4_add_flash(t, 0x8040000, 0xC0000, 0x40000, 5); + /* ITCM */ + stm32f4_add_flash(t, 0x0200000, 0x20000, 0x8000, 0); + stm32f4_add_flash(t, 0x0220000, 0x20000, 0x20000, 4); + stm32f4_add_flash(t, 0x0240000, 0xC0000, 0x40000, 5); + target_add_commands(t, stm32f4_cmd_list, "STM32F7"); + break; + case 0x451: /* F76x F77x RM0410 */ + t->driver = stm32f7_driver_str; + target_add_ram(t, 0x00000000, 0x4000); + target_add_ram(t, 0x20000000, 0x80000); + /* DTCM */ + stm32f4_add_flash(t, 0x8000000, 0x020000, 0x8000, 0); + stm32f4_add_flash(t, 0x8020000, 0x020000, 0x20000, 4); + stm32f4_add_flash(t, 0x8040000, 0x1C0000, 0x40000, 5); + /* ITCM */ + stm32f4_add_flash(t, 0x200000, 0x020000, 0x8000, 0); + stm32f4_add_flash(t, 0x220000, 0x020000, 0x20000, 4); + stm32f4_add_flash(t, 0x240000, 0x1C0000, 0x40000, 5); target_add_commands(t, stm32f4_cmd_list, "STM32F7"); break; default: