cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-ESC001V1 example code generate failed

AngHung
Associate

1. Hardware / Software setup

Board: STEVAL-ESC001V1 (MCU: STM32F303CBTx)
Motor: BullRunning BR2804-1700 kV
STM32 Motor-Control SDK: 5.4.8 (C:\…\MC_SDK_5.4.8)
MC Workbench: 5.4.8.21553
STM32CubeMX: 5.4.0, 5.6.1, 6.4.0
STM32Cube F3 FW: 1.11.3
Target tool-chain: STM32CubeIDE 1.15
Drive type: HAL

2. What I have tried
Deleted the generated folder and ran Generation again → same result.

Re-installed/selected CubeMX 5.4.0, 5.6.1, 6.4.0 → all produce identical errors.

Checked MCSDK release notes – unclear which CubeMX revision is officially supported.

3. Questions
How to use the example code to the eval board

4. Extra information
log is attached; let me know if the .ioc or code snippets are needed.

Thanks in advance for any guidance!

3 REPLIES 3
cedric H
ST Employee

Hello @AngHung 

The release note contains the tools and versions used at the time of the MCSDK release.

For the 5.4.8 it is 

  • STM32CubeMX v6.4.0
  • STM32Cube_FW_F3_V1.11.3

Could you do a screen shot of the project generation window? The point is to check if the main.c/main.h has been generated and if the project is complete.

For curiosity, why do you use MCSDK 5.4.8 and not the latest MCSDK 6.4.0 (or MCSDK 6.3.2) ?

Regards

Cedric

AngHung
Associate

Hi Cedric,

Thank you for the quick feedback.

Why I’m still on MCSDK 5.4.8
The 5.4.8 branch is the last one where I can still find a ready-made STEVAL-ESC001V1 FOC/3-shunt example inside MC Workbench.
In 6.3.x / 6.4.x the board no longer appears in the example list (or at least I couldn’t locate it).
If there is a new way to import or recreate that project in MCSDK 6.x I’m happy to migrate—just let me know.

 

Generation status

main.c / main.h are generated and the CubeIDE 1.15 build is clean.

Flashing succeeds; the ESC beeps, so PWM timer and gate driver seem alive, but the motor never completes start-up.

 

Test setup

  • Board : STEVAL-ESC001V1 (default 3-shunt HW)
  • Supply : 18V
  • Motor : AXi 2814/28 620kV outrunner
  • Firmware : MCSDK 5.4.8 + CubeMX 5.4.0 + FW 1.11.5

 

What I did

Motor Profiler spins the motor fine and produced
Imported those parameters in Workbench, kept default start-up sequence, re-generated code.

 

Observed behaviour

Start-up beeps → brief chirp (alignment) → current rises to 0.1 A → Start-up beeps.

 

Many thanks for your guidance!

Hello @AngHung,

The example can be fully generated with MCSDK 6.3.2 or 6.4.0 version, just select the board and your motor if you profiled it, and enable the Electronic speed control from the "Stage configuration" :

cedricH_0-1751460427671.png

If you need to profile your motor, then enable the motor profiler from "Application Configuration". Be careful that profiler project cannot work conjointly with ESC enabled. 

My advice is to generate your project without ESC enabled first and check with the motor Pilot if you can control your motor as expected. Once it is Ok, re-generate your project with ESC enabled.

If it works with MC Pilot, but not with PWM control, your issue is the PWM shape you apply that is not aligned with the esc state machine that you can find in esc.c.

Please have a look at the following post : Solved: Re: STEVAL ESC001V1 PID Tuning - STMicroelectronics Community

Regards

Cedric