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.

Build failed because of .ebss size too big



Hi,

Would really appreciate if someone can help me on this

I finally succesful to compile my code but error encountered during build.

"\\psf\\Home\\Desktop\\scb mess around\\tidcs\\c28\\dsp281x\\v100\\DSP281x_common\\cmd\\F2812.cmd", line 142: error: run placement fails for object ".ebss", size 0x1440 (page 1). Available ranges: RAML1 size: 0x1000 unused: 0x1000 max hole: 0x1000 error: errors encountered during linking; "./Debug/scbrs485.out" not built

Really appreciate the help

Thank you

  • Kevin,

    The error is telling you the .ebss section of your program, containing un-initialized variables, has grown too large for the memory allocated for it in your linker command file.  You'll need to edit your linker command file to allocate a larger amount of memory to this section.

    On F2812, there are two 4K blocks of SARAM starting at address 0x8000.  You should see something like this in the MEMORY part of your linker command file:

    RAML1 : origin = 0x8000, length = 0x1000
    RAML2 : origin = 0x9000, length = 0x1000

    This is contiguous memory, so you can replace these lines with a single line,something like:

    RAML1L2         : origin = 0x8000, length = 0x2000

    Then, in the SECTIONS part of the linker command file, map the .ebss section into RAML1L2.  You may have to adjust other memory sections.  It depends what you currently have mapped in RAML2.

    Hope this helps.

    Regards,

    Richard

  • Kevin,

    Is your issue resolved? Let us know if you have any further queries on this.

    Regards,

    Vivek Singh
  • Kevin, closing the thread. If your issue is not resolved please re-open this one or start a new post.