EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

LRAE linking with CodeWarrior

Started by apedroso11 January 13, 2006
I am using LRAE (AN2546SW) with CodeWarrior3.1 but I have problems
linking

I have created a new project from the Stationary for MC9S12DP256
(flash target)

I have substituted the called to _Startup routine in the PRM file to
the called to main routine of the AN2546SW in order to use its
initialization instead of the one on the START12.c from Codewarrior

I get this linking errors:

L4004: Linking C:\Proyectos Agus\CodeWarrior\LRAE\prm\flash.prm as
ELF/DWARF format link parameter file L1823: External object Crg in c:\proyectos
agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
created by default L1823: External object Regs in c:\proyectos
agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
created by default L1823: External object Sci0 in c:\proyectos
agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
created by default L1823: External object Sci1 in c:\proyectos
agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
created by default Link Error : L1907: Fixup overflow in main, to Crg type 1, at
offset 0x9 Link Error : L1907: Fixup overflow in main, to Regs type 1, at
offset 0x11 Link Error : L1907: Fixup overflow in main, to Regs type 1, at
offset 0x15

Does anyone can help building this LRAE from the scratch with
codewarrior?



The L1823 tells me that you did not link the implementation/.c file which
implements the objects mentioned in the message.
Obviously they are used by main.c.
You have included the corresponding .h file in your main.c, you need to link
the corresponding .obj of it too.

Erich

> -----Original Message-----
> From: 68HC12@68HC... [mailto:68HC12@68HC...]
> On Behalf Of apedroso11
> Sent: Freitag, 13. Januar 2006 09:55
> To: 68HC12@68HC...
> Subject: [68HC12] LRAE linking with CodeWarrior > I am using LRAE (AN2546SW) with CodeWarrior3.1 but I have problems
> linking
>
> I have created a new project from the Stationary for MC9S12DP256
> (flash target)
>
> I have substituted the called to _Startup routine in the PRM file to
> the called to main routine of the AN2546SW in order to use its
> initialization instead of the one on the START12.c from Codewarrior
>
> I get this linking errors:
>
> L4004: Linking C:\Proyectos Agus\CodeWarrior\LRAE\prm\flash.prm as
> ELF/DWARF format link parameter file > L1823: External object Crg in c:\proyectos
> agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> created by default > L1823: External object Regs in c:\proyectos
> agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> created by default > L1823: External object Sci0 in c:\proyectos
> agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> created by default > L1823: External object Sci1 in c:\proyectos
> agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> created by default > Link Error : L1907: Fixup overflow in main, to Crg type 1, at
> offset 0x9 > Link Error : L1907: Fixup overflow in main, to Regs type 1, at
> offset 0x11 > Link Error : L1907: Fixup overflow in main, to Regs type 1, at
> offset 0x15
>
> Does anyone can help building this LRAE from the scratch with
> codewarrior? >
> Yahoo! Groups Links >




thank you.

I have found the objects in "per_DP256_K79X.c" and now there is no link
error. Erich Styger wrote:

> The L1823 tells me that you did not link the implementation/.c file which
> implements the objects mentioned in the message.
> Obviously they are used by main.c.
> You have included the corresponding .h file in your main.c, you need
> to link
> the corresponding .obj of it too.
>
> Erich
>
> > -----Original Message-----
> > From: 68HC12@68HC... [mailto:68HC12@68HC...]
> > On Behalf Of apedroso11
> > Sent: Freitag, 13. Januar 2006 09:55
> > To: 68HC12@68HC...
> > Subject: [68HC12] LRAE linking with CodeWarrior
> >
> >
> > I am using LRAE (AN2546SW) with CodeWarrior3.1 but I have problems
> > linking
> >
> > I have created a new project from the Stationary for MC9S12DP256
> > (flash target)
> >
> > I have substituted the called to _Startup routine in the PRM file to
> > the called to main routine of the AN2546SW in order to use its
> > initialization instead of the one on the START12.c from Codewarrior
> >
> > I get this linking errors:
> >
> > L4004: Linking C:\Proyectos Agus\CodeWarrior\LRAE\prm\flash.prm as
> > ELF/DWARF format link parameter file
> >
> >
> > L1823: External object Crg in c:\proyectos
> > agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> > created by default
> >
> >
> > L1823: External object Regs in c:\proyectos
> > agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> > created by default
> >
> >
> > L1823: External object Sci0 in c:\proyectos
> > agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> > created by default
> >
> >
> > L1823: External object Sci1 in c:\proyectos
> > agus\codewarrior\lrae\lrae_data\flash_application\objectcode\main.c.o
> > created by default
> >
> >
> > Link Error : L1907: Fixup overflow in main, to Crg type 1, at
> > offset 0x9
> >
> >
> > Link Error : L1907: Fixup overflow in main, to Regs type 1, at
> > offset 0x11
> >
> >
> > Link Error : L1907: Fixup overflow in main, to Regs type 1, at
> > offset 0x15
> >
> > Does anyone can help building this LRAE from the scratch with
> > codewarrior?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > >. >
>


--

Agust Pedroso Rizaldos
Software Engineer
+0034 91 628 92 35
Dpto. I+D
SEDECAL, S.A.




The 2024 Embedded Online Conference