cancel
Showing results for 
Search instead for 
Did you mean: 

Motor Control Workbench failing to generate valid project

DHarv.1
Associate II

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?

2 REPLIES 2
DHarv.1
Associate II

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...
Lead II

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