Skip to main content
Explorer
August 27, 2025
Solved

Config Motor parameter without recompile

  • August 27, 2025
  • 1 reply
  • 621 views

Hello. 

I am trying to develop a BLDC motor driver. With Workbench, I can easily change the motor parameter. But whenever I change the motor, I should reconfigure and re-compile. So I would like to make a FW can change motor parameter dynamically. Is it possible with MCSDK?

 

Thank you in advance. 

Best answer by GMA

Hello @DonCC007,

It is not possible with the current Motor Control Software Development Kit (MCSDK) implementation.
You can save a binary project for each motor and load it using the STM32CubeProgrammer tool.

1 reply

GMA
GMABest answer
Technical Moderator
September 1, 2025

Hello @DonCC007,

It is not possible with the current Motor Control Software Development Kit (MCSDK) implementation.
You can save a binary project for each motor and load it using the STM32CubeProgrammer tool.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Associate II
October 16, 2025

But this may be really important in dual motor Projects.

For example if you have four different motors, each can be connected to any of the two Ports, you need to manage 16 different Firmware Versions....

This can easily happen if you initially need two different motors, and there is need for changes over time (motor discontinued, long delivery times, changing customs regulations etc.) and you still need to support existing systems using older motors with up to date firmware.

I am looking forward for a dynamic solution.

Maybe there can be a set of motor driver functions with hard coded parameters within the binary.

By a function pointers the drivers can be selected at runtime without recompiling (of course motor must be stopped before changing drivers, and the overall hardware setup must stay the same).