L1822 Error

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

L1822 Error

1,222 Views
Idontunderstand
Contributor I

Hi dear;

I am using CSMB12-C128 using codewarrior.

I formated my computer so I forced to install codewarrior again (I installed version 5.9.0  for HCS12 series). Now, I got an error on the code which worked fine before.

The errors are:

 

 

  1. Link Error   : L1822: Symbol _FMUL in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o      is undefined
  2. Link Error   : L1822: Symbol _FSUB in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o      is undefined
  3. Link Error   : L1822: Symbol _FADD in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o         is undefined
  4. Link Error   : L1822: Symbol _FUTRUNC in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o        is undefined
  5. Link Error   : L1822: Symbol _FSTRUNC in file C:\Documents and Settings\Saba\Desktop\FlexSensor_Hand\Project\Project_Data\Standard\ObjectCode\main.c.o        is undefined
  6. Link Error   : Link failed

    I couldn't find the reason by searching he semiliar questions in the forum. I appreciate any help..

Thanks

Labels (1)
0 Kudos
5 Replies

627 Views
JimDon
Senior Contributor III

You missing the floating point library.

0 Kudos

627 Views
Idontunderstand
Contributor I

Thanks Jim.

Could tell me how should I add it, where is that library located?

 

0 Kudos

627 Views
kef
Specialist I

When creating new project, you should tell project wizard that you want floating point. Wizard then adds required library. What library to add is specified in <CW intall folder>\lib\hc12c\readme.txt

 

BTW, S12 is 16-bit MCU. Please use right forum next time. Keep in mind that there are dedicated Codewarrior forums. This thread should be in "Codewarrior 8- adn 16- bit"

0 Kudos

627 Views
JimDon
Senior Contributor III

Kef gave the answer I would have, because I have not used that version of CW in quite some time. If you fish around in the project settings, there may be something there, other than that you will have to regenerate the project and specifiy floating point.

0 Kudos

627 Views
Idontunderstand
Contributor I

Thank Jim and Kev, it worked:smileyhappy:

0 Kudos