cancel
Showing results for 
Search instead for 
Did you mean: 

ST MotorControl Workbench V 5.4.8 or 6.2.1 would fail to generate

ali_dehbidi
Senior

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

  

29 REPLIES 29
Hello Cedric Is there any updates or progress? Best Regards
ali_dehbidi
Senior

Hi Cedric

Is there any Update?

Thanks

Hi Cedric

I have tried to change the MCU family to STM32F103RBTx to see if it would work or I can find the bug, But to my surprise it does not even show the New JSON file in the Inverter selection dialog after I have added to the inverter parts in the Board manager.

 

see the new changed JSON file for your reference.

 

Please note that I'm still interested in using the tool with STM32G030K6T6 part.

Regards

 

ali_dehbidi
Senior

Hi Cedric

Did you found the solution? is there any updates?

 

Best Regards

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

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 ?

Hello @ali_dehbidi,

I apologize for the huge delay in this response. 

If it is still relevant, please note that your issue has been resolved in MCSDK 6.3.0. Now MCSDK is able to load your board and generate a 6-step project. For FOC, the mandatory current sensing is missing. One big improvement is that from now, an accurate error message is provided when a mandatory feature cannot be resolved.

Regards

Cedric

Dear cedric H

Thanks for the Update, I will give it a try any if any new problems happen I will be in touch

ali_dehbidi
Senior

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

 

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