cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-ESC001V1: motor no longer responds to PWM after restart

aj8791
Associate

I am using the following tool versions:

  • MC Workbench: v5.4.8

  • STM32 Firmware Package: v1.11.3

  • STM32CubeMX: v6.2.0

Here are the steps I follow:

  1. Open the ElectronicSpeedControl.stmcx file in STM32 Motor Control Workbench and save it to a new, empty location.

  2. Go to Tool → Generation. In the dialog window that opens:

    • Select STM32CubeMX v5.2.0 or later

    • Choose STM32CubeIDE as the target toolchain

    • Select STM32 FW V1.11.3 or later for the firmware package

    • Ensure the HAL (Hardware Abstraction Layer) option is selected for Drive Type

    • Click UPDATE to proceed

    This starts the code generation process.
    Then click RUN STM32CubeMX to open the .ioc file in STM32CubeMX.
    Once opened, click Generate Code (top right corner).

  3. Open the generated project in the target IDE (STM32CubeIDE).

  4. Build the project and flash the resulting .bin file to the MCU using STM32CubeProgrammer and ST-Link V2.

After flashing, the motor starts beeping and runs smoothly when PWM signals are applied. However, once the board (STEVAL-ESC001V1) is restarted, the motor no longer beeps or responds to PWM input. The only way to get it working again is to re-flash the .bin file.

Can anyone help me understand why the motor stops responding after a restart and what I can do to fix it permanently? Any suggestions would be greatly appreciated!

1 REPLY 1
STuser2
Associate III

I have not used the board before but check if some fault is happening or if you can check MCU state.