Skip to main content
Associate
December 3, 2025
Question

The project does not build in "CubeIDE".

  • December 3, 2025
  • 1 reply
  • 167 views

Development environment

Motor control workbench Version: 6.4.0
STM32CubeMX Version: 6.16.0
STM32CubeIDE Version: 2.00.0

Controler/Driver: B-G431B-ESC1 kit


I want to drive a 30W BLDC motor using the B-G431B-ESC1 kit.

I'm currently following the instructions in the UM2516 user manual on the ST website:

Chapter 6, "Connection and first execution of the electronic speed controller (ESC) program"
6.1 First case: daughterboard not removed
3. Generate and upload the firmware code into the STM32G431CB MCU with the available IDE tool.


I selected the "B-G431B-ESC1" sample project in MC WorkBench, ran "Generate the Project," then launched "CubeMX" and then "Code Generate" to generate the project.
Up to this point, there were no issues.

After opening the project in "CubeIDE," I tried to run "Build," but
the "Build" commands were not enabled.

I don't know what the problem is.

Is there a more detailed guide for using the "B-G431B-ESC1"?
(The UM2516 documentation is insufficient.)

Please help

1 reply

realcrewAuthor
Associate
December 3, 2025

Additionally, I understand that firmware can be uploaded to the STM32g4 via the USB port. However, when I connect the USB cable to the PC, I get a message saying the USB device is not recognized. Do I need to install a separate USB driver?

realcrewAuthor
Associate
December 3, 2025

The problem of not being able to build has been resolved.

The problem was solved by using IMPORT instead of OPEN PROJECT.

 

One problem remains.

Firmware writing does not work

 

When I connect a USB cable between my board and my PC, it shows up as an unknown device on my PC.

Do I need to install a separate USB driver?

.

I think I'm trying to write the firmware through the USB port connected to the board, but the USB device is not recognized by the PC.

GMA
Technical Moderator
December 3, 2025

Hello @realcrew,
You can try using STM32CubeProgrammer tool available here. Using the Firmware upgrade button, Open in update mode and Upgrade.

GMA_0-1764780961382.png

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA