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
pelino
Associate II

Hello @GMA 

Please review my responses.

 

Hello @pelino,

By default, Overcurrent protection and Driver protection use the same BKIN input. Using Overcurrent protection on BKIN2, if Driver protection is triggered instead of overcurrent protection, try using the default parameter settings and close the VDSMON DIS jumpers (open on your attached picture).

An issue might trigger driver protection at startup due to VDS monitoring. This issue will be resolved in the next release.

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

Hello @GMA 

As you mentioned, when I close J2, the system operates normally.

pelino_6-1769661765794.png

pelino_7-1769662038022.png

However, I still do not fully understand the behavior.

I do not understand how Overcurrent Protection and Driver Protection are detected via BKIN,

and how BKIN2 detects Overcurrent Protection.

Could you please explain this in detail?

I would also like to ask about the operation of BKIN.

Looking at the BKIN polarity, it is configured as HIGH.
So I expect that when the BKIN input pin is HIGH, the brake is applied.

MX_TIM1_Init

pelino_0-1769660570818.png

PE15 is configured as pull-up.

In that case, wouldn’t it always be HIGH,
meaning that the PWM should always be braked?

pelino_1-1769660756317.png

when checking PE15 as shown below,
it is confirmed that the signal goes LOW when a FAULT occurs.

pelino_2-1769660850710.png

 

 

MX_TIM8_Init

The BKIN2 polarity is also configured as HIGH.

pelino_4-1769661474602.png

PB6 is configured as pull-up.

pelino_3-1769661364073.png

PB6 is connected to M2_nFAULT, and M2_nFAULT is connected to VDD,

so it is always measured as 3.3 V.

Since PB6 is also always HIGH,
wouldn’t that mean the PWM is always braked as well?

pelino_5-1769661618422.png

Best Regards,

Pelino

 

 

 

 

 

 

pelino
Associate II

Hello @GMA 

I’d appreciate it if you could take a look at my responses.

pelino
Associate II

Hello @GMA 

I understand that BRK2 going low can be caused either by
VDS monitoring protection or by an overcurrent fault detected by COMP1,

which then triggers a break.

Even if BRK2 is designed mainly for Overcurrent Protection,
if BRK2 is also used by Driver Protection to evaluate voltages as shown below,
shouldn’t it be judged correctly under normal conditions?

If so, why does an error occur?
Is this potentially a hardware issue, or is it related to the protection configuration?

Also, when SCREF is disabled,
does this disable only the VDS monitoring protection, or are other protections affected as well?

 

pelino_2-1769872152881.png

 

COMP2 is used for Overcurrent Protection.

pelino_1-1769872050543.png

 

According to the block diagram below,
when either Overcurrent Protection or VDS Monitoring Protection is triggered,
the nFAULT output is asserted low.

pelino_3-1769872532363.png

However, the Control Logic block diagram above does not seem to match
the Break feature block diagram below.

 

In the lower diagram, the BRK signal is driven by the COMP1 result.

pelino_5-1769874372603.png

In the upper diagram, the Control Logic drives nFAULT instead.

 

Because of this, the two block diagrams do not appear to be consistent.

Does this mean that the block diagrams do not directly map to the actual behavior of the STSPIN32G4,
or am I misunderstanding how these protection paths are internally connected?