floating point error

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

floating point error

跳至解决方案
1,459 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
1,335 次查看
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 项奖励
回复
3 回复数
1,336 次查看
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 项奖励
回复
1,336 次查看
junesikkim
Contributor I

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

0 项奖励
回复
1,335 次查看
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 项奖励
回复