AnsweredAssumed Answered

How to add math.h capability to C_V4_4i_CF_SZ_MSL.a on MCF52235

Question asked by Arnaud Mazue on Jan 5, 2010
Latest reply on Jan 6, 2010 by Arnaud Mazue



I'm using an MCF52235 and I need some trigs functions.


I cannot use the full C_4i_CF_MSL.a library because it is too big, so I'm trying to add math to the SZ version, but I face several problems.


First, it seems that the library was generated once at installation and is no more build. Nevertheless there are a lot of defines in code that depends on the µC. Which defines were used when building the library ?

When I compile my own version of the lib, should I change the target value to fit with my µC ?

When using default values, I build a library with a different size from the originary one...


I switched _MSL_FLOATING_POINT, _MSL_NO_MATH_LIB and _MSL_FLOATING_POINT_IO to fit with my needs but I still have link error. I suppose I have to add some math c files to the project, but I don't know which ones. If anyone can help...


Where can I find a doc that describes what to do ?


Thanks for the help.