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.

Linker Errors

Other Parts Discussed in Thread: CCSTUDIO

Hi all,

I am working on a project in which in the .cmd (linker) file i have made different sections.

some of these sections were referred from a library file which is included in the project.

one of those sections line is given for example below.

line 59:            .text    :{library_file(.text)}     >> SARAM1|DARAM0|DARAM1|SARAM0|EXT0  PAGE 0

and have different sections which are from the library files which are giving same warnings.

can some one help me in debugging this warning and the error.

 

I am attaching the compiler warnings and errors below for your reference.

Regards,

Dinesh Davuluru

Signalogic

 

[Linking...] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -@"Debug.lkf"
<Linking>
line 59: warning:
   no matching section

line 72: error:
   placement fails for object ".const", size 0x27ee2 (page 0).  Available
   ranges:
   SARAM1       size: 0x20000      unused: 0xc7bb       max hole: 0xc7bb   
error: section ".const" (0x0) spans page boundary: not allowed before CPU
   revision 3.0

  • Please look at lines 59 and 72 in your linker cmd file.

    Is "library_file" the correct symbol to be written there or was that an example used elsewhere?

    The size required for .const is quite large, so perhaps it should be defined to be placed in another memory region than SARAM1.

  • Library_file was an example name i used instead of the original lib file as it was an external library file.

    Actually the program worked in V3.1 of CCS but it was giving me this errors in V3.3.

    The compiler was actually unable to find the library file so I tried by giving the route of it in building options  and it worked.

    Thank you for your time.

     

    Regards,

    Dinesh Davuluru