src/target/stm32f4.c: Remove missleading DTCM comment.
Use different command string for F74x and F76x.
This commit is contained in:
parent
dc1c7611a9
commit
2216587b39
|
@ -188,7 +188,7 @@ bool stm32f4_probe(target *t)
|
|||
stm32f4_add_flash(t, 0x8020000, 0x160000, 0x20000, 5);
|
||||
target_add_commands(t, stm32f4_cmd_list, "STM32F413");
|
||||
break;
|
||||
case 0x449: /* F7x6 RM0385 Rev.2 */
|
||||
case 0x449: /* F74x RM0385 Rev.4 */
|
||||
t->driver = stm32f7_driver_str;
|
||||
target_add_ram(t, 0x00000000, 0x4000);
|
||||
target_add_ram(t, 0x20000000, 0x50000);
|
||||
|
@ -196,11 +196,11 @@ bool stm32f4_probe(target *t)
|
|||
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 */
|
||||
/* Flash aliased as 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");
|
||||
target_add_commands(t, stm32f4_cmd_list, "STM32F4x");
|
||||
break;
|
||||
case 0x451: /* F76x F77x RM0410 */
|
||||
t->driver = stm32f7_driver_str;
|
||||
|
@ -210,11 +210,11 @@ bool stm32f4_probe(target *t)
|
|||
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 */
|
||||
/* Flash aliased as 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");
|
||||
target_add_commands(t, stm32f4_cmd_list, "STM32F76x");
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -287,9 +287,11 @@ bool stm32l0_probe(target* t)
|
|||
case 0x447: /* STM32L0xx Cat5 */
|
||||
t->idcode = idcode;
|
||||
t->driver = "STM32L0x";
|
||||
target_add_ram(t, 0x20000000, 0x2000);
|
||||
target_add_ram(t, 0x20000000, 0x5000);
|
||||
stm32l_add_flash(t, 0x8000000, 0x10000, 0x80);
|
||||
stm32l_add_eeprom(t, 0x8080000, 0x800);
|
||||
stm32l_add_flash(t, 0x8010000, 0x10000, 0x80);
|
||||
stm32l_add_flash(t, 0x8020000, 0x10000, 0x80);
|
||||
stm32l_add_eeprom(t, 0x8080000, 0x1800);
|
||||
target_add_commands(t, stm32lx_cmd_list, "STM32L0x");
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue