From ddb44864aafe8db67a170fbebd90f0120ed6adbd Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Tue, 5 Dec 2023 09:48:53 +1100 Subject: [PATCH] AP_HAL_ChibiOS: disable core m4 use to silence the chibios asserts checking allocation of peripherals --- libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat index 625b74edc61f6..9923db6a05f33 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat @@ -45,6 +45,11 @@ define HAL_IMU_TEMP_MARGIN_LOW_DEFAULT 5 CANFD_SUPPORTED 8 STM32_ST_USE_TIMER 12 + +# disable core m4 use to silence the asserts +# checking allocation of peripherals +define STM32_HAS_M4 0 + define CH_CFG_ST_RESOLUTION 16 # use last 2 pages for flash storage