2025-08-07 8:29 AM
[PN]: STSPIN32G4
[VERSION]: 6.4.0
[TOOL]: Motor Control Workbench
[DETAILS]:In this design, the second motor does not work as the interrupts that invoke the FOC_HighFrequencyTask by setting the motor ID into the array FOC_array[] are not enabled (TSK_DualDriveFIFOUpdate() is never called). Motor 1 happens to work as it's ID is 0 and the array is 0 initialised. Also the task TSK_HighFrequencyTask is only invoked at the PWM rate, not twice the PWM rate as it should be called once per motor, ie twice the PWM rate..
[EXPECTED BEHAVIOR]: The motor 2 current should be modulated but stays at 0 as the FOC_HighFrequencyTask(M2) is never called.
[HOW TO REPRODUCE]: just start motor 2 from motor pilot