I give up ...

Started by Gary Olmstead July 31, 2003
I am trying to write a bootloader for the D60A, with COSMIC. The program
compiles, but it won't link. I used the recommended COSMIC method, but I
get this error message:

"#error clnk d:\projects\12v42v\universal loader\unvldr.lkf:1 init segment
cannot be initialized"

Here is/are the offending line(s) in the .lkf file:

+seg .text -b 0x880 -n boot -ic
"D:\projects\12v42v\univer~1\eraseflash.o"

Commenting these out makes the error go away.

Obviously, I've left out something, but I'll be darned if I can figure it
out. Any suggestions?

Gary Olmstead
Toucan Technology
Ventura CA




Gary,

This .text segment is probably the first one in link command file and is
used by default to host the initialization segment, but it is itself
initialized due to the -ic option, so simply mark any other .text segment
(not marked itself with -ic) with option -it to move the initialization
segment behind it.

Best Regards,
Jean-Pierre Lavandier
COSMIC Software -----Message d'origine-----
De : Gary Olmstead [mailto:]
Envoy: jeudi 31 juillet 2003 05:41
:
Objet : [68HC12] I give up ... I am trying to write a bootloader for the D60A, with COSMIC. The program
compiles, but it won't link. I used the recommended COSMIC method, but I
get this error message:

"#error clnk d:\projects\12v42v\universal loader\unvldr.lkf:1 init segment
cannot be initialized"

Here is/are the offending line(s) in the .lkf file:

+seg .text -b 0x880 -n boot -ic
"D:\projects\12v42v\univer~1\eraseflash.o"

Commenting these out makes the error go away.

Obviously, I've left out something, but I'll be darned if I can figure it
out. Any suggestions?

Gary Olmstead
Toucan Technology
Ventura CA

<http://rd.yahoo.com/M%6694.3651271.4917408.1261774/D=egroupweb/S065542
05:HM/A88501/R=0/SIGif1rb57/*http://webevents.yahoo.com/universal/seab
iscuit/>

<http://us.adserver.yahoo.com/l?M%6694.3651271.4917408.1261774/D=egroupmai
l/S=:HM/A88501/rand#4167848>

--------------------
<http://www.motorola.com/mcu ">http://docs.yahoo.com/info/terms/> .




Yes, it is the first one in the file.

OK, I'll give it a try.

Thanks for your answer.

Gary

At 10:11 AM 7/31/03 +0200, you wrote:
>Gary,
>
>This .text segment is probably the first one in link command file and is
>used by default to host the initialization segment, but it is itself
>initialized due to the -ic option, so simply mark any other .text segment
>(not marked itself with -ic) with option -it to move the initialization
>segment behind it.
>
>Best Regards,
>Jean-Pierre Lavandier
>COSMIC Software