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!

2 REPLIES 2
STuser2
Senior

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

GMA
ST Employee

Hello @aj8791,

Are you using the MC Motor Pilot tool? Does an error occur (pMCI table, Faults parameters)?

For restarting without flashing with the IDE, use Debug mode:

GMA_0-1753710026292.png

And use the "Reset the chip and restart debug session" feature.

GMA_2-1753710385003.png

 

 

 

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