Abhijeet- I have posted your question to the c54x Group. I think you should ask a specific question about the -mf (far mode) linking error -- then you will get some help. -Jeff We are working in C5409. Our program is very large and presently We are using c5409 DARAM for both data and program. below is our command linking file configuration. Please suggest us the configuration of the link file and if any other setting is required. We want to use address 0x18000-0x28000 for our program. if we use -mf option to get extended memory page. In this we are getting linking error. -stack 0x380 MEMORY { /* Partition the memory */ /* 02000h - 0207fh: Normal interrupt vectors */ /* 02080h - 0217fh: Inbox */ /* 02180h - 0227fh: Outbox */ /* 02280h - 022ffh: Program Stack */ /* 02300h - ... : Program Code */ /* 03000h - ... : Program Data */ /* 07f80h - 0ffffh: Bootstrap interrupt vectors */ PAGE 0: VECTOR: origin = 02000h, length = 0x0080 PAGE 1: INBOX: origin = 02080h, length = 0x0100 PAGE 1: OUTBOX: origin = 02180h, length = 0x0100 PAGE 1: STACK: origin = 02280h, length = 0x0380 PAGE 0: DARAMP: origin = 02600h, length = 0x2900 PAGE 1: ARGS: origin = 04f00h, length = 0x0004 PAGE 1: DARAMD: origin = 04f04h, length = 0x2e00 PAGE 0: BOOTSTRAP: origin = 07f80h, length = 0x0080 } SECTIONS { vectable > VECTOR PAGE 0 /* Interrupt Vectors */ .start > DARAMP PAGE 0 /* Program Code */ .text > DARAMP PAGE 0 /* " " */ .switch > DARAMP PAGE 0 /* " " */ .cinit > DARAMP PAGE 0 /* " " */ .boots > BOOTSTRAP PAGE 0 /* Bootrap Program Code */ .args > ARGS PAGE 1 /* Program Aruguments */ .data > DARAMD PAGE 1 /* Program Data */ .bss > DARAMD PAGE 1 /* " " */ .const > DARAMD PAGE 1 /* " " */ .sysmem > DARAMD PAGE 1 /* " " */ .stack > STACK PAGE 1 /* Program Stack */ } |
|
-mf mode linking error
Started by ●April 18, 2004
Reply by ●April 19, 20042004-04-19
Jeff Brower wrote: > Abhijeet- > > I have posted your question to the c54x Group. > > I think you should ask a specific question about the -mf (far mode) linking error -- > then you will get some help. > > -Jeff > > We are working in C5409. Our program is very large and presently We > are using c5409 DARAM for both data and program. below is our > command linking file configuration. > > Please suggest us the configuration of the link file and if any other > setting is required. We want to use address 0x18000-0x28000 for our > program. > > if we use -mf option to get extended memory page. In this we are getting linking > error. > > -stack 0x380 > Did you change your stack size in the linker configuration dialog? In my setups it has -stack0x400 passed to the linker (matching my stack size of 0x400). You should try setting the stack to 0x380 in your configuration and see if that fixes it. Brian -- ----------------- Brian C. Lane (W7BCL) Programmer www.shinemicro.com RF, DSP & Microcontroller Design |