Protection against HRTIM output locking high
I am using an STM32G474 to create an inverting buck-boost converter, but after damaging a few boards, I realized that there is a series design issue that could short 24V to ground through an inductor if the HRTIM output pin ever goes high unexpectedly. Here is a clip from the schematic:

Note that if the top MOSFET of the half-bridge gets switched on for longer than a few microseconds, there will essentially be a short from 24V to ground through L1.
Is there a way that I can significantly reduce the chances of this happening under the following conditions?
- When using the debugger.
- When flashing new code.
- When cycling power very quickly.
- If the MCU starts executing from uninitialized memory (i.e., RAM) for any reason.
I know some features that I might be able to use, listed below, but I'm a newbie with this MCU and digitally controlled power supplies in general:
- Watchdog timer
- Over current fault detection via the pulse transformer
- Brownout power detection
- Loss of power detection interrupt
Is there a way that I can force an MCU reset that will require a power cycle to recover from if an invalid instruction is executed or if code execution is not happening from within a defined region?
Thank you!
