Hi everybody,
I have written a program on the K65 MCU which performs some controls and a few calculations. Looking at execution times I found out that the calculations performed were the instructions that took the most time.
These calculations are simple multiplications between float variables and I think that some micro-seconds for each multiplication is really too high, considering I have a 120 MHz clock! probably there is something missing in my code or there are some compiler options which I have not set properly so I am asking you:
Cheers,
Giulio
Hi
Do you compiler for HW FPU use?
These flags are needed by GCC:
-mfloat-abi=hard -mfpu=fpv4-sp-d16
Regards
Mark
Yes, these are my compiler settings:
Hi
Besides to set the compiler, it also need to enable FPU with below code:
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------