HC12 Linking Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HC12 Linking Error

跳至解决方案
3,949 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,228 次查看
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 项奖励
回复
4 回复数
2,228 次查看
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 项奖励
回复
2,228 次查看
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 项奖励
回复
2,229 次查看
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 项奖励
回复
2,228 次查看
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