cancel
Showing results for 
Search instead for 
Did you mean: 

Overcurrent Error When Applying Motor Parameters from P-NUCLEO-IHM03 to EVSPIN32G4-DUAL

pelino
Associate II

After obtaining the motor configuration parameters using the P-NUCLEO-IHM03, I applied the same motor parameter values to the EVSPIN32G4-DUAL board, which is used to drive two motors.

However, when operating the motors with these settings on the EVSPIN32G4-DUAL, an overcurrent error occurs.

Could you please explain the possible reasons for this overcurrent condition?
In particular, I would like to know whether differences in the power stage, current sensing topology, or dual-motor operation could cause this issue, even when the same motor parameters are used.

Thank you for your support.

Best regards,
Pelino

14 REPLIES 14
GMA
ST Employee

Hello @pelino,

Do you mean that you used the motor profiler tool with the P-NUCLEO-IHM03 pack to profile the motor, and after saving the result, you created a new project with EVSPIN32G4-DUAL and the motor profile result?

For Error description and management, refer to documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "(FOC) Firmware errors" link.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
pelino
Associate II

I continuously see the following warning:

NOTICE: Please disable the overcurrent protection of Stage 2 to avoid resource assignment conflict on COMP2. The power stage is already protected by STDRIVE101.

I have already disabled the Overcurrent Protection in Stage 2, however the warning still appears.

Could you please clarify:

  1. Is there any additional configuration required to completely remove this warning?

  2. Is this warning only informational, and can it be safely ignored if STDRIVE101 hardware OCP is used?

  3. Which specific setting or module is still allocating COMP2, causing this notice?

  4. Is this warning expected behavior for STDRIVE101-based boards in Motor Control Workbench?

Even after disabling Stage 2 OCP, the message remains unchanged, so I would like to confirm whether this is a known limitation or a configuration issue.

Thank you for your support.

pelino_0-1768548054138.png

 

Hello @pelino,

This is a warning message to avoid resource assignment conflicts on COMP2 and, as you mention, is independent of OCP usage.
It does not prevent project generation.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
pelino
Associate II

Why does this warning still appear even though the Overcurrent Protection is disabled?

pelino
Associate II

pelino_0-1768575167765.png

 

"C38 and C42 are not populated. Could this cause false overcurrent detection?"

Hello @pelino,

This message is a default warning, not an error. The message appears regardless of the configuration.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
pelino
Associate II

So, if Overcurrent Protection was triggered, does that mean the current exceeded 23.5 A?

pelino
Associate II

Regarding the Overcurrent Protection,

if the current exceeds the maximum current value of 1.7 A, will the protection be triggered?

pelino_0-1769043167367.png

 

Also, was the current waveform shown below measured using a shunt resistor?

Is there a way to measure or monitor the current using Motor Pilot instead?

pelino_1-1769043214651.png

 

pelino_2-1769043310266.png

Thank you for your support.

 

 

pelino
Associate II

I created an EVSPIN32G4-DUAL project using MK Workbench.

pelino_6-1769066257058.png

I am currently testing with only one motor connected to the EVSPIN32G4-DUAL.

pelino_5-1769066106522.png

As shown below, an Overcurrent Fault occurs on Motor 1.

pelino_0-1769065523715.png

Even after changing the environment settings as shown below, the Overcurrent error still occurs.

 

1. Check of the current sensing topology

pelino_1-1769065640369.png

 

2. Change the PWM frequency

pelino_2-1769065707016.png

3. Change the start-up profile

pelino_3-1769065819950.png

 

4.Modify the sensorless start-up parameters

pelino_4-1769065883117.png