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.

TMS320F280039C: Are variables that set in CPU available in CLA?

Part Number: TMS320F280039C

Tool/software:

Hello.

Are variables that set in CPU available in CLA?

I declared PSFB_cntlMax/PSFB_cntlMin variables in CPU as below.

I want to use PSFB_cntlMax/PSFB_cntlMin variables in CLA. How can I use variables that declared in CPU in CLA?
  • Hi Sangmo,

    It depends where in memory the variables are allocated by the linker. What do you want to do with these variables? If you need the CPU to write to them and the CLA only to read from them, you can place them in CPU to CLA message RAM. If you want both the CPU and the CLA to have read+write access, place them in shared memory (LSRAM 0-7 on F28003x) and they will follow the arbitration scheme in the Memory Controller Module section of the System Control and Interrupts chapter of the device TRM (linked here).

    Please see section 4.5. How is data shared between the CLA and C28x? in the CLA Software Development Guide (linked here) for more information as well.

    Best Regards,

    Delaney

  • Hi Delaney.

    I wanted to use the variable x that changes in CPU in CLA.

    It can be used by using #DATA_SECTION(x,"CpuToCla1MsgRam") .

    Thank you for your help.

    Best Regards,

    Sangmo Kim.

  • Hi Sangmo,

    Yes, that would be the right approach then. I will close this thread for now but feel free to create a new one if you have any more questions.

    Best Regards,

    Delaney