Skip to main content
jean-philippe23
Associate
March 24, 2025
Question

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

  • March 24, 2025
  • 2 replies
  • 645 views

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!

2 replies

Associate III
March 24, 2025

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

jean-philippe23
Associate
March 25, 2025

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.


Associate III
March 25, 2025

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
March 27, 2025

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.....

Associate III
March 27, 2025

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.