HAL_ChibiOS: support 512k F7 parts for flash

This commit is contained in:
Andrew Tridgell 2021-04-16 09:13:47 +10:00
parent 03cae60471
commit 22f7218acf
1 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,11 @@ static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(16), KB(16), KB(16
#endif
#elif defined(STM32F7)
#if BOARD_FLASH_SIZE == 1024
#if BOARD_FLASH_SIZE == 512
#define STM32_FLASH_NPAGES 8
static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(16), KB(16), KB(16), KB(16), KB(64), KB(128), KB(128), KB(128) };
#elif BOARD_FLASH_SIZE == 1024
#define STM32_FLASH_NPAGES 8
static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(32), KB(32), KB(32), KB(32), KB(128), KB(256), KB(256), KB(256) };