AnsweredAssumed Answered

Floating Point Library

Question asked by Dave Miller on Feb 27, 2013
Latest reply on Feb 28, 2013 by Dave Miller

Hello All,

 

OK, this should hopefully be a simple issue but I can't seem to find the answer.

 

I started a project with CW10.3 for the HCS08 CPU (S08AW60) and when I started the project wizard I did not select the floating point library.  Now I find myself wanting to use floating point for 1 calculation but I can't find the setting to use the correct floating point lib.

 

I am using the ADS1118 for thermocouple measurement and I need to calculate the internal temperature sensor value:

 

#include <float.h>

float Temp_Sensor;

int Sensor_Reading;

 

Temp_Sensor  = (float)Sensor_Reading * 0.03125;                                  //calculate degrees

 

When I compile this I get the following errors:

CW10_3 FP_Errors.JPG

I am pretty certain the issue is the missing floating point library.

 

Can anyone tell me where I go to include the floating point libraries in my project?  I looked all through the project settings and don't see a "use floating point libraries" check box.

 

Thanks,

Dave

Outcomes