Hi,
I'm in the process of migrating a 2407 all assembly language project to 2808. I've successfully gotten all the 2407 .asm files into my project and can build them with no errors or warnings. I've followed the directions in SPRU430e in appendix C and I'm using the -mw and -m20 options in CCS5 for the build as instructed.
The issue is now with new code that I would like to use that's written in C from a different 2808 project that I'm trying to incorporate. If I use the -m20 and -mw options when compiling this 2808 C code, get a whole bunch of warnings:
WARNING! at line 78: [E0011] Expecting C2XLP direct
WARNING! at line 83: [W0000] Constant parsed as an octal
I compile these same functions and specify build options for these files not using m20 and mw for the files, they compile without errors.
My question is, is it ok to create specific build options for the C files to prevent these warnings and will this affect my end resulting code when running in C27xLP compatibility mode? I've setup the first few lines of code for C2xLP compatibility mode as instructed in SPRU430e:
SETC OBJMODE ;C28OBJ = 1 enable 28x object mode
CLRC PAGE0 ;PAGE0 = 0 not relevant for 28x mode,
;cleared to zero
SETC AMODE ;AMODE = 1 enable C2xLP compatible
;addressing mode
SETC SXM ;SXM = 1 for C2xLP at reset, SXM = 0
;for 28x at reset
SETC C ;Carry bit =1 for C2xLP at reset,
;Carry bit = 0 for 28x at reset
SPM 0 ;Set product shift mode zero, that
is PM bits = 001 compatible to
;C2xLP PM reset;mode