Skip to main content
GWenJ.1
Associate II
November 21, 2022
Question

STSPING4 VDS protection triggered.

  • November 21, 2022
  • 4 replies
  • 1120 views

About EVSTSPIN32G4, I started the code generated by MotorControl Workbench 5. Y.3 normally.If you transplant the IIC configuration of the pre drive and enable PWM output, the VDS will report an error.After carefully reading the generated code, it is found that before PWM complementary output, the lower tube is opened for charging, and the output PWM pre drive or VDS protection is written. Is there a routine for STSPIN32G4 IIC to configure PWM output?

4 replies

浚钱.1
Associate II
March 7, 2024

Is there an IIC interface or initialization in the code generated by STSPING4 using Workbench? I don't remember. And, after adding the IIC configuration register, the chip always reports VDS errors. What should I do?

Associate
October 26, 2025

I encountered this issue as well: once all fault bits are cleared (by writing 0xFF to CLEAR) and output mode is enabled (by setting MOE to 1), the VDS bit in STATUS gets set to 1.

This happens even though my SCREF voltage is already at 2V.

*This post has been translated from Chinese to comply with the ST Community guidelines.

Visitor II
March 7, 2026

我与遇到同样的问题 就是突然会报VDS故障 请问有人知道为什么吗

 

GMA
Technical Moderator
March 9, 2026

Hello @qhc20020121,

The language of the Community is English, as stated here
Refer to the STSPIN32G4 datasheet document for more details about VDS monitoring.
The VDS monitoring protection feature can be disabled by setting the SCREF input to VDD.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
federico.rodighiero87
Explorer
March 19, 2026

in my experience vds sensing of stspin32g4 works, probably it is not perfect but it cause me no issues. For sure you have to do a good layout and set it correctly. Did you do basic calc of rdson and expected current to set it ? did you change the deglitch ?

HW/FW Motor Control Engineerhttps://www.linkedin.com/in/federicorodighiero/