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.

TMS320F28377S: How to copy sub function into ClaCpu.cla

Genius 3095 points

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

Dear team:

When I try to copy the subfunction to ClaCpu.cla, The compiler will report an error:

"../28377S_FLASH_lnk.cmd", line 109: fatal error #10295: output section "Cla1Prog" has both CLA and non-CLA sections; such mixing in the same output section is illegal; could not link section "Cla1Prog:Contorl.obj"

I have stated in the. C file that:

#pragma CODE_ SECTION(SEQ_ MCP3301_ DA7612, "Cla1Prog");

How should I set it up?

Best regards

  • Hi,

    If I understand your requirement, you have the CLA code loaded as a part of flash and want to copy it into one of the LS memories that is configured for CLA program memory during run time. You can use the memcpy function to do the same. Have you referred to the the c2000ware example 'cla_asin_cpu01' which does the same?

    Regards,
    Praveen