Skip to main content
ZHOUXIANG
Associate III
August 12, 2025
Solved

Project doesn't contain codes about ICL(inrush current limiter)

  • August 12, 2025
  • 1 reply
  • 219 views

hi,

I have set ICL configurations in the MC workbench, but the generated project doesn't include "inrush_current_limiter.h" , "inrush_current_limiter.c" and any related calls, just some ICL parameters macro. What is wrong?

Environment:

MC Workbench: 6.4.1

CubeMX: 6.15.0

CubeIDE: 1.19.0

Firmware Package: 1.6.1

ZHOUXIANG_0-1754960558557.png

ZHOUXIANG_1-1754960568462.png

ZHOUXIANG_2-1754960585114.pngZHOUXIANG_3-1754960602389.png

 

 

 

Best answer by Fabrice LOUBEYRE

Hi Zhouxiang,

Unfortunately, the ICL feature is not currently supported by the 6-step algorithm. We apologize for this inconvenience. Only the FOC algorithm supports this board feature. The MCSDK 6.4.1 WB mistakenly allows you to configure it with the 6-step algorithm.

Modifying your code to manage this feature should not be difficult. In addition to the 6-step project generated with the ICL feature:

One solution is to first replace the following files in the project directory with the attached ones:

Src\mc_config.c and mc_tasks_sixstep.c

Inc\mc_config.h

Add the following files from the library to the project configuration file of your integrated development environment (IDE) for compilation.

MCSDK_v6.4.1-Full\MotorControl\MCSDK\MCLib\Any\Src\inrush_current_limiter.c and digital_output.c

MCSDK_v6.4.1-Full\MotorControl\MCSDK\MCLib\Any\Inc\inrush_current_limiter.h and digital_output.h

Best regards.

Fabrice

 

 

1 reply

Fabrice LOUBEYRE
Fabrice LOUBEYREBest answer
ST Employee
August 13, 2025

Hi Zhouxiang,

Unfortunately, the ICL feature is not currently supported by the 6-step algorithm. We apologize for this inconvenience. Only the FOC algorithm supports this board feature. The MCSDK 6.4.1 WB mistakenly allows you to configure it with the 6-step algorithm.

Modifying your code to manage this feature should not be difficult. In addition to the 6-step project generated with the ICL feature:

One solution is to first replace the following files in the project directory with the attached ones:

Src\mc_config.c and mc_tasks_sixstep.c

Inc\mc_config.h

Add the following files from the library to the project configuration file of your integrated development environment (IDE) for compilation.

MCSDK_v6.4.1-Full\MotorControl\MCSDK\MCLib\Any\Src\inrush_current_limiter.c and digital_output.c

MCSDK_v6.4.1-Full\MotorControl\MCSDK\MCLib\Any\Inc\inrush_current_limiter.h and digital_output.h

Best regards.

Fabrice