Motor not working on WAKE up

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

Motor not working on WAKE up

ソリューションへジャンプ
908件の閲覧回数
manishsangram
Contributor IV

We are using S12ZVMC128 Kb MCU

 

What is the deal with GDU / PTU / ADC with respect to STOP mode ?

 

When the system resumes (wakes up from STOP) the motor has stopped working. We are assuming that some initialization with respect to motor driving modules such as GDU/PTU/ADC is lost when the MCU goes into STOP and wakes up?

ラベル(1)
タグ(1)
0 件の賞賛
1 解決策
657件の閲覧回数
alejandro_cervantes
NXP Employee
NXP Employee

Hello Manish,

I think the API interrupt is not configured correctly, as the BLDC motor project use their own vector table could be kind of tricky add an interrupt.

I did a quick setup with a BLDC projec but I didn´t find any problem.

In this project the API interrupt is toggle the PS5 LED every 11sec.

To enter in stop mode you need to change the flag variable (flag=1) while debugging.

After API interrupt is driven the motor start to spin again.

Please check it and any question just let me know.

Regards,

Alejandro

元の投稿で解決策を見る

5 返答(返信)
658件の閲覧回数
alejandro_cervantes
NXP Employee
NXP Employee

Hello Manish,

I think the API interrupt is not configured correctly, as the BLDC motor project use their own vector table could be kind of tricky add an interrupt.

I did a quick setup with a BLDC projec but I didn´t find any problem.

In this project the API interrupt is toggle the PS5 LED every 11sec.

To enter in stop mode you need to change the flag variable (flag=1) while debugging.

After API interrupt is driven the motor start to spin again.

Please check it and any question just let me know.

Regards,

Alejandro

657件の閲覧回数
alejandro_cervantes
NXP Employee
NXP Employee

Hello Manish,

For ADC: The ADC need to be idle (no conversion  sequence or command sequence list ongoing)

For GDU: When entering in stop mode the GDU module is disable so once you are in run mode you need to enable the GDU module again.

How are you waking up the MCU? are you using a CAN signal or a timer interrupt?

Regards,

Alejandro

0 件の賞賛
657件の閲覧回数
manishsangram
Contributor IV

Hello,

We are waking up by Timer (API) and also by GPIO interrupt.

We are not 'turning off' ADC before going to sleep but ADC is only used by the Motor loop and code using Command Arrays, and considering that we can successfully sleep it means no ADC interrupts are firing.

Is there any reference code for how to wake up ?

0 件の賞賛
657件の閲覧回数
iggi
NXP Employee
NXP Employee

Hi Manish,

Do you use our SW (PMSM or BLDC sensorless) to drive the motor or you use your own written?

Regards,

iggi

0 件の賞賛
657件の閲覧回数
manishsangram
Contributor IV

Hello,

We use the same software as provided with Minibrd for BLDC motor sensorless

0 件の賞賛