From e581be8df7aa4a5cb753821448c06b2982a427ba Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Feb 2019 08:52:29 +1100 Subject: [PATCH] HAL_ChibiOS: optionally disable DCache on H7 --- libraries/AP_HAL_ChibiOS/hwdef/common/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/board.c b/libraries/AP_HAL_ChibiOS/hwdef/common/board.c index 59d3404ce5..6d535e5921 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/board.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/board.c @@ -225,6 +225,9 @@ void __early_init(void) { stm32_gpio_init(); #endif stm32_clock_init(); +#if defined(HAL_DISABLE_DCACHE) + SCB_DisableDCache(); +#endif } void __late_init(void) {