Skip to main content
jiso
Associate
Feb 7, 2020 1:16 PM UTC
Question

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

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.

This topic has been closed for replies.

2 replies

jiso
jisoAuthor
Associate
Feb 12, 2020 2:29 PM UTC

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...
Senior III
Jun 22, 2021 5:59 AM UTC

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