cotex-m3 complier error

20 Jun 2017

Compiler is arm-none-eabi-gcc (gcc version 5.4.1 20160919(release))

Makefile config:

COMMONFLAGS=-g -mcpu=cortex-m3 -mthumb COMMONFLAGS+=-D CPU_TYPE=THUMB2 COMMONFLAGSlib=$(COMMONFLAGS)

-------<case1>-------- souce code: ORR a1,a1,#LOCKOUT BIC a1,a1,#LOCK_MSK clear lockout mask

error info: os_asm.s:320: Error: undefined symbol LOCKOUT used as an immediate value os_asm.s:321: Error: undefined symbol LOCK_MSK used as an immediate value

-------<case2>--------- souce code: MRS a1,CPSR

error info: g`"os_asm.s:312: Error: selected processor does not support requested special purpose register `mrs a1,CPSR'

-------<case3>--------- souce code: LDR a2,Int_Level pickup address of interrupt lockout

error info: os_asm.s: Assembler messages: os_asm.s:310: Error: cannot represent T32_OFFSET_IMM relocation in this object file format

so, is there any body tell me how to deal with this problem?

Thanks very much!!