Skip to main content
Associate II
January 12, 2025
Solved

Motor Control Board Customization

  • January 12, 2025
  • 1 reply
  • 1381 views

Hi every one

I have defined a custom motor and inverter successfully.

Now I need to define custom features like a simple Digital output(LED for instance).

Is there any way?

or should I cut working on stmcubemx and continue coding after code generated by workbench.

 

in other words:

Is there any way to modify workbench generated .ioc file and again generate project file after editing it?

(for example after adding a digital output?)

Thanks a lot

Best answer by Gael A

Hello Carador,

After the .ioc generation via WorkBench, you are allowed to configure again your project using CubeMX to fit your application, and re-generate again without tampering with the motor control code. Obviously, this only works if you don't modify the Motor Control related configuration done by the Workbench.

1 reply

Gael A
Gael ABest answer
ST Employee
January 13, 2025

Hello Carador,

After the .ioc generation via WorkBench, you are allowed to configure again your project using CubeMX to fit your application, and re-generate again without tampering with the motor control code. Obviously, this only works if you don't modify the Motor Control related configuration done by the Workbench.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
CaradorAuthor
Associate II
January 14, 2025

Hi Dear Gael A

Thanks to your great response.

There is a little problem here: 

I generate and compile V/F example without any problem.

Then I open Stm32Cubemx and with no modification again generate the code using it.

This time after compilation I face with this error: 

fatal_error: arm_math.h No such file or directory

 

I know I may be able to dig the code and overcome this error but I think there is a bug in version 6.3.2 or I am making a mistake that is not clear to me.

would you please help me?

Thanks

Gael A
ST Employee
January 14, 2025

Hello Carador,

As you are using an example, the handling is a bit different. Let me ask a few questions :

First, what version of CubeMx are you using for code generation ?
Did you save the project in a different folder with CubeMx before re-generating ?

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.