From a85b888a9ab391ecd7da904cad8ab895137de053 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Oct 2024 07:14:30 +1100 Subject: [PATCH] f415: fixed vector table address for DroneCAN --- Mcu/f415/Src/system_at32f415.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Mcu/f415/Src/system_at32f415.c b/Mcu/f415/Src/system_at32f415.c index 7e24f46b..7898c7c8 100644 --- a/Mcu/f415/Src/system_at32f415.c +++ b/Mcu/f415/Src/system_at32f415.c @@ -39,9 +39,12 @@ /** @addtogroup AT32F415_system_private_defines * @{ */ -#define VECT_TAB_OFFSET \ - 0x1000 /*!< vector table base offset field. this value must be a multiple \ - of 0x200. */ +/*!< vector table base offset field. this value must be a multiple of 0x200. */ +#if DRONECAN_SUPPORT +#define VECT_TAB_OFFSET 0x4000 +#else +#define VECT_TAB_OFFSET 0x1000 +#endif /** * @} */