cancel
Showing results for 
Search instead for 
Did you mean: 

Code Generation Failure in ST MotorControl Workbench 5.4.8 - Works in Latest Version but Program Errors

Sankar_1
Associate II

Hi,

I’m facing an issue with ST Motor Control Workbench version 5.4.8. After configuring everything, I tried generating the code, but I encountered a generation failure. I checked all configurations, and there are no clear error messages explaining the issue.

I’ve also tried using the latest version of Motor Control Workbench, where the code generation works correctly, but the program still shows errors when running on the hardware.

Here are the details of my setup:

  • STM32F303VC (100-pin package)
  • Motor parameters are configured, and all firmware libraries are installed.
  • The latest firmware package is installed, and directory permissions seem correct.

Could this be a version mismatch with the firmware libraries, or is there a specific version of Motor Control Workbench that’s known to work best with the STM32F303VC?

I’m attaching a screenshot of the error. Any advice or guidance on how to resolve the generation failure or which version to use would be greatly appreciated.

 

Thanks & regards,

Sankar

 

 

4 REPLIES 4
GMA
ST Employee

Hello @Sankar_1,

Concerning the error messages during generation with ST Motor Control Workbench version 5.4.8, if it goes until main.c file generation, please proceed with generated project.
Concerning the errors when running on the hardware, please refer to user manual documentation available through "Workbench6.x tool">About>Documentations>Documentation>"User manual" tab>"Firmware errors" link

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

Hi GMA,

I’m working with a custom power board based on the STM32F303VCT6. After configuring everything and generating the code, I’m facing a connection failure, and there’s no response from the hardware.

I have only connected the PWM pins, current sensing pins, and hall sensor pins on the custom board. When I connect through UART, the connection is established.

My question is:

  • Is UART required for establishing the main connection to the custom board, or is there another interface I should be using?
  • Are there any specific configurations I need to check, given that I’ve only connected PWM, current sensing, and hall sensor pins?

Any guidance on resolving the connection issue would be greatly appreciated.

Thanks 

Sankar

 

@GMA 

 

I’m working with a custom power board based on the STM32F303VCT6. After configuring everything and generating the code in ST MotorControl Workbench 5.4.8, the generation completes with some errors, but I was able to build and flash the code to the board.

However, I’m encountering an issue where the PWM is not generating as expected. I’ve called the MotorControl API function MC_StartMotor1();, but there are no PWM pulses on the output pins. My custom board has only the PWM pins, current sensing pins, and hall sensor pins connected.

  • What steps should I take to ensure the motor runs correctly on my custom board and resolve the PWM generation issue?
  • Are there specific configurations or settings I need to verify in MotorControl Workbench or the firmware to ensure PWM output?

Thanks 

Sankar

@GMA 

 

I’m still facing the issue where PWM is not generating on my custom board, even after calling MC_StartMotor1();. I’ve checked all the connections (PWM, current sensing, and hall sensor pins), but the motor doesn’t run, and there are no PWM pulses on the output pins.

Also, could someone clarify which MCSDK version is best for my setup? I’ve tried different versions, but I want to make sure I’m using the right one.

Any advice on what might be wrong or what to check next would be really helpful. Should I focus on specific configurations in MotorControl Workbench or the generated code?

 

Thanks &Regards

Sankarapandi M