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.

Editing 28335_RAM_ink

Other Parts Discussed in Thread: CCSTUDIO, TMS320F28335

Hello,

I am working with the F280x Drive Library on a F28335 controller. There is a DataLog module called "4-Channel Data logging module" which I would like to use.

Right now I get the following compilation error:

>> warning: creating output section DLOG without SECTIONS specification

I found out that I have to specify an memory location for the module in the 28335_RAM_ink.cmd file. I did that exactly like in the example project but with a different starting address and memory area.

If I try to compile the file I get the following error messages:

[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
   DLOG_HO   : origin = 0x210000, lenght
>> C:\\tidcs\\c28\\DSP2833x\\v120\\DSP2833x_common\\cmd\\28335_RAM_lnk.cmd, line 115:   error:
               syntax error
>> C:\\tidcs\\c28\\DSP2833x\\v120\\DSP2833x_common\\cmd\\28335_RAM_lnk.cmd, line 115:   error:
               MEMORY specification ignored
>> C:\\tidcs\\c28\\DSP2833x\\v120\\DSP2833x_common\\cmd\\28335_RAM_lnk.cmd, line 115:   error:
               MEMORY specification ignored
>> C:\\tidcs\\c28\\DSP2833x\\v120\\DSP2833x_common\\cmd\\28335_RAM_lnk.cmd, line 115:   error:
               MEMORY specification ignored
>> C:\\tidcs\\c28\\DSP2833x\\v120\\DSP2833x_common\\cmd\\28335_RAM_lnk.cmd, line 115:   error:
               MEMORY specification ignored

Here is the code, I added to the *.cmd file:

MEMORY
{
.............. already written code..............
 
   DLOG_HO      : origin = 0x210000, lenght = 0x001000    // my line
 }

SECTIONS

{.............already written code..............  

    DLOG            : > DLOG_HO , PAGE = 1             // my line
}

 

Can anybody help me with the problem or are there any documents concerning this topic? Since I am new in this area of programming I don`t know exactly how to handle the *.cmd files and how they work.

 

I appreciate any help!

Thanks!

 

  • While this may not be the end answer, you do need to use "length" instead of "lenght" in the declaration of the memory.

    MEMORY
    {
    .............. already written code..............
     
       DLOG_HO      : origin = 0x210000, length = 0x001000    // my line
     }

  • Oh what a stupid mistake [:$] Thank you so much for the fast help.

    Are there any rules, where the memory location has to be? Or is there some kind of documentation, which describes how to write or adapt the existing *.cmd file? 

  • hello84 said:

    Are there any rules, where the memory location has to be?

    It is important to target a memory for the section DLOG that exists in the TMS320F28335 physical memory.  The memory section of the linker command file should be specifying what memory is physically available to the CPU to use.  The SECTIONS portion of the linker command file then indicates where to target sections of code and data to certain memory segments.

     

    hello84 said:

    Or is there some kind of documentation, which describes how to write or adapt the existing *.cmd file? 

    The documentation  for the structure of the linker command file can be found in the TMS320C28x Assembly Language Tools User's Guide (SPRU513) in the Linker chapter 7.