2026-04-02
8:12 PM
- last edited on
2026-04-07
1:56 AM
by
Lina_DABASINSKA
I designed my own PCB based on the EVSTSPIN32G4 evaluation board and created a project in STM32Cube IDE. When testing the STSPIN32G4’s internal driver, I encountered an issue: no matter what I do, the GHS voltage remains at 5.8V, the GLS voltage is 0V, and the OUT voltage is also 5.8V. I have tried setting PE8 to high or ground, as well as using PWM, but the voltage on GHS1 never rises. Reading the I²C register values does not trigger any protection; the STBY value is 0 and does not enter low-power mode; the nFAULT pin remains low regardless. As far as I can tell, there are no errors. Could an expert please provide some guidance? Thank you.
The ST Community moderator has translated the post to comply with the language of the Community which is English. For more information, see: ST Community Terms and Conditions - STMicroelectronics Community
Translated with DeepL.com (free version)
Solved! Go to Solution.
2026-04-17 3:35 AM
Hello @romantic-qwy,
Did you check the STSPIN32G4 NFAULT register for the "nFAULT pin remains low" root cause?
2026-04-13 6:36 AM
Hello @romantic-qwy,
Did you enable the Driver Protection feature to report errors from the STSPIN32G4 device?
2026-04-15 2:28 AM - last edited on 2026-04-15 6:02 AM by GMA
You mean the undervoltage and overcurrent protection in the driver section? It is enabled by default in the program, and I haven’t changed it. I read the status register and no protection had been triggered. Also, I found that when setting the register, only setting VCC_VAL and changing the voltage to a value other than 8V will cause the entire system to power off and trigger undervoltage protection. I’d like to ask for your advice. Thank you.
The ST Community moderator has translated the post to comply with the language of the Community which is English. For more information, see: ST Community Terms and Conditions - STMicroelectronics Community
2026-04-15 6:14 AM
Hello @romantic-qwy,
I mentioned Driver Protection.
Refer to section 5.5.3 nFAULT output of the STSPIN32G4 Datasheet document for more details.
2026-04-15
5:44 PM
- last edited on
2026-04-17
1:49 AM
by
Lina_DABASINSKA
Hello, I haven’t used the motor library and haven’t configured the BKIN section; I’m simply generating PWM on six channels and reading the pin levels via (GPIOE->IDR & GPIO_PIN_13). When viewed on the host computer, there is a constant PWM output, but once the motor is driven, there is no PWM.
The ST Community moderator has translated the post to comply with the language of the Community which is English. For more information, see: ST Community Terms and Conditions - STMicroelectronics Community
2026-04-17 3:35 AM
Hello @romantic-qwy,
Did you check the STSPIN32G4 NFAULT register for the "nFAULT pin remains low" root cause?
2026-04-18 12:03 AM
感谢您的指导,原因是上电后就会引起RESET,而RESET是故障的一种,就会拉低nFAULT引脚表示故障,需要清除故障,我一直以为nFAULT低电平是无错误呢,万分感谢