stm32f4.c: F76x also has large sector by default.
This commit is contained in:
parent
d4d24c256c
commit
50514ccc31
|
@ -271,6 +271,7 @@ static bool stm32f4_attach(target *t)
|
||||||
case ID_STM32F76X: /* F76x F77x RM0410 */
|
case ID_STM32F76X: /* F76x F77x RM0410 */
|
||||||
is_f7 = true;
|
is_f7 = true;
|
||||||
dual_bank = true;
|
dual_bank = true;
|
||||||
|
large_sectors = true;
|
||||||
flashsize_base = F7_FLASHSIZE;
|
flashsize_base = F7_FLASHSIZE;
|
||||||
break;
|
break;
|
||||||
case ID_STM32F72X: /* F72x F73x RM0431 */
|
case ID_STM32F72X: /* F72x F73x RM0431 */
|
||||||
|
@ -310,7 +311,7 @@ static bool stm32f4_attach(target *t)
|
||||||
int split = 0;
|
int split = 0;
|
||||||
uint32_t banksize;
|
uint32_t banksize;
|
||||||
if (use_dual_bank) {
|
if (use_dual_bank) {
|
||||||
banksize = flashsize << 9; /* flas split on two sectors. */
|
banksize = flashsize << 9; /* flash split on two sectors. */
|
||||||
split = (flashsize == 0x400) ? 8 : 12;
|
split = (flashsize == 0x400) ? 8 : 12;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue