Skip to main content
DHarv.1
Associate II
February 26, 2020
Question

Motor Control Workbench failing to generate valid project

  • February 26, 2020
  • 2 replies
  • 1236 views

Sorry if this has already been asked but I can't find a solution.

I'm trying to get MotorControl Workbench to generate a project I can open in STcubeIDE.

I'm using the only B-G431B-ESC1 board example project.

Everything is the latest I can download from ST, except I have also tried the "Recommended"1.1.0 Firmware package, as well as the current 1.2.0 package with no difference.

When generating the project, everything looks fine and I get the attached screen capture info about versions.

However the .project file only has a reference to a single file in it, entire contents below:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>ElectronicSpeedControl</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
			<triggers>clean,full,incremental,</triggers>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
			<triggers>full,incremental,</triggers>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>com.st.stm32cube.ide.mcu.MCUProjectNature</nature>
		<nature>org.eclipse.cdt.core.cnature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCUCubeIdeServicesRevAProjectNature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCUNonUnderRootProjectNature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCUCubeProjectNature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCUEndUserDisabledTrustZoneProjectNature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCUSingleCpuProjectNature</nature>
		<nature>com.st.stm32cube.ide.mcu.MCURootProjectNature</nature>
		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
	</natures>
	<linkedResources>
		<link>
			<name>Application/User/esc.c</name>
			<type>1</type>
			<locationURI>$%7BPARENT-1-PROJECT_LOC%7D/Src/esc.c</locationURI>
		</link> 
	</linkedResources>
</projectDescription>

If I then open the .ioc file in CubeMX all looks fine but it wont generate a new project file which I find very odd.

The rest of the code looks ok at a glance (all the usual libraries are copied and source files generated.

All very odd, any idea?

This topic has been closed for replies.

2 replies

DHarv.1
DHarv.1Author
Associate II
February 26, 2020

Tried this all again on a different machine with the same version of everything, and it worked correctly.

Not sure what's going on. There's another post with someone with somewhat similar issues and for them it worked when "the moons aligned".

Feels like the STM32G4 Cubemx isn't production ready yet (not Truestudio support, random failures). A bit concerning.

Laurent Ca...
Senior III
June 22, 2021

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards