2024-01-28 07:33 AM
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
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?
Solved! Go to Solution.
2024-02-04 12:08 AM
Hi Cedric
How can I change the MCU to STM32G030K6T6? the tool only shows me the eval boards, and if I choose for example a near enough devkit like stm32g071 eval board, I can not change the MCU later in the tools.
Regards
2024-02-12 04:28 AM
Hi Cedric
Could you please help me on how to change the MCU to STM32G030K6T6? it seems it's impossible or I'm doing something ***.
Thanks
2024-02-13 07:19 AM
Hello @ali_dehbidi
Could you attach to this thread the json you wrote thanks to the board manager starting from the closest ST board ?
Regards
Cedric
2024-02-13 07:50 AM
2024-02-13 08:08 AM
In your project, you use NUCLEO-G071RB .
You must start with the board manager :
Clone your NUCLEO-G071RB board
Change the name of the board and the PN (basically put the same name on both)
And most important, replace here the mcu by the one you want. It must be part of the mcu folder under Utilities\PC_Software\STMCWB\assets\hardware\mcu
Last point, check that all the MCU pins described in the board description are present and properly named ( pin name reference is your mcu json file).
Once saved without error, your new control board will be part of the control board list and you will be able to use it into your new project. If it is not the case, please attach your new board description to this thread (it was actually my question in my previous answer)
Hope it helps.
Cedric
2024-02-16 04:55 AM
Hi Cedric
Thanks for the feedback, Now I have tried to modify a cloned JSON file for the STM32G030K6Tx part as an inverter, But the tools does not allow me to generate projects, it would says hardware is not compatible with the algorithm, please check my attached JSON file,
I hope you could find the bug.
2024-02-19 01:10 AM
Hi Cedric
Would you please check my modified JSON file and help me solve the problem? I do not know why I can not make any project with that.
Thanks
2024-02-19 05:22 AM
The board you have chosen(based on NUCLEO-G071RB)is not compatible with 6-Step algorithm ,meaning that the proper hardware for driving motor in 6-step algorithm doesn't exist on the board(Hall sensors or BEMF feedbacks)
Choosing FOC as your algorithm would probably solve the issue.
Regards.
2024-02-19 08:39 AM
Hello @ali_dehbidi,
Your file looks Ok, I enter a ticket internally to understand what the issue is. I will let you know as soon as I have some news.
Regards
Cedric
2024-02-20 12:23 AM
Hi Cedric and mimho
mimho please note that I think the JSON file is OK, also I can not make any kind of project 6-Step algorithm or FOC algorithm.
Cedric thanks for the Update, I hope they can find a solution.
Regards