Skip to main content
LRowi.1
Associate
August 26, 2021
Question

My STEVAL HKI001V2 is not able to communicate with SDK 5.Y.1 and SDK 5.Y.2 It can communicate with SDK 5,4,6 , What is a reason I am also not able to find the STEVAL HKI001V2board set on the Motor profiler list of boards Is this board set supported?

  • August 26, 2021
  • 12 replies
  • 2415 views

..

This topic has been closed for replies.

12 replies

cedric H
Technical Moderator
August 30, 2021

Hello

With the introduction of the SDK 5.Y, a new Motor protocol much more powerful has been developed.

Could you confirm that with the release 5.Y you try to connect with the new motor Pilot tool provided, and that the UART is configured at the right baudrate ?

The new protocol is not compatible with the previous version, so the 5.Y firmware can not be controlled with the monitor embedded in the 5.4.6 Motor control workbench. (And the 5.4.6 firmware can not be controlled by the new motor Pilot)

Regards

Cedric

LRowi.1
LRowi.1Author
Associate
September 10, 2021

Dear Cedric,

Thank you very much for your support. Aparently I had a broken lead in the cable. Now I am able to comunicate using RS port

Using MCWB 5.Y.2 21279 and STM32Cube MX 6.3.0 I have passed all required MCWB – MX-IDE steps up to start the motor but before pressing the button I need to find how to configure the Current Sensing and Over Current Protection for the STM32F303RB. Do you have any documentation regarding these procedures?

Current Sensing

My motor nominal current is 30A at 205 V but I want to start with 20 A and this value was set in the motor data. I have selected Two Insulated Current Sensor option and set ICS gain to 0.080, that gives 20.625 A maximum readable current. When I started to generate the code using Mx the warning has appeared “motor nominal current is higher than OCP�? . I were not able to change any parameter or configuration that allows for changing of this limit (Current Sensing topology is external OPAMP by default if changed to Embedded PGA I have pin conflict).  The only way I were able to find the solution was to decrease the motor nominal current to 9 A. Than all the procedure worked well.

Over Current Protection

When I enable OCP at WB main screen I immediately have warning:�?Both embedded and external comparators  selected for OCP�?. On Phase Current Feedback table the Embedded HW OCP is indicated while the Current Threshold is set at fixed value of 9.457A. The rest of the table is not active. When I disable OCP at WB main screen box, the warning disappears but  Current Threshold is still at fixed value of 9.457A on Phase Current Feedback table and may not be changed.

cedric H
Technical Moderator
September 13, 2021

Hello,

If you are using ST genuine boards, could you share your stmcx ? It will be easier for me to help you.

Regards

Cedric

LRowi.1
LRowi.1Author
Associate
September 13, 2021

Hello again,

The equipment is of STM origin - Steval HKI001V2 inverter set

Production date? of the power board is 2020 06 003. The programmer has been bought separately

How I can share my stmcx, please advice if this can be done on line or it is enough to send you one of the configuration (code) files

Best Regards

****

cedric H
Technical Moderator
September 13, 2021

Hello,

You can attach it to this thread clicking at the paperclip button.

Regards

Cedric

LRowi.1
LRowi.1Author
Associate
September 14, 2021

Hello,

I hope, I have selected adequate file, other formats are not accepted by the system

Best regards

****

cedric H
Technical Moderator
September 15, 2021

Hello @LRowi.1​ ,

The file I need in order to help you is the project file you load and save with the MC Workbench. It is a stmcx file.

If you can not upload it with the stmcx suffix, please zip it and attach the zipped version of your stmcx file.

Regards

Cedric

LRowi.1
LRowi.1Author
Associate
September 16, 2021

Hallo,

the files with stmcx suffix are not accepted by the system, so I hope the zipped version will bo OK

Best regards

**** Rowinski

LRowi.1
LRowi.1Author
Associate
September 29, 2021

Hallo again,

Have you found any reason for my problem with current measurement and limiting? I am not able to continue the project without your help.

I have noticed another issue when using WB. When I start "generation" WB/MX program is not able to see the Java development kit that was installed following request by the WB/MX.

cedric H
Technical Moderator
October 1, 2021

Hello @LRowi.1​ ,

Sorry for the delay,

The usage of the STEVAL HKI001V2 is a bit complex and the workbench propose more an example than a complete configuration .

Thanks to your post I realized that the example is not present in the 5.Y.2 version.

If you use the 5.4.7 version you will see in the example list in the starting window an example called "STEVAL-HKI001V2 project with STGAP1AS".

You have to start from this point. This example workaround a limitation of the workbench regarding the usage of the Timer Bkin pin.

So despite the fact that the workbench claims that OCP is not configured, your board is protected by the STGAP, and the STGAP error is connected to the BKIN timer input.

Looking at the STGAP, the minimum current detection you can achieve will be 50 Amp. This is due to the ICS gain and the mimium threshold of 100mV at Vsense.

The ICS gain is something you can not changed, excepting if you change the board.

So to reduce your motor current, there is no other parameters than reducing your motor nominal current in the motor configuration window.

I invite you also to have a look at the STGAP configuration that is in power_stage_parameters.h . All the safety protections are provided by the STGAPS.

Last point, when you start from the example, It is very important you click on UPDATE button, otherwise the example will not be functional.

Regards

Cedric

LRowi.1
LRowi.1Author
Associate
October 1, 2021

Hello

Thank you very much, for the time being.

Best Regards

****