Skip to content

Commit 61812ff

Browse files
committed
mimxrt1050: fix vector table for flash driver (cmsis conflict)
1 parent 1ece2ed commit 61812ff

File tree

1 file changed

+7
-0
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK

1 file changed

+7
-0
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK/device.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040

4141
#define BOARD_ENET_PHY_ADDR (2)
4242

43+
/* cmsis gcc defines this to be __Vectors. This causes a problem for this device as
44+
its drivers uses __VECTOR_TABLE symbol from a linker. To avoid conflicts, we just undefine
45+
this and use linker symbol as expected */
46+
#ifdef __VECTOR_TABLE
47+
#undef __VECTOR_TABLE
48+
#endif
49+
4350
#include "objects.h"
4451

4552
#endif

0 commit comments

Comments
 (0)