Because the hardware has been modified, the configuration code has also been modified
When detecting the internal resistance of the motor, fault_code_drv-11 was reported.
This is the measured waveform: dark blue is the power supply voltage, purple is the high side gate driver, and light blue is the low side gate driver.
The following figure shows the three high side gate drivers
The following figure shows the three low side gate drivers
I think there is an error in the waveform timing, so I monitored the output waveform of the microcontroller as follows
This is the waveform of one high side gate driver and two low side gate drivers. It is obvious that the timing is wrong, but it is not clear where the error is caused.
In addition, the motor rotated normally when running in BLDC mode.