2025-01-12 03:27 AM
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
2025-01-13 02:34 AM
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.
2025-01-14 12:36 AM
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
2025-01-14 12:56 AM - edited 2025-01-14 01:04 AM
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 ?
2025-01-14 01:07 AM
Hi again
I use version 1.17.0 of CubeMx and generated the code using latest version of firmware.
Yes, I saved example using save as and save it in another location with new project name.
No, I did not save it in another folder before regenerating it.
yours.
Carador
2025-01-14 01:22 AM
Hello again,
I think you are mixing up CubeMx and CubeIDE. Even though CubeMx has an integrated GUI inside CubeIDE, it is a different software that is responsible for code generation. Its latest version is 6.13. On the other hand, CubeIDE manages code display and debugging, and its latest version is 1.17.
I would like to know which CubeMx version you used for generation. You can see it just before generation via Workbench.
2025-01-14 01:27 AM
Sorry
Yes, I mixed up versions.
here is the correct ones:
STM32CubeIde Ver 1.17.0
STM32CubeMX Ver 6.13.0
with best wishes,
Carador