Skip to main content
ali_dehbidi
Associate III
January 28, 2024
Solved

ST MotorControl Workbench V 5.4.8 or 6.2.1 would fail to generate

  • January 28, 2024
  • 12 replies
  • 10309 views

Hi
I wanted to test ST MotorControl Workbench for experimenting with brushless motors, I have installed and tested the MotorControl Workbench 6.2.1 and MotorControl Workbench 5.4.8 on win 11 and both of them would fail to generate the projects out of box with this error message,
I have set them to use keil IDE v5 and my stmcubemx version is 6.10.0


you can check the error log here

Quote
2024-01-28 18:56:58,742 DEBUG [Main.lambda$run$0] Arguments: [-ioc, C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.ioc, -xdm, C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.wb_def]
2024-01-28 18:56:58,745 DEBUG [ArgsValue.readPropertiesFile] [AppConfig] pack.source = "C:\Program Files (x86)\STMicroelectronics\MC_SDK_5.4.8\Middlewares\ST\MotorControl"
2024-01-28 18:56:58,745 DEBUG [ArgsValue.readPropertiesFile] [UserConfig] do not exist in "C:\Users\Ali\.st_motor_control\wb2mx.properties"
2024-01-28 18:56:58,753 DEBUG [ArgsValue.getConfigProperties] pack.source = "../../../../Middlewares/ST/MotorControl"
2024-01-28 18:56:58,758 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[xdm]: C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.wb_def
2024-01-28 18:56:58,758 DEBUG [ArgsValue.lambda$retrieve$2] CLI_ARG[ioc]: C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.ioc
2024-01-28 18:56:58,758 DEBUG [ArgsValue.retrieve] {xdm=C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.wb_def, updftl=templates/wb_ioc_mc-middleware.ftl, mx_timeout=-1, exp=templates/wb-defines_where_and_what.txt, ioc=C:\Users\Ali\Desktop\mc\EvalG0_SingleShunt_IHM023V3_HAL\EvalG0_SingleShunt_IHM023V3_HAL.ioc, pack=../../../../Middlewares/ST/MotorControl, ftl=templates/wb_ioc_template.ftl}
2024-01-28 18:56:58,801 DEBUG [Main.run] Targeted MCU family = G0
2024-01-28 18:56:58,818 DEBUG [Main.run] Minimum associated CubeMx to the `G0` targeted MCU family is `4.28.0-a0`
2024-01-28 18:56:58,829 DEBUG [WindowsCubeMxFinder.lambda$findThem$2] Found 64-bit subkey HKEY_LOCAL_MACHINE\~~~\Uninstall\STM32CubeMX
2024-01-28 18:56:58,834 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
2024-01-28 18:56:58,834 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\plugins\updater.jar'
2024-01-28 18:56:58,846 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
2024-01-28 18:56:58,846 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\plugins\updater.jar'
2024-01-28 18:56:58,855 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
2024-01-28 18:56:58,855 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\plugins\updater.jar'
2024-01-28 18:57:17,327 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
2024-01-28 18:57:17,328 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\plugins\updater.jar'
2024-01-28 18:57:17,356 DEBUG [EnvironmentChecker.checkPack] STM32CubeMX.Version: 6.10.0-RC9
2024-01-28 18:57:20,083 ERROR [LineInfo_to_exitCode.manage_MCPackNotFound] MotorControl reference pack not found: "../../../../Middlewares/ST/MotorControl"

 


What's the problem? do you have any Idea what's wrong?

Screenshot 2024-01-28 185715.png

Screenshot 2024-01-28 185728.png

Best answer by cedric H

You home directory is in your C:\Users\ folder, It should contain a directory named as your login name.

Inside this directory you should have a .st_motor_control directory containing a wb2mx.properties file.

6.2.1 supports roughly 380 MCUs, much more than all the previous releases.

Could you tell us what is the MCU proposed in 5.4 that you do not find in 6.2 ? 

The only reason to stay on 5.4 is if your project is based on STM32F1 which has been discontinued in 6.2.1

Regards

Cedric.

12 replies

ali_dehbidi
Associate III
March 2, 2024

Hi Cedric

Did you found the solution? is there any updates?

 

Best Regards

ali_dehbidi
Associate III
March 7, 2024

Dear Cedric

I want to know if this is the best Support that I can get from ST, since it's almost a month, That I got no answer!

Best Regards

ali_dehbidi
Associate III
March 11, 2024

Maybe it's time to search  or investigate for other manufacturers like NXP to see what they had to offer, since I can not get even a normal response from ST or other users, does any one here even done a custom board design using the ST MotorControl  V6.21 ?

ali_dehbidi
Associate III
July 24, 2024

Hi cerdic H

I have installed a fresh MotorControl Workbench_6.3.0 and used my mySTM32G030KT6.json file to generate a simple 6 step design, Now when I hit generate design it would make the design and it says the design has some errors when I hit Generate button,

 Note that I choose Keil MDK-ARM V5 as the compiler, my STM32cubeMx is set to 6.11.1 and the Firmware package version is set to 1.6.2 and device type is set to HAL,

It can generate the project and I can build it with keil too!!!! But I do not know if it would work!

You can check the output log in the attachment

 

ali_dehbidi
Associate III
July 24, 2024

Also why It does not allow to use FOC algorithm! it says it has no current sense option, But clearly there is  "features": [
{
"name": "CurrentSensing",
"type": "CurrentSensing",
"tRise": 1000,
"hwVariants": [
{
"type": "SingleShunt_AmplifiedCurrents_noOffset",
"help": "How to enable this variant",
"signals": {
"CURRENT_AMPL": [
{
"name": "PA0",
"help": "",
"cost": 0
}
]
},
"shuntResistor": 0.001,
"opAmpGain": 20,
"amplifyingNetworkImax": 40,
"amplifyingNetworkVm": 3.3,
"amplifyingNetworkPrating": 3.0
}
]
}, option in the JSON file, it would generate these error logs too