Skip to content

Commit

Permalink
devices: MCXNxxx: Update system file to remove SDK sepecific defines
Browse files Browse the repository at this point in the history
__Vectors is not defined in non-SDK projects such as Zephyr which like
to call SystemInit function. This causes build failures as a result.

Signed-off-by: Neil Chen <[email protected]>
  • Loading branch information
NeilChen93 committed Aug 5, 2024
1 parent 9f9de73 commit 4f63201
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
8 changes: 0 additions & 8 deletions mcux/mcux-sdk/devices/MCXN236/system_MCXN236.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ __attribute__ ((weak)) void SystemInit (void) {

SYSCON->NVM_CTRL &= ~SYSCON_NVM_CTRL_DIS_MBECC_ERR_DATA_MASK; /* enables bus error on multi-bit ECC error for data */

#if defined(__MCUXPRESSO)
extern void(*const g_pfnVectors[]) (void);
SCB->VTOR = (uint32_t) &g_pfnVectors;
#else
extern void *__Vectors;
SCB->VTOR = (uint32_t) &__Vectors;
#endif

/* enable the flash cache LPCAC */
SYSCON->LPCAC_CTRL &= ~SYSCON_LPCAC_CTRL_DIS_LPCAC_MASK;

Expand Down
7 changes: 0 additions & 7 deletions mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ __attribute__ ((weak)) void SystemInit (void) {

SYSCON->NVM_CTRL &= ~SYSCON_NVM_CTRL_DIS_MBECC_ERR_DATA_MASK; /* enables bus error on multi-bit ECC error for data */

#if defined(__MCUXPRESSO)
extern void(*const g_pfnVectors[]) (void);
SCB->VTOR = (uint32_t) &g_pfnVectors;
#else
extern void *__Vectors;
SCB->VTOR = (uint32_t) &__Vectors;
#endif
/* enable the flash cache LPCAC */
SYSCON->LPCAC_CTRL &= ~SYSCON_LPCAC_CTRL_DIS_LPCAC_MASK;

Expand Down
7 changes: 0 additions & 7 deletions mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core1.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ __attribute__ ((weak)) void SystemInit (void) {

SYSCON->NVM_CTRL &= ~SYSCON_NVM_CTRL_DIS_MBECC_ERR_DATA_MASK; /* enables bus error on multi-bit ECC error for data */

#if defined(__MCUXPRESSO)
extern void(*const g_pfnVectors[]) (void);
SCB->VTOR = (uint32_t) &g_pfnVectors;
#else
extern void *__Vectors;
SCB->VTOR = (uint32_t) &__Vectors;
#endif
/* enable the flash cache LPCAC */
SYSCON->LPCAC_CTRL &= ~SYSCON_LPCAC_CTRL_DIS_LPCAC_MASK;

Expand Down

0 comments on commit 4f63201

Please sign in to comment.