This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: Build problem

Part Number: AM2634

I try to build the mcal library trough CCS. When I build the Project, I got following problems:

 [E0002]
         Illegal Cortex-M instruction/directive
	        cps      #0x1FU                   ; Switch to System mode
 
"../mcal/examples/Utils/CLANG/sys_intvecs.asm", ERROR!   at line 84:
 [E0002]
         Illegal Cortex-M instruction/directive
	        rfeia    sp!                      ; Return using RFE from System mode stack
 
 
Errors in Source - Assembler Aborted
tiarmclang: error: tiarmasm command failed with exit code 1 (use -v to see invocation)
gmake: *** [mcal/examples/Utils/CLANG/sys_intvecs.o] Error 1
Building file: "../mcal/examples/Utils/Os.c"
Invoking: Arm Compiler
"C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"C:/Users/User/MCAL_test1/mcal_test_comp" -I"C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/include" -I"C:/PROJECT/AM263_00.09.00/mcal" -I"C:/ti/ccs1120/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS" -gstrict-dwarf -gdwarf-3 -MMD -MP -MF"mcal/examples/Utils/Os.d_raw" -MT"mcal/examples/Utils/Os.o"   -o"mcal/examples/Utils/Os.o" "../mcal/examples/Utils/Os.c"
mcal/examples/Utils/subdir_rules.mk:9: recipe for target 'mcal/examples/Utils/Os.o' failed
../mcal/examples/Utils/Os.c:70:10: fatal error: 'Os.h' file not found
#include "Os.h"
         ^~~~~~
1 error generated.
gmake: *** [mcal/examples/Utils/Os.o] Error 1
Building file: "../mcal/examples/Utils/Dem.c"
Invoking: Arm Compiler

this is the my project setup

Why do I get assembler errors and how can I solve this?

Thanks in advance