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.

TMS320F28388D: .bss Memory Error

Hello,

I added RAMGS7 and RAMGS8 due to lack of memory in .bss, but I get the error again.

If the array size is reduced to fit only in RAMGS7, there is no error, but if it needs to use both GS7 and GS8, it throws an error.

ERROR:

"../2838x_RAM_lnk_cpu1.cmd", line 74: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section ".bss" size 0x142e page 1. Available memory ranges:
RAMGS7 size: 0x1000 unused: 0x1000 max hole: 0x1000
RAMGS8 size: 0x1000 unused: 0x1000 max hole: 0x1000


SECTIONS
{
   codestart        : > BEGIN
   .text            : >> RAMD0 | RAMD1 | RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3
   .cinit           : > RAMM0
   .switch          : > RAMM0
   .reset           : > RESET, TYPE = DSECT /* not used, */

   .stack           : > RAMM1
#if defined(__TI_EABI__)
   .bss             : >> RAMGS7 | RAMGS8 //RAMLS5
   .bss:output      : > RAMLS3
   .init_array      : > RAMM0
   .const           : > RAMLS5 | RAMLS6
   .data            : > RAMLS5 | RAMLS6 /* | RAMLS6 added */
   .sysmem          : > RAMLS4
#else
   .pinit           : > RAMM0
   .ebss            : >> RAMLS5 | RAMLS6
   .econst          : > RAMLS5
   .esysmem         : > RAMLS5
#endif

  • Hi,

    Can you please combine both RAMLS7 and RAMLS8 into a combined memory location and use it.

    Like - 

    RAMGS7_GS8 : origin = 0x014000, length = 0x002000

    And you can use RAMGS7_GS8 for the .bss section.

    Thanks

    Aswin

  • Thank you very much. Now there is no problem in compiling. But why
    ".bss                 : >> RAMGS7 | RAMGS8"
    I get an error?

    How can I find a solution when I want to use different non-consecutive areas together?

  • For .bss section, you cannot have separate memory for allocation. Once you combined them, it will work without errors.

    I am not sure of using non-consecutive areas together. But as per my knowledge you need to use consecutive memory locations,

    Thanks

    Aswin