HC12 Linking Error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,940件の閲覧回数
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,219件の閲覧回数
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,219件の閲覧回数
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,219件の閲覧回数
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,220件の閲覧回数
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,219件の閲覧回数
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