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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

601 Views
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 Kudos
3 Replies

479 Views
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 Kudos

479 Views
akashshah
Contributor I

Hi Mark,

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

Regards,

Akash 

0 Kudos

479 Views
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 Kudos