cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find motor parameters in generated code by MC Workbench and STM32Cube

Angelo Quattrociocchi
Associate II

I'm testing a STEVAL-PTOOL1V1 board, and I loaded the STEVAL-PTOOL1V1_6S_SL sample project in Motor Control Workbench v6.3.2.  I generated the code (which used STM32CubeMX v 6.13.0) for STM32CubeIDE v1.11.5 toolchain, and the resulting code compiled and loaded on the board fine.  The board runs the motor OK, although not at high speeds, where it shuts down, presumably because I'm reaching a current limit.  The motor I'm using is not the one set in the sample project so I tried to change the parameters in MC Workbench and regenerate, but it doesn't seem to change how it operates.  I see some parameters scattered around various header files, but I can't find the power supply max application current (Apk). 

I would like to confirm the changes I make in MC Workbench are appearing in the generated code, but it doesn't seem to be and I don't know where to look.  I even did a diff on the entire project before and after a parameter change and didn't see any code changes. 

I could change the values manually in the code rather than try to use MC Workbench and rebuilding, but not sure where this value (and others) appear.

Thanks,

Angelo

 

0 REPLIES 0