diff --git a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat index 72026e8417..f934a9de78 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/sparky2/hwdef.dat @@ -115,8 +115,6 @@ PB14 TIM1_CH2N TIM1 PWM(7) GPIO(35) define HAL_STORAGE_SIZE 15360 define STORAGE_FLASH_PAGE 1 -FLASH_SIZE_KB 1024 - # reserve 16k for bootloader and 32k for flash storage FLASH_RESERVE_START_KB 64 @@ -144,3 +142,6 @@ define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_SPARKY2 define STM32_PWM_USE_ADVANCED TRUE define BOARD_PWM_COUNT_DEFAULT 7 + +# we are low on flash on this board +define HAL_MINIMIZE_FEATURES 1