Skip to main content
Associate II
July 29, 2026
Solved

HSO Motor Control "Current Scale" Issue

  • July 29, 2026
  • 21 replies
  • 237 views

I am having trouble generating an HSO based project.  I have already confirmed the board works with “Observer+PLL”.  When switching to HSO I am able to select it in the drop down, at which point it:
1. Resets my current sense gain (should be 50), I have no issues replacing this value.
2.  Under Speed Sensing I am provided with an empty Current Scale box, which is a “required field” however upon entering a value it remains red and tells me I cannot enter a value, as “no value is allowed”.

 

Is this a bug or have I configured something incorrectly?  It also seems odd that the current gain setting is cleared, although I can edit that without issue.

 

 

Best answer by GMA

Hello @reesed13,

The parameter offsetNetworkAttenuation must not be set to 0 and should be computed according to the amplification chain. For more details, refer to the Motor Control Boards Description wiki page.

21 replies

Associate II
July 29, 2026

which part number MCU you are using?

reesed13Author
Associate II
July 29, 2026

I am using the STM32G431CBT6.

Associate II
July 30, 2026

And for the motor driver side, ST EVK or custom board? Not sure your loading status and driver type

Associate II
July 30, 2026

Please refer to the setting below, it seems the default value is 29A for current scale

 

Associate
July 30, 2026

That does sound like a configuration issue or possibly a bug if the field is simultaneously marked as required and rejects all input. Since the project works correctly with Observer+PLL and the problem only appears after switching to HSO, I'd be interested to know whether others can reproduce it with the same tool version and board configuration. It might also be worth creating a brand-new HSO project to see if the Current Scale field is populated correctly by default. The current sense gain being reset when changing modes also seems unexpected.

GMA
ST Technical Moderator
July 30, 2026

Hello ​@reesed13,

It seems that the “Current Scale” parameter is not updated according to the gain or shunt parameters.
Did you try by setting the current sense gain in the json board description files?
If you leave the mouse cursor over the “Current Scale” window, a popup will appear with the expected values.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
reesed13Author
Associate II
July 30, 2026

@GMA 

Re-generating it in Motor Control Workbench (6.4.2) does not seem to fix the problem.  When hovering the field, there is no default value provided.  The tip/info popup changes to the second image.  What I type in the box does not seem to have any effect, and it prevents me from generating the project file. 

 

My board JSON file correctly describes the OpAmpGain value as 50, but I included it below if needed.  Additionally a voltage scale of 1V did not really make sense to me, but at least I can change that without any issues.

 

 

Associate
August 25, 2026

I met  the same trouble . due  to setting

Associate II
August 26, 2026

Does the best answer solve your problem?

Associate
August 27, 2026

yes,The parameter offsetNetworkAttenuation must not be set to 0 ,but 1.

Visitor
August 27, 2026

I have a motor whose phase resistance is 40 mΩ at 20 °C and 45 mΩ at 70 °C. When I set the phase‑resistance parameter to 40 mΩ, the motor operates normally at around 20 °C. However, when the motor temperature rises to approximately 50 °C, frequent start‑up failures occur. How can this problem be resolved?

Associate
August 27, 2026

your motor operates normally ,can you share  your feeling with HSO ?   start torque is enough  from zero speed?

 

Visitor
August 27, 2026

HSO supports direct start‑up from zero speed with superior starting load capacity compared to STO. Nevertheless, it is sensitive to phase resistance, and the cutoff frequency of voltage filtering must be properly configured; otherwise, the motor will fail to operate.

Visitor
August 27, 2026

Does this mean it is too sensitive to phase resistance?

Associate
August 27, 2026

how about the field_weakening  in HSO ?

 

Associate
August 27, 2026

 HOW ABOUT THE FIELD_WEAKENING  IN HSO ?

Visitor II
August 27, 2026

This is a helpful explanation of the issue. The connection between the Current Scale field and the offset network attenuation setting could easily be overlooked when switching configurations. It’s good to know that the value needs to be calculated according to the amplification chain rather than entered directly in that field. The clarification should make it much easier to identify the configuration issue and avoid unnecessary changes to the current sensing settings.