cancel
Showing results for 
Search instead for 
Did you mean: 

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

ZHOUXIANG
Associate III

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Fabrice LOUBEYRE
ST Employee

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

 

 

View solution in original post

1 REPLY 1
Fabrice LOUBEYRE
ST Employee

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