Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: C2000WARE
Hi,
I'm working with the CLA on a C2000 device and I ran into an assembler warning that I don't fully understand.
Project setup:
-
I started from the C2000Ware example
cla_ex7_shared_resource_handling. -
I removed (excluded from build) the original
.clasource file. -
I added my own CLA task file written in assembly (
.asm) instead. -
The project builds, links, and loads to the device fine, and the CLA code runs.
-
However, I get this warning during build:
[E0004] Cannot redefine existing opcode 'EALLOW' with .define. Assembler ignoring .define.
My questions:
-
What is causing this warning?
(It looks likeEALLOWis already defined as an opcode / instruction, and somewhere in the project or headers it's also being defined as a macro, but I'm not sure where that's coming from in the CLA context.) -
What's the correct / recommended fix?
-
Is there a recommended template for writing CLA tasks in pure assembly (
.asm) instead of using the provided.clafile format, so that I avoid conflicts like this?
Extra detail:
-
The warning only appeared after I swapped the
.clafile for my.asmfile. When I build the unmodified example (with the provided.clasource), I do not see the warning. -
Toolchain: [CCS 20.3 / C2000Ware 6.0.0.00 / ti-cgt-c2000_22.6.2.LTS]
-
Device: [F28P650DK]
I'd appreciate any guidance on the "right" way to structure CLA assembly source for this example so the assembler doesn't complain about EALLOW.
Here is the full project compressed:
cla_ex7_shared_resource_handling.zip
Thanks!