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 ebss section: program will not fit into available memory.

Other Parts Discussed in Thread: TMS320F2808, SYSBIOS

Hi

I am getting following error:

#10099-D program will not fit into available memory.  run placement with alignment/blocking fails
 for section ".ebss" size 0x23e9 page 1.  Available memory ranges:
    TMS320F2808.cmd    /LittleRedSBC_sysbios    line 107    C/C++ Problem

How to resolve this error?

Following is cmd file extract:

MEMORY
{
PAGE 0:    /* Program Memory */

   OTP         : origin = 0x3D7800, length = 0x000400     /* on-chip OTP */
   FLASH       : origin = 0x3E8000, length = 0x00FF80     /* on-chip FLASH */
   CSM_RSVD    : origin = 0x3F7F80, length = 0x000076     /* Program with all 0x0000 when CSM is in use. */
   BEGIN       : origin = 0x3F7FF6, length = 0x000002     /* Used for "boot to Flash" bootloader mode. */
   CSM_PWL     : origin = 0x3F7FF8, length = 0x000008     /* CSM password locations in FLASH */
   
   ROM         : origin = 0x3FF000, length = 0x000FC0     /* Boot ROM */
   RESET       : origin = 0x3FFFC0, length = 0x000002     /* part of boot ROM  */
   VECTORS     : origin = 0x3FFFC2, length = 0x00003E     /* part of boot ROM  */

PAGE 1 :   /* Data Memory */

   M01SARAM    : origin = 0x000000, length = 0x000800     /* on-chip RAM block M0, M1 */
   PIEVECT     : origin = 0xD00,    length = 0x100
   L01SARAM    : origin = 0x008000, length = 0x002000     /* on-chip RAM block L0, L1 */
   H0SARAM     : origin = 0x00A000, length = 0x002000     /* on-chip RAM block H0 */
}

/*
 *  Allocate sections to memory blocks.
 *  Note:
 *      codestart   user defined section in DSP28_CodeStartBranch.asm
 *                  used to redirect code execution when booting to flash
 *
 *      ramfuncs    user defined section to store functions that will be
 *                  copied from Flash into RAM
 */
 
SECTIONS
{
    /* Allocate program areas: */
    .cinit          : > FLASH       PAGE = 0
    .pinit          : > FLASH       PAGE = 0
    .text           : > FLASH       PAGE = 0
    codestart       : > BEGIN       PAGE = 0
    ramfuncs        : LOAD = FLASH      PAGE = 0,
                      RUN  = L01SARAM   PAGE = 1,
                      LOAD_START(_RamfuncsLoadStart),
                      LOAD_SIZE(_RamfuncsLoadSize),
                      LOAD_END(_RamfuncsLoadEnd),
                      RUN_START(_RamfuncsRunStart)

    csmpasswds      : > CSM_PWL     PAGE = 0
    csm_rsvd        : > CSM_RSVD    PAGE = 0

    /* Allocate uninitalized data sections: */
    .stack          : > M01SARAM | L01SARAM | H0SARAM   PAGE = 1
    .ebss           : > M01SARAM | L01SARAM | H0SARAM   PAGE = 1
    .esysmem        : > H0SARAM | L01SARAM | M01SARAM   PAGE = 1
    .cio            : > H0SARAM | L01SARAM | M01SARAM   PAGE = 1

    /* Initalized sections go in Flash */
    /* For SDFlash to program these, they must be allocated to page 0 */
    .econst         : > FLASH      PAGE = 0
    .switch         : > FLASH      PAGE = 0      
    .args               : > FLASH       PAGE = 0

    /* Allocate IQ math areas: */
    IQmath          : > FLASH      PAGE = 0                  /* Math Code */
    IQmathTables    : > ROM        PAGE = 0, TYPE = NOLOAD   /* Math Tables In ROM */
}

Thanks & regards

Newbee