mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
HAL_ChibiOS: fixed flash layout for F7
thanks to @alielectric
This commit is contained in:
parent
ae1a58ecb8
commit
721f3cd5d1
@ -97,12 +97,12 @@ static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(16), KB(16), KB(16
|
||||
|
||||
#elif defined(STM32F7)
|
||||
#if BOARD_FLASH_SIZE == 1024
|
||||
#define STM32_FLASH_NPAGES 5
|
||||
static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(32), KB(32), KB(32), KB(128), KB(256) };
|
||||
#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) };
|
||||
|
||||
#elif BOARD_FLASH_SIZE == 2048
|
||||
#define STM32_FLASH_NPAGES 9
|
||||
static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(32), KB(32), KB(32), KB(128), KB(256),
|
||||
#define STM32_FLASH_NPAGES 12
|
||||
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),
|
||||
KB(256), KB(256), KB(256), KB(256) };
|
||||
#else
|
||||
#error "BOARD_FLASH_SIZE invalid"
|
||||
|
Loading…
Reference in New Issue
Block a user