diff options
author | badlyby <badlyby@gmail.com> | 2019-07-19 08:52:48 +0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-07-25 16:31:12 +1000 |
commit | 0da2f6f23a8316f6810c47b2d8410bf11029f2a1 (patch) | |
tree | 0d32728b88b28abf2179776feacc18033cb1009f /ports/stm32/flash.c | |
parent | 4d94fae83322dd1b4197fd770fa9d0b7474ce72b (diff) |
stm32/flashbdev: Support internal filesystem on STM32F722/23/32/33.
Diffstat (limited to 'ports/stm32/flash.c')
-rw-r--r-- | ports/stm32/flash.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/stm32/flash.c b/ports/stm32/flash.c index 58cc01279..49cbbe06a 100644 --- a/ports/stm32/flash.c +++ b/ports/stm32/flash.c @@ -62,11 +62,19 @@ static const flash_layout_t flash_layout[] = { // FLASH_FLAG_ERSERR (Erasing Sequence Error) in STM32F7 #define FLASH_FLAG_PGSERR FLASH_FLAG_ERSERR +#if defined(STM32F722xx) || defined(STM32F723xx) || defined(STM32F732xx) || defined(STM32F733xx) +static const flash_layout_t flash_layout[] = { + { 0x08000000, 0x04000, 4 }, + { 0x08010000, 0x10000, 1 }, + { 0x08020000, 0x20000, 3 }, +}; +#else static const flash_layout_t flash_layout[] = { { 0x08000000, 0x08000, 4 }, { 0x08020000, 0x20000, 1 }, { 0x08040000, 0x40000, 3 }, }; +#endif #elif defined(STM32L0) || defined(STM32L4) || defined(STM32WB) |