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.

TMS320F28388D: how to add CLA using the sysconfig

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Tool/software:

Hello,

I try to use CLA to do something simple such as turning the LEDs ON.

but I Want to do it from a project thatdoes not have the CLA already defined.

so I took the epwm_ex11_configure_signal example project from the C2000 example projects.

I go to the sysconfig and add the CLA. 

I also add the .cla file and put the 8 Cla1_tasks in it.

in the sysconfig I go to the MEMCFG option and in the RAM initialization I check the "CPU to CLA message RAM" and the "CLA to CPU message RAM"

after that I go to LSRAM configuration and in LS0 RAM and LS1 RAM I select "CPU/CLA shared data memory" and in LS5 RAM I select "CLA program memory"

when I compile the program I still have errors that 

Cla1ConstLoadSize 

Cla1ConstLoadStart

Cla1ConstRunStart 

Cla1funcsLoadSize 

Cla1funcsLoadStart 

Cla1funcsRunStart

are not defined.

what is the correct way to define them?

thanks

  • Hi Yair,

    These are defined inside the linker cmd file for your project. You will need one of the provided linker files that has "cla" in the name, meaning it allocates memory for the CLA and includes these variables. All the linker cmd files provided by C2000ware can be found in [C2000ware install]/device_support/f2838x/common/cmd/. I would suggest starting with 2838x_RAM_CLA_lnk_cpu1.cmd or 2838x_FLASH_CLA_lnk_cpu1.cmd. You should also modify where the CLA memory elements are allocated based on your Sysconfig MEMCFG choices - Put Cla1Prog in LS5 and other CLA elements in LS0 or LS1. Let me know if you have any additional questions.

    Best Regards,

    Delaney