cancel
Showing results for 
Search instead for 
Did you mean: 

B-G431B-ESC1 / MCSDK Motor Pilot/Profiler Failed Connection

TH3221
Associate II

Board: B-G431B-ESC1

OS: Windows 11

Attempting to use the Motor Pilot or Profiler but unable to connect. I know I am connected because ST-Link can read the MCU and I am able to program it. From previous posts it seems to be related to the version of MCSDK so I attempted to use 5.4.8, 6.2.1, 6.2.0, 6.1.0, and 6.3.1. Done the obvious restart computer, board, run as admin.

  • Generated Firmware using the MC workbench, ensured Motor Profiler was checked in Application Configuration and uploaded to board
  • Double checked to make sure UART was initialized
  • Another post said to set build configuration to release, didnt work

 

Not sure how to diagnose from here 

 

From the Motor Profiler (Any of them)

[INFO] - UART worker: Successfully open port COM6 @ 115200

[INFO] - : try to configure the board'

From the Motor Profiler (Any of them)

[ERROR] - : Failed to discover Board at 1843200 Bauds and 115200 Bauds

[INFO] - : disconnect UART START

[INFO] - : Disconnected from board

[INFO] - : disconnect UART END

More information from the programmer

11:54:11 : ST-LINK SN : 0674FF485051727187183257
11:54:11 : ST-LINK FW : V2J45M30
11:54:11 : Board : B-G431B-ESC1
11:54:11 : Voltage : 3.23V
11:54:11 : SWD freq : 4000 KHz
11:54:11 : Connect mode: Normal
11:54:11 : Reset mode : Software reset
11:54:11 : Device ID : 0x468
11:54:11 : Revision ID : Rev X
11:54:11 : ST-LINK SN : 0674FF485051727187183257
11:54:11 : ST-LINK FW : V2J45M30

3 REPLIES 3
TH3221
Associate II

From User Guide

" The USB port is available to use the ST MC Workbench and Motor Profiler tool directly connected with the PC (no
external dongle is needed)."

So I want to assume the problem is because of the daughter board. Does it need a specific firmware? Im ordering another board and diffrent board to figure it out. I really want to use the Workbench.

TH3221
Associate II

Update: Was able to use 6.1.1 and installed to a location other than X86 programs and the motor pilot and profiler worked! However can not use the workbench because it can't find STM32CubeMX..

From the Project Generation:
STM32CubeMX not found - ver. "6.0.0" or higher is requiredDownload STM32CubeMx
Previously selected CubeMx "6.12.1" is no longer available
 
So now the next guessing game of which CubeMX 6.1.1 supports
 
Update2: Installed the 6.3.1 just straight up on my desktop and Profiler works but Motor pilot doesnt? 
 
Update3: Cant figure this out.
Gael A
ST Employee

Hello TH3221,

At a first glance, it looks like you sometimes are trying to connect while your board is already connected to another SW. For example, if your board is connected to CubeProgrammer, then the connection will not be able to be established with the MotorPilot or Profiler. When you want to connect via STLink, please make sure no other software is connected to your board.

Another thing to check would be the baudrate. For the ESC-G431 it is configured to 1M8 bd/s by default which is one supported by Motor Profiler but it is always nice to verify.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.