Skip to main content
nik8540
Associate
September 11, 2020
Solved

B-G431B-ESC1 motor profiler not working (moderator note: this post contains now a bug-fix patch on provided example)

  • September 11, 2020
  • 14 replies
  • 6455 views

Hi,

I am trying to use motor profiler 5.4.4 with B-G431B-ESC1. Every time, Electric model reaches 30 percent quickly and then gradually reaches 38 percent to get the 'too much time' warning after which process fails.

I tried different BLDC motors (12 pair-400KV, 7 pair-1900kv)and also tried different supply voltage(12V, 16V, 25V). However result is same.

I can also see few other posts which mentions about similar issue, however, they have not been answered.

Any help to resolve this is much appreciated.

This topic has been closed for replies.
Best answer by DBE

Hello,

Please find attached an unofficial motor profiler firmware for G4 Y revision and tested on a Y revision with several motors including a 7 pair-1700KV. The official one should be released with the next MCSDK. Then Close your motor profiler GUI, go to C:\Program Files (x86)\STMicroelectronics\MC_SDK_5.4.4\Utilities\PC_Software\STMotorProfiler\resources\assets\fws directory (in general this where the MCSDK is installed) and replace your B-G431B-ESC1#B-G431B-ESC1 3Sh*.hex by the one attached.

Please find also a fix to add to your B-G431B-ESC1 (still for G4 Y revision), replace your r3_2_g4xx_pwm_curr_fdbk.c in <myPrj>\MCSDK_v5.4.4\MotorControl\MCSDK\MCLib\G4xx\Src by the one attached. Open your mc_tasks.c in <myPrj>\Src and look for FOC_CurrControllerM1 routine, then cut RCM_ReadOngoingConv(); and place it before RCM_ExecNextConv(); . These fixes should be also released in the next delivery.

Best regards

14 replies

nik8540
nik8540Author
Associate
September 11, 2020

@Laurent Co​ 

JA.1
Associate III
September 23, 2020

I am experiencing exactly the same on my B-G431B-ESC1 board with 3 different motors.. I discovered that if you start the profiling, wait 3-4 seconds and then turn up the voltage on the power supply till you get the "over voltage error" and you turn back down the voltage (I am using 24V) the profiler will start showing measured numbers (the resistance and inductance), but it will still never reach 100 %... I will be stuck at 9x% and the "too much time" popup will show...

@Laurent Co​ No response??

Laurent Co
ST Employee
September 23, 2020

Hello,

i don't know why you ask me some supports there. I'm unfortunately not an expert. Maybe you confused with another colleague name?

Regards,

Laurent

nik8540
nik8540Author
Associate
September 23, 2020

Can you please point where to get support regarding this issue?

I have bought these boards and they are not working as mentioned in documentation. Even the 6 step algorithm code is not available as advertised. And there is no support so far. This is the first time someone from ST at least responded.

Any help is really appreciated.

Regards,

Nikhil

Laurent Co
ST Employee
September 23, 2020

Ok, ok, the first time, i thought it was a typo (as one of the guys working in this field is named "Laurent" as well ! ) and forgot to reply. Sorry for that.

I'll check with @Amel NASRI​ how to support even if the idea of this forum is also to have some collaborative support around a community and that we don't answer all posts. keep you posted , Regards, Laurent

Laurent Co
ST Employee
September 23, 2020

Hello @Laurent Ca...​ , as discussed my mail, the thread was for you :)

@Community member​ @nik8540​ , it was indeed a typo. A "." was missing.

nik8540
nik8540Author
Associate
September 23, 2020

Thanks for your help. Really appreciate it.

Looking forward to the support from @Laurent Ca...​  in this issue.

Regards,

Nikhil

Laurent Ca...
Senior III
September 23, 2020

Dear "Laurent C"

You are right.

I propose in order to avoid further confusing , I change my nickname from "Laurent C." to "Laurent Ca...". and I suggest you to do the same (that it is to say "Laurent Co..." or other proposal) because there is a lot of post that I signed "Laurent C.".

Regarding this post, I take the point and come back to you soon.

Best Regards

Laurent Ca...

DBE
ST Employee
September 23, 2020

​Hello,

