So I have a 48 V system with an STM32 controlling a gate driver which has a 12 V supply switching MOSFETs on the 48 V rail. Occasionally, for whatever reason that doesn't form part of this question, the system gets unhappy and the gate driver releases 48 V into... Other things.
I think it mainly gets onto the 12 V rail. This is easily dealt with by having a diode between the 12 V PSU and the gate driver 12V. I think this has been the failure mode since the 3.3 V and 5 V regulators toasted.
The other place it could be getting to is the STM32 line s connected to timer 1 pins. PA8 9 10 and PB13 14 15.
The question is how to protect this such that the MCU remains not dead. It's logging and I would like to retrieve those logs. If it remains repairable by changing the gate drivers that's even better.
I'm thinking it's basically impossible to kill things with 48 V through a sufficiently large resistor. 1 MΩ would obviously make it completely immune regardless of the st injected specs, you can't even feel 240 V through 1 MΩ. But 1 MΩ would probably also make the lines sensitive to noise and the drivers have a 100 kΩ pull down so that would be hopeless.
10 kΩ probably would drive the gate driver, but fast enough? It needs ~50 ns accuracy. There's about 500 ns dead time and 20 kHz PWM so that sets the expectation. But would this protect the STM?
Is there any other simple cheap low board space method for dealing with this?
Edit: I'm using a standard bridge with large toll MOSFETs and ir2181 style drivers (copies due to availability). The proposition is to put the high impedance between the ir2181 and the stm.
It's running a motor, 3 phase, and I'm pushing it deep into flux weakening so when that collapses the voltage generated is several times the bus voltage, the mos blow, high voltage EVs up on the gate lines, general not nice ness. Edit 2: