I use F28069M FPU for my motor control application. I want to use intrinsic functions such as __sin(), __cos(), what library and header files should be referenced? Anything special should be done in a linker command file?
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I use F28069M FPU for my motor control application. I want to use intrinsic functions such as __sin(), __cos(), what library and header files should be referenced? Anything special should be done in a linker command file?
Thanks!
Louis,
There are no header/include files for intrinsics, and no function prototypes. Intrinsics are not really functions. You do not need to do anything special in the linker .cmd file. Intrinsic code will appear in the same section as the rest of the code it is being used in.
Regards,
- David
Louis,
You are trying to use intrinsics that require the TMU (trigonometric math unit) on the device. TMU is only on TMS320F2837x devices so far. Are you using one of these devices? Do you have TMU0 selected in the project options?
If you do not have TMU0 selected, you will get the errors you cited. But remember, you cannot just select TMU0 unless you are using a F2837x device or the code will not work.
Regards,
David
-------------
Edit: I just re-read your original post. You are using F2806x. You cannot use the intrinsics you've referenced on that device.