2023-03-28 02:07 AM
MC Workbench cannot generate STM32CubeMX project
STM32CubeMX.Version: 6.8.0-RC4
MC Workbench.Version:5.4.8
Solved! Go to Solution.
2023-06-06 03:03 AM - edited 2023-11-20 09:07 AM
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
2023-06-06 05:18 AM
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?
2023-06-06 05:28 AM - edited 2023-11-20 09:07 AM
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
2023-06-06 05:35 AM
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.
2023-06-06 06:42 AM
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.
2023-06-06 08:51 PM
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
2023-06-07 12:44 AM
Hello @Community member , yes you need to create file named wb2mx.properties and add the above code in it.
2023-06-07 02:49 AM
Hi,
Can we use STEVAL_SPIN3201 for motor control? or using Nucleo board (F446RE) and XNUCLEO_IHM08M1
Which one is more suitable?
Regards\
Vijay
2023-06-07 03:09 AM - edited 2023-11-20 09:08 AM
Hi @Zied b. ,
Created a file in .txt format in the folder as you said. But still the error do exist.