[ST Motor Kit Evaluation] 1. Build the Evaluation Motor Kit Environment[Copy link]
This post was last edited by whoislj on 2018-6-23 10:38 Thanks to ST and EEworld for giving me this opportunity to participate in the evaluation of the motor kit. This article mainly builds the evaluation environment based on the ST official user manual UM2374. The first step is to download the required software. The software has version requirements: Others follow the installation prompts and apply patches while installing. The second step is to analyze the motor parameters in Motor Profiler (supported by M4, but not by the most commonly used M3) When I first started analyzing, I kept getting this Warning. Later, I adjusted the maximum speed to 20,000, and then the analysis was successful.
Click "Save" to save for later use. The third step is ST MC Workbench Open MC workbench and click File -> New Project. Select the corresponding control board and power board as shown in the figure below. You can select "MC Kit" for the motor kit. In the Motor item next to the semi-transparent number "4", select the file you saved after analyzing the motor with Motor Profiler.
In the MC Workbench main interface, you can click the four sub-items such as Motor, Power Stage, Drive Management, and Control Stage to view the motor parameters, driver board parameters, driver management, main control chipconfiguration, etc. You can adjust the parameters here when you make your own board or do a project. Click the output folder options button on the toolbar and select the output IDE, such as MDK-ARM.
After selecting, click "OK", and then click the Generation button to generate the workbench project for CubeMX to call. Step 4 STM32CubeMX Open CubeMX, click Load Project to load the project file (.ioc format) generated in the previous step. Open as shown below,
Most of the pins have been configured, and you can generate code directly (just can't press the button to start without connecting to the host computer). Under Project -> Settings -> Code Generator, check the box as shown below.
This content is created by EEWORLD forum user whoislj. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source