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