Skip to main content
Associate II
January 21, 2024
Solved

STM32 ZEST Kit & Motor Control Workbench 6.2.1

  • January 21, 2024
  • 7 replies
  • 5088 views

Dear Sir or Madam,

I tried to generate code for the STM32 ZEST Kit consisting of trying to evaluate HSO (while waiting for ZEST approval):

1) STEVAL-LVLP01

2) B-MOTOR-PMSMA1

3) B-G473E-ZEST1S

Since the motor (2) is not available I tried using the Motor Profiler - this did not work since some registers seem to be not fully implemented (e.g. undervoltage registers).

Is there something I did wrong?

Best regards

MoCo

Best answer by Gael A

Hello again,

You can also try to disable the SCREF feature by adding a jumper to J1 on the STEVAL-LVLP01 power board. This is a voltage protection between the source and drain and it can cause the Profiler Error you are facing.

7 replies

Gael A
ST Employee
January 23, 2024

Hello MoCo,

The Profiler flow for the HSO is not the same than it was for classic FOC algorithm, as the HSO integrates its own Profiler inside the MotorPilot GUI. You can find the complete HSO start-up guide in the MCSDK 6.2.1 release note : in the WorkBench, click on About -> Documentations -> Release Note -> Search for the HSO startup guide hyperlink.

We apologize for the confusion.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
MoCoAuthor
Associate II
January 23, 2024

Thanks a lot for the help with the HSO_startup_guide.pdf file. I found this file and tried the workflow on page 9. However - when I click on profiler and start the process I receive an error: ERROR_DC_AC in the profiler window.

I attached a screenshot.

Can you please give me a suggestion what went wrong?

Best regards and many thanks

MoCo

 

errordcac_20240123.jpg

Explorer
January 24, 2024

I'm also getting the same error in the profiler: ERROR_AC_DC_CHECK

As per HSO_startup_guide.pdf I have tried increasing the power setting ('POW:') in the profiler window. as per the HSO_Startup_Guide.pdf, with no success.

I don't seem to seeing any signal on the Motor terminals and there is no change in load from the power supply.

brettski_0-1706068491378.png

Any suggestions?

Gael A
ST Employee
January 24, 2024

Hello all,

This is a really strange behavior. Could you please switch to Open Loop Mode and see if any current is coming through ?
Also could you send me your .stwb6 project files ?

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
Explorer
January 24, 2024

Project file attached. I had to change the extension .txt to be allowed to attach the file.

Gael A
Gael ABest answer
ST Employee
January 24, 2024

Hello again,

You can also try to disable the SCREF feature by adding a jumper to J1 on the STEVAL-LVLP01 power board. This is a voltage protection between the source and drain and it can cause the Profiler Error you are facing.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
ZHOUXIANG
Associate III
May 19, 2025

Hi,

I also have this problem, but I didn't use STEVAL-LVLP01 . I designed a custom inverter, based on G473VE, external amplifier and compare, use TIM8 to generate PWM wave, use IR2101S to drive MOSFET. When I try to profile the motor(based on HSO), I get the error: ERROR_AC_DC. 

I have upload the screenshot(90e0d582f6e2fb5d5043ff325aab241.png), stwb6 file(MCV1_HSO_PROFILE.rar) and schematic files(MC_V1.pdf). Could you help me please? Thanks a lot!

Gael A
ST Employee
May 19, 2025

Hello Zhouxiang,

In order to maintain the forum's health, and by respect to the other users, we advise you to create a new post related to your issue, and referencing the previous posts you already visited. This way, we can support you better with your issue.
I will nonetheless try to answer your problem here. Can you try to profile with a lower power value ?

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.Hope this will help,Gaël A.
MoCoAuthor
Associate II
January 24, 2024

Thanks a lot it worked!

Adding the jumper for SCREF worked. I also had to increase the allowed current in the MCW.

Best regards

MoCo

Explorer
January 25, 2024

Adding the jumper for SCREF also worked for me.