How to use the Motor Control Libraries?

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

How to use the Motor Control Libraries?

1,804件の閲覧回数
Alberto_g
Contributor III

I'm trying to use CW 10.5 and CM0MCLUG.

When calling whatever function, ex.  GFLIB_Sin_F32,


PE_DEBUGHALT() is reached.

The following code is executed, it does not look like a proper sin function.

00000000:   movs r0,r0

00000002:   movs r0,#0

00000004:   lsrs r5,r0,#1

00000006:   movs r0,r0

00000008:   lsrs r1,r0,#32

0000000a:   movs r0,r0

0000000c:   lsrs r1,r0,#32

0000000e:   movs r0,r0

00000010:   lsrs r1,r0,#32

00000012:   movs r0,r0

00000014:   lsrs r1,r0,#32

00000016:   movs r0,r0

00000018:   lsrs r1,r0,#32

0000001a:   movs r0,r0

0000001c:   movs r0,r0

0000001e:   movs r0,r0

...

What's going on?

Does an example of motor control code for CW exist?

If I understood correctly the motor control application notes are all for IAR.

Better stick with 56F for these kind of things?

Regards

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,560件の閲覧回数
Paul_Tian
NXP Employee
NXP Employee

Hi, Alberto

Would you please help to tell me which type motor do you want to control? PMSM or BLDC? We might have a better solution for your reference.

Best Regards

Paul

0 件の賞賛
返信

1,560件の閲覧回数
Alberto_g
Contributor III

Sorry, I forgot to mention we are interested in sensored PMSM. Position feedback will be by resolver.

Regards

0 件の賞賛
返信

1,560件の閲覧回数
Paul_Tian
NXP Employee
NXP Employee

Hi, Alberto

You can find some reference design from this link http://www.freescale.com/webapp/sps/site/application.jsp?code=APLPMSYNCMO&fasp=1&tab=Design_Tools_Ta...

They are use our popular product Kinetis series.

Hope my reply can help you. Any question, please contact to me easily.

Best Regards

Paul

0 件の賞賛
返信

1,560件の閲覧回数
Alberto_g
Contributor III

All of these reference designs are for IAR. Am I right?

The Motor Control Libraries should work with CW and GCC, but behaves as above for me.

Am I doing something wrong?

Regards

0 件の賞賛
返信