Reply by Matthew R. Singer June 11, 20012001-06-11
Thanks to all... Turns out my error was not changing the default value for the
PMST in c5000.gel which
sets the MC bit to 1. *********** REPLY SEPARATOR ***********

On 6/9/2001 at 9:24 PM Scott Barnes wrote:

>Matt,
>
>> I should then be able to load my text segment into saram0-3 at
>> 0x28000. XPC=2, address 0x8000-0xffff. I'm confused how to
>> do the linker command file for this. Do you specify Page 0
>> with address 0x28000-0x2FFFF or Page 2 with address 0x8000-0xffff?
>
>It's the former. Don't let the word "PAGE" in the linker control file
>confuse you; the linker's pages are used only to separate program
>and data space. Program space is linker page 0, while data space
>is linker page 1.
>
>Also, be aware that overlays affect all program (XPC) pages, not
>just the first one. If the on-chip DARAM really occupies 0x80-
>0xFFFF as you say, then the overlay will make DARAM appear at
>those addresses on every page. (Take this with a grain of salt, as
>I'm not familiar with the '5416 memory map.)
>
>Back to the linker: here is a snippet from a linker control file for the
>'5402. DARAM lives at 0x80-0x3FFF, and internal ROM is off (MP
>mode).
>
>----
>MEMORY
>{
> PAGE 1: SCRATCHPAD: origin = 0x0060 length = 0x0020
> PAGE 1: FASTDATA: origin = 0x0080 length = 0x3f00
> PAGE 1: INTVEC: origin = 0x3f80 length = 0x0080
> PAGE 1: DATA: origin = 0x4000 length = 0xC000
>
> PAGE 0: PROG0: origin = 0x8000 length = 0x7F80
> PAGE 0: BOOTVEC: origin = 0xFF80 length = 0x2
> PAGE 0: PROG1: origin = 0x14000 length = 0xC000
> PAGE 0: PROG2: origin = 0x24000 length = 0xC000
> PAGE 0: PROG3: origin = 0x34000 length = 0xC000
>}
>-----
>
>Regards,
>Scott >_____________________________________
>Note: If you do a simple "reply" with your email client, only the author
>of this message will receive your answer. You need to do a "reply all" if
>you want your answer to be distributed to the entire group.
>
>_____________________________________
>About this discussion group:
>
>To Join: Send an email to
>
>To Post: Send an email to
>
>To Leave: Send an email to
>
>Archives: http://www.yahoogroups.com/group/c54x
>
>Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/


Matthew R. Singer (v)954-924-7052
Real Time Systems Engineer (f)954-924-7007
Florida Atlantic Univesity


Reply by Scott Barnes June 10, 20012001-06-10
Matt,

> I should then be able to load my text segment into saram0-3 at
> 0x28000. XPC=2, address 0x8000-0xffff. I'm confused how to
> do the linker command file for this. Do you specify Page 0
> with address 0x28000-0x2FFFF or Page 2 with address 0x8000-0xffff?

It's the former. Don't let the word "PAGE" in the linker control file
confuse you; the linker's pages are used only to separate program
and data space. Program space is linker page 0, while data space
is linker page 1.

Also, be aware that overlays affect all program (XPC) pages, not
just the first one. If the on-chip DARAM really occupies 0x80-
0xFFFF as you say, then the overlay will make DARAM appear at
those addresses on every page. (Take this with a grain of salt, as
I'm not familiar with the '5416 memory map.)

Back to the linker: here is a snippet from a linker control file for the
'5402. DARAM lives at 0x80-0x3FFF, and internal ROM is off (MP
mode).

----
MEMORY
{
PAGE 1: SCRATCHPAD: origin = 0x0060 length = 0x0020
PAGE 1: FASTDATA: origin = 0x0080 length = 0x3f00
PAGE 1: INTVEC: origin = 0x3f80 length = 0x0080
PAGE 1: DATA: origin = 0x4000 length = 0xC000

PAGE 0: PROG0: origin = 0x8000 length = 0x7F80
PAGE 0: BOOTVEC: origin = 0xFF80 length = 0x2
PAGE 0: PROG1: origin = 0x14000 length = 0xC000
PAGE 0: PROG2: origin = 0x24000 length = 0xC000
PAGE 0: PROG3: origin = 0x34000 length = 0xC000
}
-----

Regards,
Scott



Reply by Brian C. Lane June 8, 20012001-06-08
On Fri, 08 Jun 2001 19:43:56 -0000, you wrote:

>Can anyone "unconfuse" me? I'm using a 5416. I in MC mode with
>the overlays on. This mode should allow on chip daram from 0x80-
>0xffff.
>
>I should then be able to load my text segment into saram0-3 at
>0x28000. XPC=2, address 0x8000-0xffff. I'm confused how to
>do the linker command file for this. Do you specify Page 0
>with address 0x28000-0x2FFFF or Page 2 with address 0x8000-0xffff?
>

Use Page 0 and just plug in the correct address (0x28000 in your
case). The same thing holds for using DSP/BIOS to handle memory
management, define the segment with the address and in the linker call
it Page 0 (for program memory).

Brian

-----------------
Brian C. Lane (KC7TYU) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design


Reply by Matt Singer June 8, 20012001-06-08
Can anyone "unconfuse" me? I'm using a 5416. I in MC mode with
the overlays on. This mode should allow on chip daram from 0x80-
0xffff.

I should then be able to load my text segment into saram0-3 at
0x28000. XPC=2, address 0x8000-0xffff. I'm confused how to
do the linker command file for this. Do you specify Page 0
with address 0x28000-0x2FFFF or Page 2 with address 0x8000-0xffff?

Or do you do it with overlays??? I cant find an example anywhere.

thanks