stm32/flash: Change Flash sector size for STM32H7A3.
STM32H7A3 has 2MB internal flash and each sector size is 8KB. Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
This commit is contained in:
parent
3808ccd522
commit
842657a0b8
@ -159,8 +159,13 @@ static const flash_layout_t flash_layout[] = {
|
||||
|
||||
#define FLASH_LAYOUT_IS_HOMOGENEOUS (1)
|
||||
#define FLASH_LAYOUT_START_ADDR (FLASH_BASE)
|
||||
#if defined(STM32H7A3xx) || defined(STM32H7A3xxQ)
|
||||
#define FLASH_LAYOUT_SECTOR_SIZE (0x2000)
|
||||
#define FLASH_LAYOUT_NUM_SECTORS (256)
|
||||
#else
|
||||
#define FLASH_LAYOUT_SECTOR_SIZE (0x20000)
|
||||
#define FLASH_LAYOUT_NUM_SECTORS (16)
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error Unsupported processor
|
||||
|
||||
Loading…
Reference in New Issue
Block a user