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.

memory configuration

Other Parts Discussed in Thread: TMS320VC5416

hello everyone, I am a student and I have a project on dsp 'TMS320VC5416'. I want to make a program configuration memory, I try to make a configuration:

 and it did not work, I do not know how to do this configuration and it is necessary to validate my project, I'm left with no time so if anyone can help me I would be grateful, and thank you in advance ,for information, I am new to this field, that's why I find this configurationso difficult .

bouchra,
ps: i need it as soon as possible.

MEMORY
{
MMR (RWIX): origin = 0x00000, length = 0x0060
SCRATCH (RWXI): origin = 0x00060, length = 0x0020
DARAM (RWXI): origin = 0x01000, length = 0x2000
EXTROM (RXI): origin = 0x0F000, length = 0x1000
EXTRAM (RWXI): origin = 0x10000, length = 0x10000

}

SECTIONS
{
.bss :> EXTRAM PAGE 0 /* Global & static vars */
vecs :> EXTRAM PAGE 0 /* Interrupt vectors */
.stack :> EXTRAM PAGE 0 /* Primary system stack */
.sysstack :> EXTRAM PAGE 0 /* Secondary system stack */
.sysmem :> EXTRAM PAGE 0 /* Dynamic memory (malloc) */
.text :> EXTRAM PAGE 0 /* Code */
.data :> EXTRAM PAGE 0 /* Initialized vars */
.cinit :> EXTRAM PAGE 0 /* Auto-initialization tables */
.const :> EXTRAM PAGE 0 /* Constant data */
.cio :> EXTRAM PAGE 0 /* C I/O buffers */
.switch :> EXTRAM PAGE 0 /* Switch statement tables */
.pinit :> EXTRAM PAGE 0 /* Initialization fn tables */
.args :> EXTRAM PAGE 0 /* Arguments to main() */
}

  • hey,

     

    i do not know if you memory sections matches your environment but thats not the actual problem.
    the problem is that you defined the memory regions but did not assign the sections correct.

    in your case

     

    SECTIONS
    {
    .bss > EXTRAM  /* Global & static vars */
    .vecs > EXTRAM  /* Interrupt vectors */
    .stack > EXTRAM  /* Primary system stack */
    .sysstack > EXTRAM  /* Secondary system stack */
    .sysmem > EXTRAM  /* Dynamic memory (malloc) */
    .text > EXTRAM /* Code */
    .data > EXTRAM  /* Initialized vars */
    .cinit > EXTRAM /* Auto-initialization tables */
    .const > EXTRAM  /* Constant data */
    .cio > EXTRAM  /* C I/O buffers */
    .switch > EXTRAM  /* Switch statement tables */
    .pinit > EXTRAM  /* Initialization fn tables */
    .args > EXTRAM  /* Arguments to main() */
    }

    there is no memory region  " EXTRAM PAGE 0 " defined above. I dont know if spaces are possible