PXS2010 Maths libraries not functioning

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

PXS2010 Maths libraries not functioning

1,214 次查看
twp
Contributor III

I'm using Codewarrior 10.4 with a PXS2010 board and have enabled floating point support in the project by adding:

 

#define _EWL_FLOATING_POINT 1

 

to the build prefix files.  The project is set to SPFP floating point support, however logf(x) is giving very strange results.  Following on from comments in this thread...

 

https://community.freescale.com/message/302198#302198

 

I tried adding:

 

#pragma dont_inline on

...

#pragma dont_inline reset

 

around the code using the maths libraries which has fixed the problem.  The previous thread mentioning problem this marked this issue as solved in version 10.3 libraries but I seem to be having this problem with 10.4 libraries.  Is there a fix for this issue?

标签 (1)
标记 (4)
0 项奖励
回复
1 回复

1,019 次查看
stanish
NXP Employee
NXP Employee

Hi twp,

Can you perhaps post the example project? I cannot reproduce it at the moment on my side.

Did you select "SPFP" or "SPFP_Only" in Floating point support dialog when the project was created?

Did you add #include <math.h>?

What results do you get with and without #pragma dont_inline?

Thanks for additional details.

Stan

0 项奖励
回复