Skip to main content
EDokm
Associate III
August 18, 2025
Solved

The overcurrent protection threshold value cannot be modified in Motor Control Workbench.

  • August 18, 2025
  • 2 replies
  • 526 views

I am working on a project to drive a door using a PMSM motor in position control mode.

When I change the shunt resistor value in the Current Detection step of MCW, the overcurrent protection threshold remains fixed (7A) and does not update accordingly.

When the shunt resistance value is modified, isn’t the overcurrent protection threshold expected to update too?

Screenshots are attached.

Thanks in advance for your help.

 

Details:

ST MCW Ver            : 6.4.0

STM32CubeIDE Ver : 1.19.0

Driving algorithm       : FOC

Control board            : Nucleo-G474RE

Power board              : STEVAL-IHM023V3

Bridge                        : X-NUCLEO-IHM09M2

Best answer by GMA

Hello @EDokm,

For the STEVAL-IHM023V3 board, as mentioned in the user manual section "2.3.5 Overcurrent protection," the overcurrent protection (OCP) threshold value (comparator input) depends on the shunt resistor and other resistor values. The OCP feature is fully handled by hardware.
The threshold value displayed in the workbench is derived from the STEVAL-IHM023V3.json file (OverCurrentProtection hardware variant part) located in the directory: MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets\hardware\board\power.

In the example provided by @STuser2, which I assume is based on the B-G431B-ESC1 board, the OCP threshold input comparator is generated by a DAC output and is then handled by firmware.

2 replies

Senior III
August 18, 2025

It is expected to update, it updates for me when i tried doing it.

STuser2_0-1755503556124.png

STuser2_1-1755503588322.png

 

GMA
GMABest answer
Technical Moderator
August 18, 2025

Hello @EDokm,

For the STEVAL-IHM023V3 board, as mentioned in the user manual section "2.3.5 Overcurrent protection," the overcurrent protection (OCP) threshold value (comparator input) depends on the shunt resistor and other resistor values. The OCP feature is fully handled by hardware.
The threshold value displayed in the workbench is derived from the STEVAL-IHM023V3.json file (OverCurrentProtection hardware variant part) located in the directory: MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets\hardware\board\power.

In the example provided by @STuser2, which I assume is based on the B-G431B-ESC1 board, the OCP threshold input comparator is generated by a DAC output and is then handled by firmware.

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