diff --git a/libraries/AP_HAL_ChibiOS/Storage.h b/libraries/AP_HAL_ChibiOS/Storage.h index 54577f67ef..beccd623b1 100644 --- a/libraries/AP_HAL_ChibiOS/Storage.h +++ b/libraries/AP_HAL_ChibiOS/Storage.h @@ -30,7 +30,11 @@ // when using flash storage we use a small line size to make storage // compact and minimise the number of erase cycles needed #ifdef STORAGE_FLASH_PAGE +#if defined(STM32H7XX) +#define CH_STORAGE_LINE_SHIFT 4 +#else #define CH_STORAGE_LINE_SHIFT 3 +#endif #elif defined(USE_POSIX) && !defined(HAL_WITH_RAMTRON) #define CH_STORAGE_LINE_SHIFT 9 #else