LPC55S69 FPU multiplication error (Hard floats)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 FPU multiplication error (Hard floats)

ソリューションへジャンプ
921件の閲覧回数
v_canoz
Contributor III

Hello,

I have a very surprising problem with LPC55S69. The hard ABI is enabled.

 

float a = 255.0;
float b = 1.0;
float res = a * b;

 

With this simple test case I get different results each time the function is called : 

 

res = 0.407566
res = 0.489081
res = 0.505314

...

 

 What can cause this?

ラベル(1)
0 件の賞賛
1 解決策
905件の閲覧回数
v_canoz
Contributor III

Hi,

Further testing showed that it's due to a stack corruption. Don't know why yet, but now I'm confident it is not related to the FPU.
Sorry for disturbing!

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
906件の閲覧回数
v_canoz
Contributor III

Hi,

Further testing showed that it's due to a stack corruption. Don't know why yet, but now I'm confident it is not related to the FPU.
Sorry for disturbing!

0 件の賞賛
911件の閲覧回数
converse
Senior Contributor V

Can you post the whole project that reproduces this?

0 件の賞賛