Reply by Jeff Brower July 3, 20082008-07-03
Hemocute-

> hi everyone.I am new to DSP,now I can load program into the internal
> daram of c5416.In my C program ,I set PMST to be mp/mc#=0 ovly=1
> drom=1.Then,how can I load my program into the external ram, it is
> IS61LV25616AL from ISSI.My .cmd file is as below:
>
> MEMORY
> {
> PAGE 0 :
> PROG: origin = 0x2400, length = 0x5b80
> VECTORS: origin = 0x0080, length = 0x80
>
> PAGE 1 :
> DARAM: origin = 0x0100, length = 0x1f80
> STACK: origin = 0x2080, length = 0x400
> }
>
> SECTIONS
> {
>
> .SysPar : load = DARAM page 1
> .text : load = PROG page 0
> .cinit : load = PROG page 0
> .switch : load = PROG page 0
> .const : load = DARAM page 1
> .bss : load = DARAM page 1
> .stack : load = STACK page 1
> .coeff : load = DARAM page 1
>
> How to change my settings to load program into external ram?

With ovly = 1 and DROM = 1, then first 32k of onchip mem is prog/data, and second 32k
is data. If you want to force your program into external memory located above 64k,
you can add some statements to your .cmd file similar to:

MEMORY {

PAGE 0: EXT0 (RWX): origin = 18000h length = 8000h /* not used -- overlaps upper
32k data mem */
PAGE 0: EXT1 (RWX): origin = 28000h length = 8000h
}

SECTIONS {

far_sect: > EXT1 PAGE 0 {

file1.obj (.text)
file2.obj (.text)
}
}

-Jeff
Reply by hemo...@gmail.com July 3, 20082008-07-03
hi everyone.I am new to DSP,now I can load program into the internal daram of c5416.In my C program ,I set PMST to be mp/mc#=0 ovly=1 drom=1.Then,how can I load my program into the external ram, it is IS61LV25616AL from ISSI.My .cmd file is as below:

MEMORY
{
PAGE 0 :
PROG: origin = 0x2400, length = 0x5b80
VECTORS: origin = 0x0080, length = 0x80

PAGE 1 :
DARAM: origin = 0x0100, length = 0x1f80
STACK: origin = 0x2080, length = 0x400
}

SECTIONS
{

.SysPar : load = DARAM page 1
.text : load = PROG page 0
.cinit : load = PROG page 0
.switch : load = PROG page 0
.const : load = DARAM page 1
.bss : load = DARAM page 1
.stack : load = STACK page 1
.coeff : load = DARAM page 1

How to change my settings to load program into external ram?