diff --git a/mcux/mcux-sdk/devices/MCXN236/system_MCXN236.c b/mcux/mcux-sdk/devices/MCXN236/system_MCXN236.c index 11c0ff20f..1315cef98 100644 --- a/mcux/mcux-sdk/devices/MCXN236/system_MCXN236.c +++ b/mcux/mcux-sdk/devices/MCXN236/system_MCXN236.c @@ -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; diff --git a/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c b/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c index 9a52dd277..cdf2318fc 100644 --- a/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c +++ b/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c @@ -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; diff --git a/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core1.c b/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core1.c index ff9f3ae73..9af06585a 100644 --- a/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core1.c +++ b/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core1.c @@ -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;