mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
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:
committed by
Damien George
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
|
||||
|
||||
Reference in New Issue
Block a user