Skip to main content
TSche.17
Associate
Jan 8, 2019 11:33 PM UTC
Solved

Workbench generating incomplete source

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!

This topic has been closed for replies.
cedric H
cedric HBest answer
ST Technical Moderator
Jan 11, 2019 10:34 AM UTC

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

3 replies

cedric H
cedric HBest answer
ST Technical Moderator
Jan 11, 2019 10:34 AM UTC

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

TSche.17
TSche.17Author
Associate
Jan 11, 2019 10:51 PM UTC

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...
Senior III
Jun 22, 2021 8:57 AM UTC

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