diff options
author | Nick Brassel <nick@tzarc.org> | 2022-12-02 21:55:28 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 21:55:28 +1100 |
commit | cf3c26533cadf4e6739dbc9117caad01df2fa5e3 (patch) | |
tree | 8bd4f7151edcc67e0bba16f1fcdbf83cbaf172b6 /platforms/chibios/boards/BLACKPILL_STM32_F401/configs | |
parent | f98a7e8ffecdf4904879d8d3c0cc3307aa6f9966 (diff) |
Fixup EFL and F4's sector selection. (#19221)
Diffstat (limited to 'platforms/chibios/boards/BLACKPILL_STM32_F401/configs')
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h b/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h index e181422eba..6d132ea6f3 100644 --- a/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h +++ b/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h @@ -19,12 +19,22 @@ #ifndef STM32_LSECLK # define STM32_LSECLK 32768U -#endif // STM32_LSECLK +#endif // STM32_LSECLK #ifndef STM32_HSECLK # define STM32_HSECLK 25000000U -#endif // STM32_HSECLK +#endif // STM32_HSECLK #ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP # define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE #endif + +#ifdef WEAR_LEVELING_EMBEDDED_FLASH +# ifndef WEAR_LEVELING_EFL_FIRST_SECTOR +# ifdef BOOTLOADER_TINYUF2 +# define WEAR_LEVELING_EFL_FIRST_SECTOR 3 +# else +# define WEAR_LEVELING_EFL_FIRST_SECTOR 1 +# endif +# endif +#endif |