2025-06-13 1:26 AM - last edited on 2025-06-13 1:43 AM by Andrew Neil
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:
Open the ElectronicSpeedControl.stmcx file in STM32 Motor Control Workbench and save it to a new, empty location.
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).
Open the generated project in the target IDE (STM32CubeIDE).
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!
2025-06-13 1:32 AM
I have not used the board before but check if some fault is happening or if you can check MCU state.