diff --git a/cpu/cortexm_common/cortexm_init.c b/cpu/cortexm_common/cortexm_init.c index 12bc3bcedcc6f2d35ec2395fba91b28976246cea..8beebaea28d102972536e5694aa1db48dfe80e22 100644 --- a/cpu/cortexm_common/cortexm_init.c +++ b/cpu/cortexm_common/cortexm_init.c @@ -41,7 +41,8 @@ void cortexm_init(void) /* configure the vector table location to internal flash */ #if defined(CPU_ARCH_CORTEX_M3) || defined(CPU_ARCH_CORTEX_M4) || \ - defined(CPU_ARCH_CORTEX_M4F) || defined(CPU_ARCH_CORTEX_M7) + defined(CPU_ARCH_CORTEX_M4F) || defined(CPU_ARCH_CORTEX_M7) || \ + (defined(CPU_ARCH_CORTEX_M0PLUS) && (__VTOR_PRESENT == 1)) SCB->VTOR = (uint32_t)&_isr_vectors; #endif