0. Struggled for an afternoon to get out and summarize.
MDK5 later builds are more efficient, but many of the tutorials are MDK4.
Write for the first time, do not like to spray.
Find, organize, and run your own success on the Web
1. Click the Pack Installer installation package
2. Option-packs-check for Updates
3. Search for STM32 in devices
4. After selecting the device-right install
5. Close Pack Installer
-Menu bar project-new uvision Project ...
-After selecting the project files directory
-Select the corresponding chip
-ok
6. Add the required components (expand the left side of the component category, the right side will also expand the file corresponding to the left, what you need to add what)
7. The added component has a dependency and will turn orange
-Add the required dependent files by following the tips in the lower left corner
-All turned green and finished adding
-ok
8. After the addition, back to the project. If you need to add additional components to your development, click Manage run-time Environment Add or remove
9. Click Options for Targer ... Configuration
Select Use MicroLIB under the-target tab (optimized code)
-output tab, select Create Hex file
10. Add A/C + + file to your project
END
MDK5 New Project