ARM-software / CMSIS_5

CMSIS Version 5 Development Repository
http://arm-software.github.io/CMSIS_5/index.html
Apache License 2.0
1.33k stars 1.08k forks source link

cpsid and cpsie in core_a don't compile with aarch64 #1520

Open jianyoulu opened 2 years ago

jianyoulu commented 2 years ago

I am trying to use armclang to compile code with latest CMSIS core-a. My complier flags: -march=armv8-a --target=aarch64-arm-none-eabi -O2 -g.

However, I am getting the following errors in compiling and using __enable_irq() and __disable_irq() functions.

/core-a/include\cmsis_compiler.h:41: /core-a/include/cmsis_armclang.h:378:19: error: unrecognized instruction mnemonic __ASM volatile ("cpsie i" : : : "memory"); ^

:1:2: note: instantiated into assembly here cpsie i ^ In file included from /core-a/include\cmsis_compiler.h:41: ../../../Firmware/cmsis/core-a/include/cmsis_armclang.h:388:19: error: unrecognized instruction mnemonic __ASM volatile ("cpsid i" : : : "memory"); ^ :1:2: note: instantiated into assembly here cpsid i

Any suggestions?

JonatanAntoni commented 2 years ago

Please take note that CMSIS-Core(A) does not (yet) include support for AArch64.