The deadtime has been disabled in the code due to the decreasing in the swithing time of the transistor. It was achieved reducing the gate resistances from 1000Ohms to 36Ohms.
Now the voltage waves are square and have a 0.48us delay respect to the original signal generated on the stm32 and the transistor do not heat (when not connected to the motor).

 # Please enter the commit message for your changes. Lines starting