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.

CCS/TMS320F28377D: How to reference peripheral registers from CLA program

Part Number: TMS320F28377D
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

I'm trying to use the CLA for the first time and am having trouble figuring out how to reference other peripheral registers from my .cla code. For example, I want to write to a DAC register in the Compare Subsystem with the following code:

interrupt void ozAfeClaTask1 ( void )
{

Cmpss1Regs.DACHVALS.bit.DACVAL = 0x0800;

}/*-------------------------- End ozAfeClaTask1 () --------------------------*/

When I compile my project, I get the following error: "#20 identifier "Cmpss1Regs" is undefined". This makes sense because in my .cla file I haven't include any references to headers that would define these device registers. In my main CPU1 project files, I would just include "#include "F2837xD_device.h" at the top of the .c file and I'd have access to all of the various peripheral registers. When I add this include to my .cla file, I get errors:

#838: unrecognized cregister name 'IFR'

#838: unrecognized cregister name 'IER'

These are references in the device.h file, which I'm assuming is not meant to be used for CLA code. Is there an equivalent header for CLA programs?

I've tried looking through the example projects in controlSUITE for an example but all of the C-based CLA examples are just generic C code - I haven't found an example that is accessing any of the other peripheral registers. I did fine one example assembly-based CLA project (fir32.asm) that accesses "AdcaResultRegs.ADCRESULT0", but haven't figured out where it is getting the reference to 'AdcaResultsRegs'.

Any suggestions?