Skip to main content
Associate II
Oct 10, 2025 1:11 PM UTC
Solved

Need tuning guide for new custom motor with EVSPIN32G4

I am trying to spin a new motor with motor pilot using EVSPIN32G4. I am not able to run it. Hitting startup failure.

Is there any quick and easy tuning guide available to tune a new motor and run smoothly?

 

GMA
GMABest answer
ST Technical Moderator
Nov 3, 2025 12:59 PM UTC

Hello @Sanchari,

Error description and management are detailed in the FOC firmware errors chapter of the user manual, accessible through Workbench tool > About > Documentations > Documentation.
MC Workbench displays all available current topologies for a specific hardware.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA

18 replies

GMA
ST Technical Moderator
Oct 13, 2025 7:38 AM UTC

Hello @Sanchari,

You can use the Motor Profiler tool embedded in MCSDK Workbench 6.4.1 to profile your motor.
Refer to the Workbench tool > About > Documentations > Documentation > User Manual, and the Motor Profiler Application Note link.

Refer to FOC Firmware errors link for error description and management.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
SanchariAuthor
Associate II
Oct 16, 2025 4:46 AM UTC

Thanks for the Motor profiler description.

But if i want to set any features or get details about what all features are supported by the control code, from where to get that details?

GMA
ST Technical Moderator
Oct 16, 2025 9:00 AM UTC

Hello @Sanchari,

The User Manual describes the motor control features and is available in the previously mentioned documentation.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
GMA
ST Technical Moderator
Nov 3, 2025 10:49 AM UTC

Hello @Sanchari,

Current sensing topologies depend on the board hardware configuration. Refer to the Board description - current sensing page for more details.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
SanchariAuthor
Associate II
Nov 3, 2025 11:47 AM UTC

Is there any documentation for the fault details and how to remove them?

SanchariAuthor
Associate II
Nov 3, 2025 12:37 PM UTC

For Single shunt operation, I have removed R31, R32, R35, R36 from the EVSPIN32G4 EVM and Shorted JP1 and JP2 on the board. But I am not able to run motor as I am getting driver protection fault.

I see different OPAMP configurations details in the user guide but not able to find out how to select those in the workbench.

Please guide me do I need to change any more hardware connection or any software change is required?

GMA
GMABest answer
ST Technical Moderator
Nov 3, 2025 12:59 PM UTC

Hello @Sanchari,

Error description and management are detailed in the FOC firmware errors chapter of the user manual, accessible through Workbench tool > About > Documentations > Documentation.
MC Workbench displays all available current topologies for a specific hardware.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
SanchariAuthor
Associate II
Nov 4, 2025 12:47 PM UTC

I am able to run motor in torque loop , but in speed loop i am getting speed feedback error. Can i get some insight on what parameter needs to be tuned for that?

 

GMA
ST Technical Moderator
Nov 4, 2025 12:59 PM UTC

Hello @Sanchari,

Speed feedback error management is also described in the FOC firmware errors chapter of the user manual documentation.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
SanchariAuthor
Associate II
Nov 13, 2025 5:41 AM UTC

Hi @GMA ,

Is there any update on the previously posted question?

 

GMA
ST Technical Moderator
Nov 13, 2025 8:25 AM UTC

Hello @Sanchari,

Did you use the Motor Profiler tool for your motor?
Why has the start-up profile table been customized? Have the full default Workbench settings been tested?
Did you review the overcurrent management section of the user manual FOC Error chapter? 

 

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
SanchariAuthor
Associate II
Nov 27, 2025 11:05 AM UTC

Hi @GMA 

I have used default MC workbench parameters and with that motor performance is better and frequency of occurrence of "Over_Current" fault has been reduced.

Now I want to test motor operation with higher PWM frequencies (more than default setting). Can you please let me know what all parameters need to be adjusted apart from the PWM frequency in workbench for smooth motor operation.