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.

Error for Building CCS4 RTSC's Log Example



I create an RTSC project baseed on the Log Example in CCS4, my device platform is ti.platforms.control28335, 

When I try to build the Log Example, I got these error:

errors encountered during linking; "tasktest.out" not built tasktest line 0 1352631051350 491

placement fails for object ".const", size 0x11ea (page 0). Available ranges: L03SARAM size: 0x4000 unused: 0x98 max hole: 0x7c tasktest line 0 1352631051350 487

run placement fails for object ".cio", size 0x120 (page 0). Available ranges: L03SARAM size: 0x4000 unused: 0x98 max hole: 0x7c tasktest line 0 1352631051350 490

run placement fails for object ".stack", size 0x1000 (page 0). Available tasktest line 0 1352631051350 488

run placement fails for object ".stack", size 0x1000 (page 0). Available ranges: L03SARAM size: 0x4000 unused: 0x98 max hole: 0x7c tasktest line 0 1352631051350 489

run placement fails for object ".taskStackSection", size 0x506 (page 0). Available ranges: L03SARAM size: 0x4000 unused: 0x525 max hole: 0x4c0 tasktest line 0 1352631051350 486

thanks for any reply

  • Yefu,
    that example might just be too large to fit in the memory available on 28335, but there are two things you could try to solve the problem.

    1. There is a MAP file in the subdirectory Debug (or Release) of you project. You can check the sizes of the unused portions of memory objects, and compare them to the sizes of the sections marked as "FAILED TO ALLOCATE". If there is enough unused space available, then you have to reallocate sections using Program.sectMap configuration parameter. For example, this is how you would move .cio to MSARAM:
    Program.sectMap[".cio"] = new Program.SectionSpec();
    Program.sectMap[".cio"].loadSegment["MSARAM"];

    2. If there is no enough space and reallocation wouldn't help, you'll need to work on decreasing the size of the app. There are some comments throughout the config script log.cfg that tells you what you can try, and you should also read the section "Minimizing the Application Footprint" in Bios User's Guide, in the directory 'docs' of your SYS/BIOS installation.