Skip to main content
MCohn.1
Visitor II
July 9, 2020
Question

How do I get my first project to work on STM32G431.

  • July 9, 2020
  • 11 replies
  • 3161 views

Ran Motor Profiler, Created new project in MotorControlWorkbench, Generated code for STM32CubeIDE, built application with no errors, run debugger which shows download successfully.

Switch back to motor control workbench and successfully connect, when I click on "start motor"

I get the following error "Communication is closed, the board doesn't response correctly" and the board disconnects.

This topic has been closed for replies.

11 replies

RTrev.1
Associate
July 17, 2020

I wonder if you made the same mistake I did with the workbench tool, i.e. didn't notice the connect button (the icon looks like a two-prong plug). After choosing the right COM port (#4 in my case) and clicking the connect button, the workbench was able to talk to the motor.

But how the heck did you get the Motor Profiler to work. Mine fails every ... single ... time. :(

msingh
Senior
July 27, 2020

I got the motor profiler to work but I think it's totally useless, the main reason for using the profiler would be the advantage of having the PID controllers autotuned however in my case they were totally wrong. So if I have to tune the controller manually why should I use the profiler?! I suggest you simply insert the values manually using the motor datasheet

RTrev.1
Associate
July 27, 2020

If I had a datasheet for the motor I would do so. Unfortunately I'm using salvaged motors with no identifying marks, so I have no way to find the datasheets.

Laurent Ca...
Senior III
October 6, 2020

Dear @RTrev.1​ 

Do you need help to estimate resistances, inductances and others characteristics?

Best regards

Laurent Ca...

RTrev.1
Associate
October 6, 2020

I can measure resistance with a multimeter, and knowing the voltage I can obviously estimate maximum current. Not sure if that would allow me to also estimate inductance. My hope for using the profiler was to generate a profile that I could then use in projects for experimenting with FOC. I have yet to get it to work and have lost interest in using the board.

Do you have access to case #00112422? I haven't received a response on that since August 12th.

Laurent Ca...
Senior III
October 6, 2020

Dear @RTrev.1​ 

I don't understand what is the case #[00112422]​ 

Please send me a link.

Best regards

Laurent Ca...

RTrev.1
Associate
October 6, 2020

After receiving no help via the forum, I opened a support ticket. The case # is 00112422. Since you are an ST employee, I thought you might have access to that. If not, so be it. I'll just throw the board in the trash and move on.

Laurent Ca...
Senior III
October 7, 2020

Dear @RTrev.1​ 

I do not have access to support cases but only to eventual internal tickets.

If there is a corresponding ticket and if you can obtain the ID number then I can have a look on.

Best regards

Laurent Ca...

RTrev.1
Associate
October 7, 2020

Here's the subject line of the most recent case update notification. Does that help?

Case# 00112422 has been updated. [ref:_00Db0000000YtG6._5003W000003aY4E:ref]

Laurent Ca...
Senior III
October 7, 2020

​No, it doesn't.

Sorry.

Laurent Ca...
Senior III
October 20, 2020

Dear @RTrev.1​ 

Any news?

Best regards

Laurent Ca...

RTrev.1
Associate
October 20, 2020

About a week ago someone updated my case saying, "Is this issue still outstanding or can we close the ticket". I responded that the issue is still outstanding, but have not heard anything since.

Laurent Ca...
Senior III
October 20, 2020

Dear @RTrev.1​ 

You mean someone on the local support side?

Because internally, no news of support request regarding your question.

By the way, it seems too long.

Therefor, I will try to have some news in the week.

Best regards

Laurent Capella

Laurent Ca...
Senior III
October 27, 2020

Dear @RTrev.1​ 

OK let's dot it.

Firstly, we need you complete setup:

  • HW configuration :
    • Board name (or boards setup if appropriate) :
    • Board usage (1-shunt/3-shunts, Hall sensor, others) :
    • Motor parameters :
    • Motor Control algorithm used (6-Steps/FoC/Stepper/PositionControl/Other) :
  • SW tools configuration :
    • MC Profiler version :
    • MC WB version :
    • MC Pilot version :
    • STM32CubeMX version :
    • IDE used (IAR/Keil/CubeIDE/Other) and version :

Secondly, could you copied here the text you send to local support.

Thirdly, did you take into account of the patch for STM32G431?

Best regards

Laurent Ca...

RTrev.1
Associate
October 29, 2020
First of all, I want to avoid confusion. Do you know that I didn't post the original message in this thread, I was just replying to a post from MCohn.1?
Anyway, here are my responses:
*HW configuration :*
Board name (or boards setup if appropriate) : STM32G431CB
Board usage (1-shunt/3-shunts, Hall sensor, others) : just 3 wires
connected to the motor, no hall sensor
Motor parameters : a mixture of 4- and 6-pole motors salvaged from hard
drives, coil resistance varies from 2 Ohms to 5 Ohms, supply voltage is 12
volts, other parameters unknown (that's the whole point of using the
Profiler, right?)
Motor Control algorithm used
(6-Steps/FoC/Stepper/PositionControl/Other) : would
like to experiment with FoC, but that I can't do that without a profile
*SW tools configuration :*
MC Profiler version : 5.4.4
MC WB version : 5.4.4
MC Pilot version : N/A
STM32CubeMX version : N/A
IDE used (IAR/Keil/CubeIDE/Other) and version : STMCubeIDE 1.3.0
Robert Trevellyan