mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
HAL_ChibiOS: fixed flash page count on H723
single bank H7 has 8 pages
This commit is contained in:
parent
4eaf5ef247
commit
967af533b9
@ -118,13 +118,14 @@ static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(32), KB(32), KB(32
|
||||
#else
|
||||
#error "BOARD_FLASH_SIZE invalid"
|
||||
#endif
|
||||
#elif defined(STM32H730xx) || defined(STM32H750xx) || defined(STM32H723xx)
|
||||
#elif defined(STM32H730xx) || defined(STM32H750xx)
|
||||
#define STM32_FLASH_NPAGES 1
|
||||
#define STM32_FLASH_NBANKS 1
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 128
|
||||
#elif defined(STM32H7)
|
||||
#define STM32_FLASH_NPAGES (BOARD_FLASH_SIZE / 128)
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 128
|
||||
#define STM32_FLASH_NBANKS (BOARD_FLASH_SIZE/1024)
|
||||
#elif defined(STM32F100_MCUCONF) || defined(STM32F103_MCUCONF)
|
||||
#define STM32_FLASH_NPAGES BOARD_FLASH_SIZE
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 1
|
||||
|
Loading…
Reference in New Issue
Block a user