Skip to main content
Associate II
October 17, 2024
Question

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

  • October 17, 2024
  • 1 reply
  • 2208 views

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

 

 

1 reply

GMA
Technical Moderator
October 17, 2024

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
Sankar_1Author
Associate II
October 18, 2024

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