Motor not working on WAKE up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Motor not working on WAKE up

Jump to solution
913 Views
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?

Labels (1)
Tags (1)
0 Kudos
1 Solution
662 Views
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

View solution in original post

5 Replies
663 Views
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

662 Views
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 Kudos
662 Views
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 Kudos
662 Views
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 Kudos
662 Views
manishsangram
Contributor IV

Hello,

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

0 Kudos