STSPIN32G4 random gatedriver or timer1 output shutdown
- March 26, 2023
- 2 replies
- 1332 views
Hello I am using a custom design with the STSPIN32G4.
Running open loop space vektor commutation works, but after a random amount of time the motor simply stops.Surprising is that if SPI is active the error seems to occure sooner than normal.
Everything else seems to work fine (Control loop interrupt, main loop, i2c communication, SPI communication even the timer1 interrupt).
No protection fault is being generated by the Driver. A reset and clear of the driver does not help.
A software MCU reset seems to solve the Problem for a moment.
Without a load it seems the problem does not ocure.
So my thought is that it is an EMC problem. But why does it only effect the driver or the timer?
Is there a recommended layout or a layout guide for the STSPIN32G4?
I think since a MCU software reset solves the problem temporaly and I would assume that the reset does not affect the Driver. The problem is within the Timer1.
Does anyone know how I could investigate it further? Should I reduce the FET driver current?
