cancel
Showing results for 
Search instead for 
Did you mean: 

MotorControl reference pack not found: "../../../../Middlewares/ST/MotorControl

Curve Wrecker
Associate II

MC Workbench cannot generate STM32CubeMX project

STM32CubeMX.Version: 6.8.0-RC4

MC Workbench.Version:5.4.80693W00000aJqRkQAK.png 

18 REPLIES 18
VGani.1
Associate III

hi Zied,

Tried using latest version of Workbench, CubeMx and IDE. But still the same issue. Couldn't understand the error existence. Please help us to resolve the issue. Do we miss any drivers or softwares??

Thanks

Vijay


_legacyfs_online_stmicro_images_0693W00000bVhWFQA0.png

This doesn't seem to prevent a compatible project from being created, can you wait then check if the project is building in the location you chose.

can you please give me as much information as possible? in which directory is your Cube mx and your MCSDK installed?

If you agree with my answer, please accept it by clicking on "Accept as solution".
VGani.1
Associate III

If we wait for longer time, all source files and include files are generating but if we press close button, it shows generation is failed.

CubeMx Installation Path: C:/Program Files/STMicroelectronics/STM32CUbe/STM32CubeMX

MCSDK Installation Path: C:/Program Files(x86)/STMicroelectronics/MC_SDk_6.1.2


_legacyfs_online_stmicro_images_0693W00000bViG3QAK.png 


_legacyfs_online_stmicro_images_0693W00000bViGNQA0.png 

thank you for answer, the generated project should be the one you need, despite the error. We'll be working on a solution to this error.

If you agree with my answer, please accept it by clicking on "Accept as solution".

there is an easy work-around: 

1. Create a folder named .st_motor_control in your user directory. Example: C:\Users\UserName\.st_motor_control for user UserName. This folder may already exist. 

2. In this folder, create a file named wb2mx.properties. This file may already exist. 

3. Open this file with a text editor (Notepad ++ for instance) and put the following lines in it:

# This is the User Config file for WB_to_Mx 
# Note that it overrides the parameters set in the wb2mx.properties file that is delivered with the
# workbench  This latter file can be found in the config folder of the Workbench distribution.
######################################################################################################
 
#######################################
# the following parameters have to be #
# defined as json string vector       #
errors_to_skip=                       \
  [                                   \
    "Picked up JAVA_TOOL_OPTIONS"     \
    , "Found unsupported composite condition: CLASS='Data Exchange' GROUP='STM32_MetaDataManager' \
    , "Found unsupported composite condition: GROUP='STM32_MetaDataManager' CLASS='Data Exchange' \
  ]
#######################################

If the file already exists and is not empty, you can simply add the errors_to_skip table or, it this table exists, simply append the three lines in it, making sure add a comma in front of the first one.

This is a solution that currently fixes the problem, but keep in mind that this problem is related to Cube MX and therefore may improve with future versions.

If you agree with my answer, please accept it by clicking on "Accept as solution".
VGani.1
Associate III

Hi, there is no file in .st_motor_control . So we need to create a new file with wb2mx.properties (.txtfile)?? and add these line to it

Hello @Community member​ , yes you need to create file named wb2mx.properties and add the above code in it.

If you agree with my answer, please accept it by clicking on "Accept as solution".
VGani.1
Associate III

Hi,

Can we use STEVAL_SPIN3201 for motor control? or using Nucleo board (F446RE) and XNUCLEO_IHM08M1

Which one is more suitable?

Regards\

Vijay

Hi @Zied b.​ ,

Created a file in .txt format in the folder as you said. But still the error do exist.


_legacyfs_online_stmicro_images_0693W00000dDIdSQAW.png 


_legacyfs_online_stmicro_images_0693W00000dDIayQAG.png 


_legacyfs_online_stmicro_images_0693W00000dDIdmQAG.png 


_legacyfs_online_stmicro_images_0693W00000dDIaZQAW.png