I ported my FOC motor control project from Multi-Axis DMC EVM [R3] (F28035 based) platform to DRV8312EVM RevD (F28069M based) platform (I'm not using InstaSpin FOC features), I had problem in closing current PI control loop.
After looking into phase current waveforms, I found that the phase current phase shifting is much different on the two platforms. From the attached document, you can see that the phase A current leads its voltage about 30 degrees on the old platform, however, the phase A current lags its voltage about 150 degrees on the new platform, which results in the opposite sign of the Iq and Id between the reference and the feedback.
There are no implementation differences in the control laws and FOC algorithms beyond low level drivers, although I noticed that there is a 4.7 uH inductor on each phase (OUT_A/_B/_C) on the new platform, while the old platform does not have such inductors.
I'm out of ideas these days, please help look into this issue. Thank you!