Other Parts Discussed in Thread: C2000WARE
Dear Expert,
I have previously developed an application on the F280049 that has CLA assembler processing. I tried to transfer the application to the new F280037, but run into problems in the assembler. The F280049 application was developed based on the C2000Ware example project cla_ex2_adc_fir32 that has a CLA assembler routine, with no problems. Therefore I tried to use a corresponding F28003x example, but the C2000Ware only has a C language example for the CLA. Therefore I tried two approaches:
- 1. changed all the headers and I/O driver routines in the the F280049 CLA asm example to the corresponding F28003x definitions. Still kept the original C2000Ware .asm routine just for testing.
- 2. Added to the a F29003x C language example my .asm routine.
Both times no success. The error messages are below. Some of them seem to suggest that the assembler deviates to the C compiler, too, so I thought that the .cdecls directive was somehow leaking, but when I removed it and used just some dummy code, the errors still remained. Both processors have the same CLA 2nd generation HW, so this is quite strange. Do you have any model CLA asm projects for theF28003x?
The C2000Ware is the version 4.03.00.00, the C compiler 22.6.0.LTS, and the Code Composer is version 12.
>> Compilation failure
subdir_rules.mk:16: recipe for target 'cla_ex2_fir32.obj' failed
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", WARNING! at line 402: [E0004] Cannot redefine existing opcode 'EALLOW' with .define. Assembler ignoring .define.
.define "__eallow()",EALLOW
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", WARNING! at line 403: [E0004] Cannot redefine existing opcode 'EDIS' with .define. Assembler ignoring .define.
.define "__edis()",EDIS
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22219: [E0800] Instructions not permitted in structure/union definitions
AR0 .bits 1 ; bit field, 1 bits, 0 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22220: [E0800] Instructions not permitted in structure/union definitions
AR1 .bits 1 ; bit field, 1 bits, 1 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22221: [E0800] Instructions not permitted in structure/union definitions
AR2 .bits 1 ; bit field, 1 bits, 2 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22222: [E0800] Instructions not permitted in structure/union definitions
AR3 .bits 1 ; bit field, 1 bits, 3 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22223: [E0800] Instructions not permitted in structure/union definitions
AR4 .bits 1 ; bit field, 1 bits, 4 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22224: [E0800] Instructions not permitted in structure/union definitions
AR5 .bits 1 ; bit field, 1 bits, 5 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22225: [E0800] Instructions not permitted in structure/union definitions
AR6 .bits 1 ; bit field, 1 bits, 6 bit offset
"C:\Users\JOUKOV~1\AppData\Local\Temp\{CAD5C508-E1CB-4D55-9F36-3D7D4BE23EA8}", ERROR! at line 22226: [E0800] Instructions not permitted in structure/union definitions
AR7 .bits 1 ; bit field, 1 bits, 7 bit offset
Errors in Source - Assembler Aborted
gmake: *** [cla_ex2_fir32.obj] Error 1