From 802000b0594857f5b8e84d2cfe8af9514457b9ce Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 16 Jun 2017 16:58:10 +0100 Subject: [PATCH] GCC_ARM VTOR fixed, doesnt fit in the bootloader region though.. --- .../TARGET_XDOT_L151CC/device/system_stm32l1xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_stm32l1xx.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_stm32l1xx.c index 9c47ec0101..2ad62cd9df 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_stm32l1xx.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/system_stm32l1xx.c @@ -212,8 +212,8 @@ void SystemInit (void) extern uint32_t Load$$LR$$LR_IROM1$$Base[]; #define FLASH_VTOR_BASE ((uint32_t)Load$$LR$$LR_IROM1$$Base) #elif defined(__GNUC__) - extern uint32_t vectors[]; - #define FLASH_VTOR_BASE ((uint32_t)vectors) + extern uint32_t g_pfnVectors[]; + #define FLASH_VTOR_BASE ((uint32_t)g_pfnVectors) #else #error "Flash vector address not set for this toolchain" #endif