cancel
Showing results for 
Search instead for 
Did you mean: 

MCSDK motor startup short circuit

julian3
Associate

Hello,

when referencing a position control with a new custom hardware, there is a short circuit of the power supply at the beginning of the referencing. The STM32 G4 with the MCSDK 5.4.8 is used. The setup already ran on a first own board so that the parameters worked so far. Only a new gate driver with integrated current amplifier was used. The assumption is a faulty current amplification. The TI DRV8304H is used and the circuit is designed regarding to the reference design. Is the internal amplifier circuit compatible with the MCSDK at all?

If there is any experience, I would be very pleased about. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
DBE
ST Employee

Hello julian3,

There should be no incompatibility between MCSDK and TI DRV8304H internal amplifier circuit but the amplification gain should be set accordingly in the ST MC Workbench project (current sensing panel).

you can check your current sensing by setting your firmware in open loop voltage mode. To do so, please:
- Edit your STM32CubeMx file with your favorite editor. Look for MotorControl.OPEN_LOOP_FOC and set it to true. Save your file.
- Open STM32CubeMx, load your STM32CubeMx file and generate the code.
- Flash your code and monitor "OpenLoop_ParamsM1" with your debugger.
- Start your motor and modify OpenLoop_ParamsM1.hVoltage (voltage reference in S16V) if needed. Default speed will be 100RPM, you can change it with the GUI.

Then check the current "read" by the ADC (via DAC for example) if it is what expected.

Be careful in this mode with the voltage reference as there is no current control. Please monitor also the temperature

Best regards

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

View solution in original post

1 REPLY 1
DBE
ST Employee

Hello julian3,

There should be no incompatibility between MCSDK and TI DRV8304H internal amplifier circuit but the amplification gain should be set accordingly in the ST MC Workbench project (current sensing panel).

you can check your current sensing by setting your firmware in open loop voltage mode. To do so, please:
- Edit your STM32CubeMx file with your favorite editor. Look for MotorControl.OPEN_LOOP_FOC and set it to true. Save your file.
- Open STM32CubeMx, load your STM32CubeMx file and generate the code.
- Flash your code and monitor "OpenLoop_ParamsM1" with your debugger.
- Start your motor and modify OpenLoop_ParamsM1.hVoltage (voltage reference in S16V) if needed. Default speed will be 100RPM, you can change it with the GUI.

Then check the current "read" by the ADC (via DAC for example) if it is what expected.

Be careful in this mode with the voltage reference as there is no current control. Please monitor also the temperature

Best regards

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.