From fd981dff22ec49320c96aa15c53f304ce6b63a64 Mon Sep 17 00:00:00 2001 From: Hauke Petersen <hauke.petersen@fu-berlin.de> Date: Fri, 2 Jun 2017 11:53:59 +0200 Subject: [PATCH] cpu/cortexm: set VTOR for selected M0+ CPUs --- cpu/cortexm_common/cortexm_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/cortexm_common/cortexm_init.c b/cpu/cortexm_common/cortexm_init.c index 12bc3bcedc..8beebaea28 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 -- GitLab