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/GENERIC_STM32_F411XE | |
parent | f98a7e8ffecdf4904879d8d3c0cc3307aa6f9966 (diff) |
Fixup EFL and F4's sector selection. (#19221)
Diffstat (limited to 'platforms/chibios/boards/GENERIC_STM32_F411XE')
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_F411XE/configs/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platforms/chibios/boards/GENERIC_STM32_F411XE/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_F411XE/configs/config.h index e06ca0b725..9865311018 100644 --- a/platforms/chibios/boards/GENERIC_STM32_F411XE/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_F411XE/configs/config.h @@ -20,3 +20,13 @@ #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 |