Issues with code generation for motor control
I am using a B-G431B-ESC1 inverter board to run a 36v 10A hub motor. The board is based on the STM32G431CB microcontroller so I am using the STM motor control environment to generate code for this project. Their Motor Control Workbench has a motor profiling program to get the specs from a custom motor like the one I am using. From this motor profile, along with many other parameters, STM32CubeMX generates code for the B-G431B-ESC1. We then upload this code through the STM32cubeIDE and try to run the motor with the ST motor pilot. The problem is the code never seems to work right. The motor doesn’t run and returns one of a few errors depending on the parameters we set up in the Motor control workbench. Is there some parameter we are missing that is important for this board? Since we are staying within the STM environment it doesn’t make sense that the generated code keeps failing. It’d be great to get a response soon as I am trying to figure this out in the next week. I can provide more information if needed.
