cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate working code from ST Motor Control Workbench to STM32CubeIDE?

jiso
Associate

I'm trying to generate code so I can evaluate STEVAL-ESC001V1.

However the code I'm able to generate either does not have all the header files present or when manually finding and adding those files the code compile gives just an error 1 and nothing else.

Steps I have done are:

  1. Install STM32CubeIDE 1.2.0
  2. Install STM32CubeMX 5.4.0
  3. Install Motor Control package 5.4.3
  4. Configure all the correct parameters for STEVAL-ESC001V1.
  5. Press Generate code.
  6. Import the code in STM32CubeIDE
  7. Observe bunch of errors when compiling.

I see other people have been also struggling with motor control workbench and there seems not the be any solution for this.

2 REPLIES 2
jiso
Associate

After many hours seems like the moon was in correct position as the code was generated correctly.

For some reason the STM32CubeIDE project was not generated at all in the first place. It only generated STM32CubeMX project which could not be imported to STM32CubeIDE as a working project and therefore could not be compiled.

Laurent Ca...
Lead II

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards