About the acos and square module in  the Motor Control Development Toolbox for MPC564xL v1.3.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About the acos and square module in  the Motor Control Development Toolbox for MPC564xL v1.3.0

ソリューションへジャンプ
1,908件の閲覧回数
edenli
Contributor V

These days,I testing the MCLIB of the  Motor Control Development Toolbox for MPC564xL, up to now,i built the model using the acos and square in NXP_MCLIB,comparing the model with acos and squre module in Matlab/simulink, but the answer is not the same,i don't know the reason.

the model shown:

181069_181069.pngpastedImage_1.png

the attachment is the model about Acos &Sqrt:

Original Attachment has been moved to: Acos_and_Squrt.mdl.zip

0 件の賞賛
返信
1 解決策
1,699件の閲覧回数
Daniel_Popa
NXP Employee
NXP Employee

Hi Eden Li,

I found the issue. The SQRT implementation used in the toolbox is faulty. The “MC Toolbox for MPC564xL v1.3.0” from the web contains a very old Beta release rev 0.91 of the Automotive Math and Motor Control Library Set (AMMCLIB) for MPC564xL (released in 15. August 2011). In the mean time, some of the issues were fixed and the latest available AMMCLIB RTM release v1.1.8 (available for evaluation purposes via web http://www.nxp.com/automclib) contains a fix for the issue.

All you have to do, is to download the v1.1.8 and then to copy-paste 4 files from the v1.1.8 into the MPC564xL v1.3.0 installation folder.

The files needed to be replaced are:

GFLIB_Sqrt_SF_FLT.c

GFLIB_Sqrt_SF_FLT.mexw64

GFLIB_Sqrt_SF_FLT.mexw32

GFLIB_Sqrt_SF_FLT.tlc

Those files can be found in the v1.1.8 library under ..\bam\GFLIB\bam_flt\ folder and should be copy into ..\rappid564xl\MCLIB for MPC564xL\bam\ folder

You should get this result.

sqrt.JPG

Hope this helps!

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,699件の閲覧回数
Daniel_Popa
NXP Employee
NXP Employee

Hi Eden Li, 

In this particular use case, the sqrt() has an issue. Basically it outputs the same value as the input - no processing is done. I'm investigating this and come back with a feedback.

In respect with ACOS() a similar explanation as for ASIN() is applicable. See The question About the GFLIB_Asin function in NXP.

Best regards,
Daniel

0 件の賞賛
返信
1,700件の閲覧回数
Daniel_Popa
NXP Employee
NXP Employee

Hi Eden Li,

I found the issue. The SQRT implementation used in the toolbox is faulty. The “MC Toolbox for MPC564xL v1.3.0” from the web contains a very old Beta release rev 0.91 of the Automotive Math and Motor Control Library Set (AMMCLIB) for MPC564xL (released in 15. August 2011). In the mean time, some of the issues were fixed and the latest available AMMCLIB RTM release v1.1.8 (available for evaluation purposes via web http://www.nxp.com/automclib) contains a fix for the issue.

All you have to do, is to download the v1.1.8 and then to copy-paste 4 files from the v1.1.8 into the MPC564xL v1.3.0 installation folder.

The files needed to be replaced are:

GFLIB_Sqrt_SF_FLT.c

GFLIB_Sqrt_SF_FLT.mexw64

GFLIB_Sqrt_SF_FLT.mexw32

GFLIB_Sqrt_SF_FLT.tlc

Those files can be found in the v1.1.8 library under ..\bam\GFLIB\bam_flt\ folder and should be copy into ..\rappid564xl\MCLIB for MPC564xL\bam\ folder

You should get this result.

sqrt.JPG

Hope this helps!

Daniel

0 件の賞賛
返信