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.

CCSv3.3 Linker RamL1 issue

Hi all,

I ran into problem when I'm compiling my code and I'm suspecting is some sort of exceed RAM size issue.

Here's the error code I've got:

<Linking>
"C:\\tidcs\\c28\\DSP2834x\\v110\\DSP2834x_common\\cmd\\28346_RAM_lnk.cmd", line 119: error:
   placement fails for object ".text", size 0x2011 (page 0).  Available ranges:
   RAML1        size: 0x2000       unused: 0x2000       max hole: 0x2000

Anyone can point me to where to study to solve this issue? I've been trying to reduce my code to get it within 0x2000, but that's just not possible.

 

With Regards

Lee

  • Shen Lee Na said:

    I ran into problem when I'm compiling my code and I'm suspecting is some sort of exceed RAM size issue.

    Here's the error code I've got:

    <Linking>
    "C:\\tidcs\\c28\\DSP2834x\\v110\\DSP2834x_common\\cmd\\28346_RAM_lnk.cmd", line 119: error:
       placement fails for object ".text", size 0x2011 (page 0).  Available ranges:
       RAML1        size: 0x2000       unused: 0x2000       max hole: 0x2000

    Anyone can point me to where to study to solve this issue? I've been trying to reduce my code to get it within 0x2000, but that's just not possible.

    Lee,

    The linker command file (.cmd) specifies how memory will be allocated for the project.  You can try modifying the .cmd file to allow for a larger .text section.  The linker command file is documented in the assembly ref guide www.ti.com/lit/spru513.  For example, you can try combining contiguous RAM blocks to make a larger block for code.

    Also see this wiki page for other codegen tips/tricks

    http://processors.wiki.ti.com/index.php/C28x_Code_Generation_Tips_and_Tricks

    Cheers

    Lori

     Edit: LH - fixed typo .ebss -> .text

     

  • Lori Heustess said:
    You can try modifying the .cmd file to allow for a larger .ebss section. 

    That should say a larger .text section

    -Lori

  • Hi Lori,

    Thanks for the suggestion, in fact I did that as a temporary measure before I can find a proper solution.

    Guess I was lucky in hitting the right spot. However, the document is exactly what I need to read.

     

    Thank you very much and regards

    Lee