Skip to main content
Associate II
July 15, 2024
Question

Motor Control Help - EVLDRIVE101-HPD

  • July 15, 2024
  • 2 replies
  • 3428 views

Hi,

I can't manage to get my motor to work with the EVLDRIVE101-HPD board. I have generated the FOC firmware and uploaded it to the board through STM32CubeIDE. See attached for main.c

Is there something else I need to do? I have followed everything in the user manual for the board, but it is quite minimal in it's instructions.

I have done all of these steps.

"To start your project with the board:
1. Connect the brushless motor phases to J1, J2, and J3
2. Supply the board through J5 (positive) and J6 (ground)
3. Download the compiled code through the SWD interface connecting the STLINK programmer to J7
(STDC14 connector)"

After these steps, the board is powered up but there is no PWM signal on the phases. It is a constant 0V. 

Any help will be appreciated, 

Thanks!

 

    2 replies

    Gael A
    ST Employee
    July 15, 2024

    Hello mitch1,

    Could you please tell me which version of the MCSDK you are using ?
    Have you connected the MotorPilot to the board (refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"Getting Started with ST Motor Control SDK", "Motor pilot" chapter)? Is it returning any error, is the VBUS correctly asserted for example ?

    In any case, there is no default start in the Main.c init procedure. You can also use APIs available in mc_api.c to start your motor.

     

    If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
    mitch1Author
    Associate II
    July 15, 2024

    Hi Gael,

    I have not connected the MotorPilot to the board as it can't detect it, which I assume it is because it is not compatible with the STM32G0 IC on the EVLDRIVE101 board, stated in the MotorPilot document; 

    "It is not possible to generate a motor profiler binary with the STM32F0, STM32G0, STM32C0 families"

    Is it possible to run the board without the MotorPilot step?

    mitch1Author
    Associate II
    July 16, 2024

    I am using MCSDK 6.3.0

    Update to this:

    I added MC_StartMotor1(); in the code, in the while(1) loop:

    And on power up, it starts the motor for a split second with the correct PWM output I have set.

    So I guess everything is running ok? Just need to figure out how to code it correctly for the motor to run continuously?

    Any ideas on how to do this?

     

     

     

    GMA
    Technical Moderator
    July 23, 2024

    Hello @mitch1,

    "Driver protection" is the error generated by STDRIVE101 Driver, please refer to UM3257 documentation, 4.2 Current sensing chapter and check if your application current level e.g. corresponds to "default threshold".

    You can also have a look to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual", "Firmware errors" link, "2. Over Current" chapter.

    If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA