diff --git a/arch/arm/src/stm32/stm32_vectors.S b/arch/arm/src/stm32/stm32_vectors.S index 6ecd92b74ce..b624e09c9fa 100644 --- a/arch/arm/src/stm32/stm32_vectors.S +++ b/arch/arm/src/stm32/stm32_vectors.S @@ -52,8 +52,6 @@ * arch/arm/src/armv7-m/up_vectors.S) */ -#ifndef CONFIG_ARMV7M_CMNVECTOR - /************************************************************************************ * Preprocessor Definitions ************************************************************************************/ @@ -77,12 +75,16 @@ * Global Symbols ************************************************************************************/ - .globl __start - .syntax unified .thumb .file "stm32_vectors.S" +/* Check if common ARMv7 interrupt vectoring is used (see arch/arm/src/armv7-m/up_vectors.S) */ + +#ifndef CONFIG_ARMV7M_CMNVECTOR + + globl __start + /************************************************************************************ * Macros ************************************************************************************/