Skip to content

Commit 0988e5d

Browse files
authored
Merge pull request #13064 from 0xc0170/fix_nxp_vector
nxp: fix vector redefinition from CMSIS
2 parents 0a365b3 + 41995a7 commit 0988e5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/fsl_common.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
*/
3030

3131
#include "fsl_common.h"
32+
33+
/* At least CMSIS 5.7 introduced vector table and define this GCC linker symbol to
34+
__Vectors - not valid for many NXP MCU. To fix this, we undefine it if already defined
35+
as it comes from a linker */
36+
#undef __VECTOR_TABLE
37+
3238
void InstallIRQHandler(IRQn_Type irq, uint32_t irqHandler)
3339
{
3440
/* Addresses for VECTOR_TABLE and VECTOR_RAM come from the linker file */

0 commit comments

Comments
 (0)