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.

  • Resolved

[FAQ] CLA: How is data shared between the CLA and the C28x?

Guru 68700 points

Replies: 1

Views: 646

CLA: How is data shared between the CLA and the C28x?

Lori Heustess
C2000 Software Engineering

  • A:

    The examples in C2000Ware share data between the C28x and the CLA.  This is done through RAM blocks that both of the CPUs can directly access.

    Since the CLA and the C28x code are in the same project this is very easy using these steps.

    • Create a shared header file with common constants and variables. Include this file in both the C28x C and CLA .asm code.
    • Use data section pragma statements and the linker file to place the variables in the appropriate message RAM.
    • Define shared variables in your C code.  C28x and CLA shared global variables must be defined in the C28x .c code, and not the CLA code. The way data pages work on each device does not match.  It is more constrained on the C28x side.  Thus, data defined on the C28x side can be accessed on the CLA side, but not the other way around.
    • Initialize variables in the CPU to CLA message RAM with the main CPU.
    • Initialize variables in the CLA to CPU message RAM with a CLA task. This initialization task can be started via the main C28x software.

    Also refer to:

    Click here for more CLA FAQs and resources.

    Lori Heustess
    C2000 Software Engineering

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.