Hello Daniel,
I would like to make a small correction. All of the hand written code are in C. The problem is the AMCLIB functions we use in our code.
For example, we have a function to calculate the sine and cosine of an angle input.
void SinCosCal(const tFloat angle)
{
tFloat sinOut, cosOut;
sinOut = GFLIB_Sin_FLT(angle,GFLIB_SIN_DEFAULT_FLT);
cosOut = GFLIB_Cos_FLT(angle,GFLIB_COS_DEFAULT_FLT);
}
And in matlab s-function builder, we built an s-function simply call this function. However, the s-function builder has trouble building the function due to GFLIB_Sin_FLT and GFLIB_Cos_FLT even when we includes the header files for those two functions the library setting for that s-function.
The GFLIB_Sin_FLT and GFLIB_Cos_FLT functions are from library MPC564xL_AMMCLIB.a, and that's why we think the assembly code give us trouble on compiling it on a PC.
Please let us know if you have any suggestions or further questions. Thank you very much for your help.
Ruonan