F-12875: stm32f7 fix non-dual-bank sector 11 start address

Sector 11 was at 0x818C000, inside sector 10's 256 KB range
(0x8180000-0x81C0000), so hal_flash_erase mapped the upper part of
sector 10 to sector 11 and erased the wrong sector. Sector 11 is
0x81C0000, contiguous after sector 10 and ending at FLASH_TOP.
pull/883/head
Daniele Lacamera 2026-09-07 14:43:15 +02:00
parent 22356e6d02
commit 9475169bdc
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void fork_bootloader(void);
# define FLASH_SECTOR_8 0x8100000 /* 256 Kb */
# define FLASH_SECTOR_9 0x8140000 /* 256 Kb */
# define FLASH_SECTOR_10 0x8180000 /* 256 Kb */
# define FLASH_SECTOR_11 0x818C000 /* 256 Kb */
# define FLASH_SECTOR_11 0x81C0000 /* 256 Kb */
#endif
# define FLASH_TOP 0x8200000