GCC_ARM VTOR fixed, doesnt fit in the bootloader region though..

pull/4640/head
Chris 2017-06-16 16:58:10 +01:00
parent 0ff055115a
commit 802000b059
1 changed files with 2 additions and 2 deletions

View File

@ -212,8 +212,8 @@ void SystemInit (void)
extern uint32_t Load$$LR$$LR_IROM1$$Base[]; extern uint32_t Load$$LR$$LR_IROM1$$Base[];
#define FLASH_VTOR_BASE ((uint32_t)Load$$LR$$LR_IROM1$$Base) #define FLASH_VTOR_BASE ((uint32_t)Load$$LR$$LR_IROM1$$Base)
#elif defined(__GNUC__) #elif defined(__GNUC__)
extern uint32_t vectors[]; extern uint32_t g_pfnVectors[];
#define FLASH_VTOR_BASE ((uint32_t)vectors) #define FLASH_VTOR_BASE ((uint32_t)g_pfnVectors)
#else #else
#error "Flash vector address not set for this toolchain" #error "Flash vector address not set for this toolchain"
#endif #endif