on 2021-01-05 1:02 AM - edited on 2025-11-28 7:37 AM by Amel NASRI
Using the Motor Control Software Development Kit (MCSDK) I was able to:
I use MCSDK, STM32CubeMX and my preferred IDE. What is wrong with my motor-control kit?
There is one unknown point for non-familiar user. The MC application driven by field-oriented control (FOC) algorithm relies on complex calculations involving transformations and other mathematical operations that require precise timing and fast computations. It is mandatory to use the optimization level for speed in the used IDE.
The generated project contains two Build Configurations: Debug and Release.
The real code debugging with break points and stepping code rows is not possible in the MC application because we cannot lose the continuity in the generated stator field. Debug is the 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 the "Release" build configuration with the appropriate optimization settings. The image examples below illustrate this process in STM32CubeIDE.
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,