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.

28335_RAM_lnk.cmd error

Other Parts Discussed in Thread: TMS320F28335

Hi!

I import taskexample_TMS320F28335 into CCS5.3 and new target configuration,the default .cmd is TMS28335.cmd, code is in internal flash, I have to download it in flash memory, erasing and debugging. it is ok, but too time consumption.

I want to link all code and data into internal ram,so I reconfig and select 28335_RAM_lnk.cmd in CCS Gerneral Setting, but error occurs while linking? How to config the project if I want to run my code in internal RAM?

  • As indicated in the error message, the code size is too large to fit into the memory region to which it has been allocated. Specifically in this case .text is too large to fit into RAML0 which is only of length 0x1000. Please see this page for more details on the error: http://processors.wiki.ti.com/index.php/Build_Errors_in_CCS#Error:_placement_fails_for_section_.22xxx.22

    You could get around this by modifying the 28335_RAM_lnk.cmd file to combine memory regions so they are of larger size and can accomodate the placement of sections. For example, you can combine RAML0 through RAML3 into a single region, and also RAML4 through RAML7 into another single region. I have attached a modified linker command file you can try.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/81/4061.28335_5F00_RAM_5F00_lnk.cmd