Problem of linker in HC12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem of linker in HC12

2,187 Views
pilou007
Contributor I

Hi,

I'm a beginner in embedded system and I work on MM912J637, wich heart is a HC12.

Using code warrior to develop my program, I got trouble saying:

Link error : L1822: symbol _FSFLOAT in file......Fonction.c.o is undefined

Link error : L1822: symbol _FCMP in file......Fonction.c.o is undefined

Link error : L1822: symbol _FSTRUNC in file......Fonction.c.o is undefined

Link error : L1822: symbol _FSUB in file......Fonction.c.o is undefined

 

I got seven of these. And I for sure have the #include <hidef.h>.

 

I also have some warning like: ...LotOfFile.c.o has no DWARF debug info...

 

Could you help?

Thanks

Labels (1)
0 Kudos
4 Replies

625 Views
kef
Specialist I

Mentioned symbols are floating point runtime routines. You should start new project wizard again and specify that you want floating point enabled.

0 Kudos

625 Views
pilou007
Contributor I

Hello,

Thanks for your answer.

I'va had some floating point operation, but I took them off everywhere in my program, now I only have some division on integer32, is that the problem?

How could I do some operation like division on integer without floating point?

Best regards

0 Kudos

625 Views
kef
Specialist I

Disassemble your code and look for symbol in question, like _FSFLOAT or _FDIV. You should find that your code still is using floating point routines. Integer division runtime is always enabled and uses different set of routines.

0 Kudos

625 Views
pilou007
Contributor I

Hy,

I've found the problem, I've found two float definition variablehidden in my program, despite a search wich told me no float anymore....

Everything'ok now

Thank you very much

Pascal

0 Kudos