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/TMS320F28335: TMS320F28335 and CCS

Part Number: TMS320F28335

Tool/software: Code Composer Studio

I am using code composer v4 and trying to built my program for DSP TMS320F283335 but i have following error. Please guide me how can i fix this error?

"C:/tidcs/c28/DSP2833x/v131/DSP2833x_common/cmd/28335_RAM_lnk.cmd", line 125: error:
placement fails for object ".text", size 0x1b7c (page 0). Available ranges:
RAML1 size: 0x1000 unused: 0x1000 max hole: 0x1000
error: errors encountered during linking;

  • Please check this wiki page for details and solutions to this error. 

  • I can not understand from the wiki page. And, i think it does not match with my error.
  • Your error is the same as what is described in the wiki page, did you click on the link to the diagnostic message page? Anyway I will explain it here again.

    The message is saying that the size of the .text section is 0x1b7c and since it is larger than the memory range to which it is allocated (RAML1 of size 0x1000), the placement has failed.

    If you open the 28335_RAM_lnk.cmd file, you will see the following lines:

       RAML1      : origin = 0x009000, length = 0x001000

    and

       .text            : > RAML1,     PAGE = 0

    The fist one specifies the origin and length of RAML1, and the second line allocates .text section from the program to RAML1. This allocation fails because the .text section is larger in size than the memory to which it is allocated

    To fix the error you can combine the RAML1/L2/L3 regions in the linker command file so the available memory is sufficient to allocate the section.

    So change the line as below and comment out the RAML2 and RAML3 lines

       RAML1      : origin = 0x009000, length = 0x003000