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/TMS320C6657: CCS

Part Number: TMS320C6657

Tool/software: Code Composer Studio

Hi,

I have a code base that was built on CCS5.3 (Compiler:7.4.0). Now I wanted to migrate it to CCS7.2 (Compiler:8.1.3). When I try to build in CCS7.2, I get error saying cannot fit into memory. So I need to relocated some sections of my library and .text to DDR3 from L2SRAM in my lnk.cmd. All other settings are unchanged. Can some one please tell me why the .out files sizes differs and need to change lnk.cmd with the same code base??

Exact CCS Console:

error #10099-D: program
will not fit into available memory. run placement with alignment fails for
section "dpTemporaryWorkMemory_L2" size 0x1000 . Available memory ranges:
L2SRAM size: 0xecf00 unused: 0x7d max hole: 0x60

I dont want to change my lnk.cmd?? Is there a way to achieve that with CCS7.2 and Compiler:8.1.3.

Thanks

Pradeep

  • It is unclear what has increased memory usage more: data or code.  If you have trouble working that out by comparing the map files, then use the utility sectti from the cg_xml package.  

    If the increase is due to code, then please use the method in this article to find the functions which increased code size the most.  That narrows the focus, and likely makes it easier to work out what changed.

    Thanks and regards,

    -George

  • Hi George,
    Sorry for the late response.
    I used ofd6x tool to generate functions size details. I found some of the functions (even though the code is all same), the CCS5.3(Compiler:7.4.0) and CCS7.2 (Compiler:8.1.3) show different sizes. Why is that So?? Now it is clear that because of this the some sections in lnk.cmd are required to be changed to get the code built in CCS7.
    Regards,
    Pradeep
  • pradeep sabarinadh said:
    I found some of the functions (even though the code is all same), the CCS5.3(Compiler:7.4.0) and CCS7.2 (Compiler:8.1.3) show different sizes. Why is that So??

    Between different compiler versions, bugs are fixed and optimizations are implemented.  These changes cause the generated code to be different.

    Thanks and regards,

    -George

  • Hi,
    I used CC7.2 with Compiler 7.4.1 (which comes with CCS5.3) to build my code without lnk.cmd sections change. But failed with same message. Now, Can I use such a combination for build. It is that Compiler and CCS version also attribute to code size change?? Our code has become unstable when built on CCS7 with compiler 8.1.3. But same code works fine on CCS5 and compiler 7.4.1.
    This is cause of concern as we want to use latest TI tools which are obviously fine tuned and less bug free.
    Regards,
    Pradeep
  • To reduce code size, please try changing how you use the options --opt_level and --opt_for_speed.  You ought try using higher values for --opt_level, and lower values for --opt_for_speed.  Please read more about these options in the C6000 compiler manual.

    Thanks and regards,

    -George