How to perform floating point math on M0+ based KL16?

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

How to perform floating point math on M0+ based KL16?

1,305件の閲覧回数
akashshah
Contributor I

The processor doesn't allow me to do any math with floating point value, Is there is anyway that I can make calculation using software?  grushbrushmichaelgoudey

0 件の賞賛
返信
3 返答(返信)

1,183件の閲覧回数
mjbcswitzerland
Specialist V

Hi

If you enable FP library support in the tool chain you will be OK (it will just be quite a lot slower than on a processor with HW FPU.

Eg. in KDS

pastedImage_1.png

Regards

Mark

0 件の賞賛
返信

1,183件の閲覧回数
akashshah
Contributor I

Hi Mark,

Thanks for response, How can I add this library into my current project in KDS?  

Regards,

Akash 

0 件の賞賛
返信

1,183件の閲覧回数
mjbcswitzerland
Specialist V

Akash

Just click that button - there is usually nothing more to do (as long as you haven't disabled the use of default libraries, in which can you can remove the linker option "-nodefaultlibs").

Regards

Mark

0 件の賞賛
返信