For past some weeks, I am facing issues of high and low side mosfet keeps burning out. Above is the schematic of my half bridge controller. Before this schematic, flyback diodes D7 and D9 were not there, so I added it. But still mosfets are burning out. I am using IRF3205 now.
I am using 24 V brushed DC motor and have a LFP battery pack at around 26 V. Where I forcefully try to stop motor from rotating, power picks up for short time and High side mosfet starts to burn and flyback diode D9 also goes bad. Low side mosfet shows Drain and Source shorted. I am driving IR2104 driver through Arduino at 18kHz PWM and power of around 100W was being drawn when mosfet fails.
Motor runs for some time but when I force to stop motor, mosfet burns out.
Request help and guidance to resolve the issue.