Skip to main content
Visitor II
July 6, 2023
Solved

MCSDK motor startup short circuit

  • July 6, 2023
  • 1 reply
  • 1238 views

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

    This topic has been closed for replies.
    Best answer by DBE

    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

    1 reply

    DBE
    DBEBest answer
    ST Employee
    September 13, 2023

    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