Custom board MCU shorted and sensed voltage too low.
I am having trobule getting a custom motor control board to work. The design of the custom board is really close to the STEVAL SPIN 3201. So it uses the STSPIN32F0 and is supplied with 24V.
When I start the motor and ramp up to the point where the board draws around 10A from the voltage source - a speed feedback or under voltage fault occurs or the mcu gets shorted (no smoke or any visible signs).
I noticed that going up in speed the MC Workbench Monitor shows that the board detects lower bus voltage than the supply voltage (which stays constant during motor Operation at 24V) so that eventually an under voltage fault may occur if there is no speed feedback fault before..
On two boards the MCU got shorted (VDD connected to GND) after running the motor a few times.
Currently I have no idea what could cause the sensed voltage to be too low and the shortage in the MCU. I think these two issues are connected to each other.
I verified that the bus voltage sensing network is correct. When the motor does not spin the sensed voltage matches the supplied voltage. The sensed voltage continuously decreases when spinning the motor faster.
After removing one of the dead MCUs from the circuit I could confirm that the GND VDD shortage comes from inside the MCU.
Could the shortage in the MCU be caused by EMC problems?
At first I thought the minimum dead time configured in MC Workbench might be too low for the mosfets but after calculating the exact values I noticed that the minimum dead time is set far higher than the required minimum dead time (required below 100ns but Minimum dead time is set to 700ns). I also did not connect any input or output pins when the MCU got shorted (I did only modify the firmware using MC Workbench and I did not include any custom code).
Do you have any suggestions where the problem could come from or what I can do to find the error?
