Yes, it can. The M4 even has support for floating point in hardware. You would need to change the compiler settings to take advantage of that.
Are you using PSoC Creator or ModusToolbox?
I am using PSoC Creator
You can follow these instructions to have access to the math library. It should work for PSoC 6 as well.
Unfortunately, PSoC Creator doesn't allow you to enable floating point support in a easy way. You need to follow these instructions:
Note you don't need the second step to make this work. If you don't use it, it will just take more time to process floating point operations.
1 of 1 people found this helpful
I understand that the math functions in the compiler is required, but it still would not work.......
I did get it to work by the following:
After setting the "m" in the Compiler-General, I looked at the Linker and saw that the Use newlb-nano Float Formatting was set to false so I changed it to True and it started working. This may be helpful for other users.