2017-07-23 01:33 AM
Hi there,
The idea is to use the same driver pins for PMSM(FOC based) and BLDC(own library) motors.
FOC SDK 4.30 allows to initialize the same pins for only one type of motor (PMSM in my case). Is the any way to stop/delete the motor object to use these pins for BLDC?
The way I see it if PMSM is active:
1. Call
PWMC_SwitchOffPWM(oCurrSensor[bMotor]);
FOC_Clear(bMotor);
MPM_Clear(oMPM[bMotor]);
2. Save settings for specified Timer(PWM) used for PMSM.
3. Initialize PWM for BLDC.
4. Use BLDC.
4. Restore saved setting.
5. Use PMSM.
I would really appreciate any help with this.
Thanks,
Stan
#foc-sdk-4.3.0 #stm32f3 #pmsm