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.

TMS320F280037: DSP CLA compile space issue

Part Number: TMS320F280037

Tool/software:

Hello, TI experts

I have met one tricky issue when enable CLA core, the CLA code obj file was very big(2-4k) even if there only have 1-2 hundred lines code. I was used CCS to compile this project, and try to use -O1 -O2 optimze flag, But it's helpless. 

I have found the RC about why met that issues.i.e. function call global parameters. 

dummy code:

float a=0;

void function(void)

{

    float b=0;

    b = a;  // This line will use 70-80B PRAM space

}

So do you know why it will use lots of PRAM memory  and how to fix it issue, .i.e. change compiler version, optimze level, code optimze? 

  • Hello,

    I believe this is happening because the CLA compiler does not support global variable initialization. Please take a look at the thread linked here for more explanation. It suggests other ways to share variables among CLA tasks. Also, keep in mind that nested function calls from a CLA task are not recommended as they could cause an overflow on the CLA's stack. I would recommend placing the function contents directly in your CLA task if possible, to avoid any issues.

    Best Regards,

    Delaney