STM power up with motor running
STM32F405
MCSDK = V5.4.5
f_pwm = 10kHz
High frequency task = 10kHz
Medium frequency task = 1kHz
Position and speed = Hall (main) & STO+PLL (auxiliary)
Current sensing = 3 x 3mOhm shunts
Is it possible with the MCSDK to power up the processor with the motor shaft already rotating and start the controller without the motor coming to a halt? When I try this the motor drives with a very strange noise until the motor is first stopped, after that it runs normally.
I think the cause of this is that the Hall effect initialisation doesn't work correctly if the motor shaft is rotating (perhaps HALL_Clear()->HALL_init_electrical_angle() relies on the motor not rotating?).
Can anyone tell me if this is the likely cause and if so, is there any way to startup the MCSDK code and run the speed/current controller if the motor shaft is already rotating at power up?
