on
2021-01-05
1:02 AM
- edited on
2025-08-01
1:25 AM
by
Laurids_PETERSE
I have followed all the steps presented in the Motor control Getting started:
I use MCSDK v5.x, STM32CubeMX v6.x and STM32CubeIDE v1.x. What is wrong with my MC Kit IHM03?
There is one unknown point for non familiar user. The MC (Motor Control) application driven by FOC algorithm is based on a bit complex calculations of transformations and another mathematics which request precise timing and fast computations. It is mandatory to use the optimization level for speed in used IDE.
The generated project for STM32CubeIDE contains two Build Configurations: Debug and Release.
The real code debugging with break points and/or stepping in over code rows is not possible in the MC application because we cannot loose the continuity in generated stator field. The Debug is a default configuration. The optimization in this configuration is switched off.
We have to switch on the optimization level for speed or we have to use "Release" build configuration with well switched on optimization.
It does not work with STEVAL-SPIN3202,
If it is HAL - Example program will not fit in Flash.
If it is LL - it will fit.
Anyway, it does not connect with ST MotorPilot via UART for some unknown reason that no one wants to help me with,