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.

How can I move the section to some other memory like DDR in *.cfg file?

Other Parts Discussed in Thread: TCI6638K2K

Hello.

I faced some problem to use heap memory.

Actually, I already asked to this TI community and I received replay that recommended to move the section to some other memory like DDR, SRAM in *.cfg file.

But I don't know how I can move the section to other memroy by modifing *.cfg file. Please tell me the way to move the section ot other memory.

The previous question is like below.

Please help me. Thank you.

--------------------------------------------------------------------------------------------------------------------------------------------

Hello. I got a problem and I hope to get some advice from TI community.

My device is TCI6638K2K and it has eight TMS320C66x DSP cores.

I am implementing some program and I already increased heap size as 16384 by modifing app.cfg files to use few thread.

And yesterday I added library file to my project and I faced problem that is memory lack related.

The compile error is like below.

How can I add library file without any compile errors.

Please help me.

Console---------------

... (omitted)

"configPkg/linker.cmd", line 136: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x15a9 .  Available memory ranges:
   L2SRAM       size: 0x100000     unused: 0x1238       max hole: 0x1200   
error #10010: errors encountered during linking; "asn_1_3rd_edsoed.out" not built

... (omitted)

Description---------------

Description Resource Path Location Type
#10010 errors encountered during linking; "asn_1_3rd_edsoed.out" not built asn_1_3rd_edsoed    C/C++ Problem
<a href="file:/D:/Program%20Files%20(x86)/ti/ccsv6/tools/compiler/dmed/HTML/10099.html">#10099-D</a>  program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x15a9 .  Available memory ranges: linker.cmd /asn_1_3rd_edsoed/Debug/configPkg line 136 C/C++ Problem

  • Hi,

    I've notified the SW team. Their feedback will be posted here.

    Best Regards,
    Yordan
  • Just like this in your *.cfg.

    Program.sectMap[".cinit"] = "DDR3";

    This will put .cinit section on memory named DDR3 in your platform.

    Regards,
    Naoki
  • Hi Gyeongho,

    Gyeongho said:
    configPkg/linker.cmd", line 136: error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".cinit" size 0x15a9 .  Available memory ranges:

      L2SRAM       size: 0x100000     unused: 0x1238       max hole: 0x1200    

    The memory is not available to fit your program. So, in the *.cfg file you can make modification to map the memory segments into other memories such as DDR/MSMCSRAM or you can try editing the length of the Device-memories.

    As Naoki said, you can use the other device memory for memory segments such as  .cinit/.const/.text/.code and try using it.

    When you would like to change the memory name, origin and length of "DDR" or "L2SRAM" or "MSMCSRAM",

    Go to Tools-->RTSC Tools --> Platform --> Edit / View --> select "C:\ti\bios_6_45_01_29\packages", select the

    appropriate package name and then, you wil get a platform edit screen like below: