SVPWM signal seems wrong for some Sectors on MCWSDK 5.4.8
Hi guys, I'm new on this forum
I'm using the MCWSDK v5.4.8 to drive a custom control and power board on a big Hub motor (17" from YM) using hall sensors.
The simptom I'm facing is that every time I try to start the motor with a command as MC_ProgramTorqueRampMotor1 or MC_ProgramSpeedRampMotor1 the motor tries to start. It starts, turn for close to 1° and then abruptly stop right after.
I get a MC_SPEED_FDBK right after, because this event pulls lots of current from the power source. The power source protects it by cutting of the supply thus powering off the hall sensors.
While investigating the problem, we disconnected the phases wires and just connected the Hall connections to check the SVPWM signals for each sectors, by turning the motor by hand. We noticed that in some of the sectors, there is only one phase with a PWM signal while the other ones are either fully open (0% duty cycle) or fully closed (100% duty cycle) in a fashion that while one phase is open, the other is closed. I don't know if this behaviour is expected but I imagine that this is the cause to the overcurrent events.
The following contents are measures between phase output conection and GND
These consecutive sectors seems fine



But these following consecutive states, doesn't



The results is the following. Note that on these photos, the motor phase connections where connecte to the board and each phase was evaluated.



These are the SVPWMs beeing generated while the power sourcer is shutting down due the overcurrent. Thats why it has this downward shape.
We know that on the OFFSET_CALIB state, all three phases are on 50% duty for calibration. But as soon as they get different values from each other, the power supply stops powering the circuit thus lowering the SVPWM signal voltage (as shown on the last image).
We already checked the deadtimes for shorts, and the 500ns value we setted up is ok.
My question are:
Why are these 3 sectors signals looks like this? Is this normal?
Is there a API handdler to control the BUS current? We have ICS on phases A and B.
