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.
Tool/software: Code Composer Studio
I am seeing this error, when I tried building code after modifying, can anyone help me with this?
Hi Hridya,
Did you use an existing example from C2000Ware or did you make any changes?
Can you try not using the RAMM0 and RAMD0 for .text section?
Thanks, Katta
Existing example modified for my use, the main c file was modified.
I am not sure how to disable the use of RAMM0 and RAMD0. Can you pls help? and what does that error exactly mean?
Hi Hridya,
Instead of
.text : >> RAMD0 | RAMD1 | RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4
try
.text : >> RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4
Also refer http://processors.wiki.ti.com/index.php/C28x_Compiler_-_Understanding_Linking
Thanks,
Katta
Hi,
The data section allocation happens from the left-hand side. So, I thought to try with removing the lower sized RAM sections.
Anyways by default, the data section gets created into a single section. The allocation to RAMs did not occur as a single section of ~0x1a19 is not available.
You can try combining the RAM sections or try using the option --gen_data_subsections and --gen_func_subsections as mentioned in the compiler user guide section 4.2 Linker Code Optimizations
Thanks, Katta
I am using sin and cos functions and math.h header file.
Not using lookup table for sine and cos. Is that the issue?
Hi Hridya,
Ok. Could you please try the other suggestion to enable the options --gen_data_subsections and --gen_func_subsections
Open your CCS project properties window. Navigate to Build-> C2000 Compiler -> Advanced Options -> Runtime Model options.
Mark both of the "--gen_data_subsections and --gen_func_subsections" as "on".
Please let me know if the issue gets resolved.
Thanks, Katta
Hi Katta,
With this modification, it is building now. Thanks for the help.
I would like to know whether my DSP is operating in its limits of memory usage. Is there an option to check that?
Hi Hridya,
Do you mean to check if the whole stack is used or not?
There is no direct option. But you can fill the stack with some known pattern like 0xABCD before the program start and check till where the stack got filled.
Thanks, Katta