floating point error

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

floating point error

Jump to solution
615 Views
junesikkim
Contributor I

i'm using codewarrior ver 10.6 and MCU5606B dev board for intelligent car

i need to use floating point because i'll use IMU sensor & PID controll

so I add "include <float.h>" , plus arithmetic operation(a=a+5; , declare float a) and  lib path  but error occured like below  

25752_25752.JPGerror.JPG

 

please advise how can i solve this problem?

Labels (1)
0 Kudos
1 Solution
491 Views
TICS_Fiona
NXP Employee
NXP Employee

Is the runtime library added into the project?  Please see the screenshot in below for the necessary libraries for a Qorivva project.

lib files.png

I also attached a simple project in my test, it builds well in CW10.6.

If this does not help, please attach a simple project to help us reproduce the error. Thanks!

View solution in original post

0 Kudos
3 Replies
492 Views
TICS_Fiona
NXP Employee
NXP Employee

Is the runtime library added into the project?  Please see the screenshot in below for the necessary libraries for a Qorivva project.

lib files.png

I also attached a simple project in my test, it builds well in CW10.6.

If this does not help, please attach a simple project to help us reproduce the error. Thanks!

0 Kudos
492 Views
junesikkim
Contributor I

thank you advice. i modified setting and just occured warining after adding the library

0 Kudos
491 Views
junesikkim
Contributor I

Thank you for your advice. But but that method isn't solution to me.

That method is using code warrior project. My project was made via RAppid.

Please let me know about the floating point calculation using RAppid.

Please answer. Thank you~

0 Kudos