cancel
Showing results for 
Search instead for 
Did you mean: 

Workbench generating incomplete source

TSche.17
Associate II

Using latest MCSDK Workbench (on Windows 10) targeting IHM001 with included BR2804 motor:

MC Workbench    : 5.3.2.18569

WB_to_Mx      : 0.15.6.template-18-12-06

STM32CubeMX    : 5.0.1

MC Firmware Library: 5.3.2

Target Toolchain  : ST TrueSTUDIO

Target Driver   : LL - Low Level

Target STM32 FW  : 1.10.0

I get error LOG entries:

 ImportTextPane:157 - (OptionalMessage_ERROR) 

 Unable to find key (Mcu.ThirdPartyNb) in loaded IOC file

 IP (MotorControl) : Invalid parameter (ADC_AHBPERIPH)

 IP (ADC1) : Parameter (InjectedRank) has Id (1#ChannelInjectedConversion) currently not set

Note, the Workbench completes generating a project (tried TrueStudio/Keil, both HAL+LL),

but all the important files like

 motorcontrol.h / motorcontrol.c

 parameters_conversion.h / parameters_conversion_f30x.h

have empty code sections, just the comment/Copyright header is there.

I followed UM2374, did not get any error message in Workbench... Bug in newest relase?

Thanks for help!

1 ACCEPTED SOLUTION

Accepted Solutions
cedric H
ST Employee

Dear Thomas,

We have already seen this issue if the Repository folder is not properly set.

If you open CubeMx without any project, open the Updater Settings that is inside Help menu.

In this menu, you will have a Repository folder field. The path you enter here must finish with a "/".

my path for instance, ended with : "STM32Cube/Repository/"

Let me know if it solves your issue.

Regards

Cedric

View solution in original post

3 REPLIES 3
cedric H
ST Employee

Dear Thomas,

We have already seen this issue if the Repository folder is not properly set.

If you open CubeMx without any project, open the Updater Settings that is inside Help menu.

In this menu, you will have a Repository folder field. The path you enter here must finish with a "/".

my path for instance, ended with : "STM32Cube/Repository/"

Let me know if it solves your issue.

Regards

Cedric

Dear Cedric,

Thanks for your answer; indeed the (back-) slash did fix the issue! Everything compiles and runs on target, verified using the MC Monitor tool with success!

Best Regards

Thomas

Laurent Ca...
Lead II

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards