HC12 Linking Error

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

HC12 Linking Error

Jump to solution
3,245 Views
Joxer
Contributor I
I am not sure if this error is the same as the sprintf error that needed to add the datapage.c file. I tried that but with no success and received other errors so I removed the file.
 
Things to know:
     1.) My project is called Test
     2.) I added a FreeCntr32 Bean as I need some timing functions
     3.) I copied and pasted the example code from the typical usage code into the main function
     4.) When I debug the code I get these linking errors
          Link Error : L1822: Symbol _DUFLOAT in file C:\. . . \Monitor\ObjectCode\Test.c.o is undefined
          Link Error : L1822: Symbol _DCMP_RC in file C:\. . .\Monitor\ObjectCode\Test.c.o is undefined
     5.) I am very new to CodeWarrior so be gentle

Message Edited by CrasyCat on 2007-04-13 10:55 AM

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,524 Views
CrasyCat
Specialist III
Hello
 
There seem to be a problem in your project configuration.
This is not something we can debug on the forum.
You need to submit a service request  for that.
 
To log the issue with Freescale please go to following URL:
    http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&tid=FSH
and click on "Submit a service request"
Make sure to attach the whole project reproducing the trouble to the SR.
To make sure you provide all relevant information:
  - Start IDE
  - Open the project
  - Select Help -> Pack And Go
and follow the instructions on the screen.
 
CrasyCat

View solution in original post

0 Kudos
Reply
4 Replies
1,524 Views
Joxer
Contributor I
I added the library ansis.lib and that seemed to clear up the problem. Thank you for pointing me to the Readme.txt file, I would have never found it or thought to look in there for the information.
 
I also took your advice and changed it to integer math rather than keeping it in floating point.
0 Kudos
Reply
1,524 Views
Joxer
Contributor I
Ok, adding the library only allowed me to compile and debug once. After that initial time, it gives me the same error. I have tried all the libraries on the list in the Readme and none of them seem to clear up the linking error.
0 Kudos
Reply
1,525 Views
CrasyCat
Specialist III
Hello
 
There seem to be a problem in your project configuration.
This is not something we can debug on the forum.
You need to submit a service request  for that.
 
To log the issue with Freescale please go to following URL:
    http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&tid=FSH
and click on "Submit a service request"
Make sure to attach the whole project reproducing the trouble to the SR.
To make sure you provide all relevant information:
  - Start IDE
  - Open the project
  - Select Help -> Pack And Go
and follow the instructions on the screen.
 
CrasyCat
0 Kudos
Reply
1,524 Views
CompilerGuru
NXP Employee
NXP Employee
These are integer to floating point conversion runtime routines,
you have to link against a ansi library which contains the floating point support. See lib\hc12c\readme.txt for the list.
Also as you seem to use only the integer to float conversion and the float compare, but no actual float operation, I wonder if the code could be written with integer arithmetic only.

Daniel