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

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

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

1,326 次查看
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,204 次查看
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,204 次查看
akashshah
Contributor I

Hi Mark,

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

Regards,

Akash 

0 项奖励
回复

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