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/TMS320F280049C: TMS320F280049C

Part Number: TMS320F280049C

Tool/software: Code Composer Studio

Dear All,

I configuring the CLA as following:

MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS7 = 0;//// CLA data in RAMLS7

MemCfgRegs.LSxMSEL.bit.MSEL_LS7 = 1;//Select CLA as the master of RAMLS7

and the CMD file set:

RAMLS7 : origin = 0x00B800, length = 0x000800

Cla1DataRam1 : > RAMLS7, PAGE = 1

I defined a struct in Cla1DataRam1:
#pragma DATA_SECTION(CLA_Epwm_gstv, "Cla1DataRam1");
CLA_Epwm CLA_Epwm_gstv;

then debug and connect to the target,the struct address at:0x0000BA34~0x0000BA5E@Data. I want initialize the struct, and the result is address at 0x0000BA34~0x0000BA3F can initialized, But else can not initialized. 0x0000BA40~0x0000BA5E write Uint32 number( not 0) but read return 0. the address not over RAMLS7. I don't know why like this. 

I hope a Daniel can help me solve this problem. Thanks!

  • E-yuan,

    Do I understand correctly:

    • Some of the structure is initialized correctly AND some of the structure is not initialized correctly

    Some suggestions to help resolve the issue:

    1) Can you provide more information on the structure and a screenshot what you see in the memory or expressions window. Stepping through the code, observe where values are being written vs what you expect. Is the right location being written to but with the wrong value?

    2) Read this FAQ - does it apply to your situation:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/795567

    3) If the structure is in memory only available to the CLA, then the CLA has to initialize it.

    4) Shared variables must be defined in the C28x code, not the CLA code.

    Refer to: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/795553

    5) Take a look at the workshop - specifically section 5 for tips and tricks. This video deals with some of the common issues users face when writing code for the CLA. It is a compilation, and investigation, of some of the most commonly asked questions on the forums and should help you get to working code quickly.

    https://training.ti.com/control-law-accelerator-cla-hands-workshop

    Click here for more CLA FAQs and resources.

    Regards

    Lori

  • Hi E-yuan,

    I haven’t heard from you for a week, so I hope this helped answer your question or you were able to resolve the issue.

    If the answer provided resolved your issue, click the green  "this resolved my issue" button.

    If the answer provided did not resolve your issue, or if your question needs further attention, click the "This did NOT resolve my issue" button and reply to this thread with more information.

    • If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.
    • If you have a new question, click the "Ask a new question" button.

    Regards,
    Lori