How to fix link errors

How to fix link errors

Post by Tim Flyn » Thu, 07 Oct 2004 13:32:53


Hi,
I've been using Codewarrior 1.2 for the HCS12 for quite a while. But was
having a lot of problems going to bank mode.
Now I'm trying version 3.1.
How do I try to fix these problems?

Link Error : L1907: Fixup overflow in OSTickISR_Init, to _TIOS type 1, at
offset 0x1
Link Error : L1907: Fixup overflow in OSTickISR_Init, to _TCNT type 1, at
offset 0x4
...Link Error : Link failed

Tim Flynn
 
 
 

How to fix link errors

Post by Daniel Fri » Thu, 07 Oct 2004 18:20:04

Hi Tim,

The error probably means that the compiler thinks _TIOS / _TCNT are in
the zero page, but the linker allocates them outside.

I would check where _TIOS and _TCNT are allocated, and where they should
be. If necessary, map L1907 to a warning and check the outcome.

My guess is that you do use a derivative header file (e.g. #include
<mc9s12dp256.h>), but that you did not add the corresponding C file
(e.g. mc9s12dp256.c) to your project.
(You should have seen the "L1823: External object _TCNT in main.c.o
created by default" in this case however)
Bye

Daniel