2025-08-17 11:29 PM - edited 2025-08-17 11:34 PM
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
Solved! Go to Solution.
2025-08-18 7:02 AM - edited 2025-08-18 7:03 AM
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.
2025-08-18 12:54 AM
It is expected to update, it updates for me when i tried doing it.
2025-08-18 7:02 AM - edited 2025-08-18 7:03 AM
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.