cancel
Showing results for 
Search instead for 
Did you mean: 

MCSDK STSPIN32g4 disable via Vcc

Favand
Visitor

Hello,

I'm working with a custom board that uses an external 12V supply for the VCC pin (gate driver supply) of STSPIN32g4. The VCC supply is interrupted by external circuitry whenever a fault is detected.

The problem I'm encoutering is that when the 12V is removed the firmware gets stuck by continuously calling the interupt "TIMx_BRK_M1_IRQHandler" in the file "stm32g4xx_mc_it.c" and no other code gets executed.

I tried to stop the timer calling this interrupt but without success.

 

The goal is to remove torque to the motor by hardware as if being connected to an enable/disable input.

 

Thank you in advance.

 

0 REPLIES 0