Could you please first check the revision of your G4 MCU, you can find it on the right side of the ST logo. If it is a Y revision then you need a firmware update that will be available soon. In any case it is better to help the profiler to converge by specifying the max. current in the Motor Profiler GUI, in some cases a low current helps a lot. For example this ESC board is able to profile the motor provided in the P-NUCLEO-IHM001 (which is 7 pair -1700KV)  if 1A or less is specified in the GUI. 

Best regards

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.
nik8540
nik8540Author
Associate
September 23, 2020

Hi @DB.7ERGANTIN​ ,

Thanks for your reply.

I have G4 MCU with Y revision. Is there any estimated timeline for firmware update?

I quickly tried 7pair 1900kv motor with 1A setting. It did not work.

Is there any 6 step firmware or reference code available for this esc? Really looking forward to using it as I have 4 of them laying around unused.

Regards

Nikhil

EGran.2
Associate
September 23, 2020

@nik8540​ 

Is it from batch B04 (labeled on the back)?

I've been told that these do not work, I just wrote a post about it!

nik8540
nik8540Author
Associate
September 23, 2020

Yes. These are from batch B04.

How did you get to know about this issue? Is there any more information available regarding this issue? problem with ST-Link for G4 board?

Regards

Nikhil

EGran.2
Associate
September 23, 2020

There's a bunch of people on another forum wondering why their B-G431B-ESC1 is not working.

Finally some of them managed to isolate the problem to the batch-no.

I've tried to find a solution to this for the last month, with no luck.

Let's just say, this mistake from ST has cost 100's of hours in frustration across the globe...

I hope they fix it soon!

DBE
DBEBest answer
ST Employee
September 24, 2020

Hello,

Please find attached an unofficial motor profiler firmware for G4 Y revision and tested on a Y revision with several motors including a 7 pair-1700KV. The official one should be released with the next MCSDK. Then Close your motor profiler GUI, go to C:\Program Files (x86)\STMicroelectronics\MC_SDK_5.4.4\Utilities\PC_Software\STMotorProfiler\resources\assets\fws directory (in general this where the MCSDK is installed) and replace your B-G431B-ESC1#B-G431B-ESC1 3Sh*.hex by the one attached.

Please find also a fix to add to your B-G431B-ESC1 (still for G4 Y revision), replace your r3_2_g4xx_pwm_curr_fdbk.c in <myPrj>\MCSDK_v5.4.4\MotorControl\MCSDK\MCLib\G4xx\Src by the one attached. Open your mc_tasks.c in <myPrj>\Src and look for FOC_CurrControllerM1 routine, then cut RCM_ReadOngoingConv(); and place it before RCM_ExecNextConv(); . These fixes should be also released in the next delivery.

Best regards

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.
JA.1
Associate III
September 25, 2020

Thanks for sharing the fix with us! I will try it in a few minutes.

I have a question though. The issue with the Y revision of the chips, what consequences does it have with respect to motor control? Is it ONLY with the Motor Profiler there is an issue, or in general with motor control? I am asking since I have now used more than 2 weeks to get my MC application up and running, but the setup is acting weird. Hopefully the explanation is "just" that the Y-revision chip is causing this.

Edit: I didn't read the last part of your message. Sorry, will try out that fix first. =)

Edit2: I just tried the fix (motor profiler) and it successfully profiled my motor. Peww, finally! Thanks.

@EGran.2​ Maybe you can share the other forum with me?

DBE
ST Employee
September 25, 2020

​Hello,

There is an hardware issue on G4 ADC Y revision which needs a workaround, please refer to ES0431 documentation chapter 2.5

https://www.st.com/resource/en/errata_sheet/dm00502298-stm32g431xx441xx-device-errata-stmicroelectronics.pdf

best regards 

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.
JA.1
Associate III
September 25, 2020

Hi again @DB.7ERGANTIN​ 

Are you sure that no other hack is needed than replacing the r3_2_g4xx_pwm_curr_fdbk.c file and moving the RCM_ReadOngoingConv() function call up?

The new firmware with the motor profiler works for me, but using the setup with MotorControlWorkbench generated code (and applied hacks) is not working. I cannot change the speed of the motor, it will always rotate with same speed no matter the value in MC_ProgramSpeedRampMotor1()...