cancel
Showing results for 
Search instead for 
Did you mean: 

Current Sensing "Current mode" option greyed out in MC Workbench

jean-philippe23
Associate II

Hi there,

I am trying to enable the current measurement feature on my BLDC motor setup, but MC Workbench prevents me from enabling it. I think it is due to mode selection - 6step, instead of FOC, but still, current measurement through shunt resistor + ADC should be allows in 6-step mode as well, right?

My setup is the following:
- Bench 12VDC power supply (5A limited current)

- Nucleo-F401RE MCU board

- X-NUCLEO-IHM16M1 drive board (including 3/1 shunt resistor for current sense)

My version of MC Workbench is 6.3.2
My version of STM32CubeIDE is 1.18.0

Thank you for your help!

5 REPLIES 5
STUser34
Associate III

In 6 - step the current measurement is not required and hence it may have been grayed out.

I understand that it is not "required", however I would like to acquire the current for torque estimation (at the application level). If anyone knows how to bring current measurement along with 6-step mode I would appreciate.


Then you have to generate FOC code and take the current sensing files and then integrate with the 6 step mode program.

jean-philippe23
Associate II

Yes theoretically it can be done this way, however there is a lot of differences in the code structure between 6-step and FOC modes, and it is a HUGE effort to understand how code works, spot the differences, adapt from a project to another and test. The beauty of MC Workbench is to avoid doing all of that.....

In that case if you know the concept well with FOC code you could do trapezoidal switching with code modifications. As the FOC code already has the phase current sensing.