EVSPIN32G4 driver protection glitching during boot-up
- March 17, 2025
- 3 replies
- 2267 views
Hi
Recently, I am working on a 3-phase hub motor with hall sensor to be able to drive low speed accurately. I came across the EVSPIN32G4 and works fine with sensorless-PLL speed sensing by using the MC Workbench V6.3.2. I precedeed to modify the hardware board to a single-shunt resistor (Instead of 3 shunk resistors)
When changing the speed sensing to hall sensing, I started to see driver protection fault errors. Occasionally when I start ST Motor Pilot V1.2.12, the Driver Protection flickers between Orange and red, with no way of clearing the fault condition, unless I reset the STSPIN32G4 (Reset button).
I tried increasing the Driver protection digital filter duration (Default 47.06 ns) to 941.18ns but it made no difference.
I tried unplugging the hall sensor, but the fault condition still happens.
I checked the cubeMX code configuration and the driver protection pin (PE15) is set to Open drain with pull-up.
I later found out that it's something to do with boot-up issue, by checking the Motor Pilot Terminal FAULTS_FLAGS (Code: 0x0019).
Why does this happen when switching sensorless-PLL to hall sensing? Is there a way to check why it is not booting up correctly (Every time I run in debug on the STM32CubeIDE and step execute the code, it does not error out) - The firmware is as is from the code generated from the MC Workbench?
Any guidance on where to look for is greatly appreciated, as I am stomp on this situation.
Kind regards,
Jimmy
