arm-none-eabi-gcc : __wfi __wfe not supported
hi , i am using arm-none-eabi-gcc to compile cortex-m0 device .
the cortex-m0 vendor doNOT support CMSIS-comparable file for me
when i add ISR " __wfi() " or "__wfe()" in the C file
the compile does not recognize the ISR, and report compile error
after reading the info at : http://
Q1: Do i need to implemented the __wfi() and __wfe to let arm-none-eabi-gcc to pass compiling the ISR when i am using a CMSIS-NOT_
Q2: if i have to Implemented the __wfi and __wfe,
if i use asm implemetation:
-------
LDR r0, =0xE000ED10; System Control Register address
LDR r1, [r0]
MOVS r2, #0x2
ORR r1, r2; Set SLEEPONEXIT bit
STR r1, [r0]
-------
chang to asm code:
__asm__(" LDR r0, =0xE000ED10; " )
__asm__ ("LDR r1, [r0]" )
arm-none-eabi-gcc report "r1 r0 cannot be found"
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Terry Guo Edit question
- Solved by:
- allen
- Solved:
- Last query:
- Last reply: