Keil5 New STM32 project (library function version)

  1, download keil5 Reference Tutorial: https://blog.csdn.net/qq_36854651/article/details/82632931

  2. After installing keil5, create an empty directory for storing project

  3, open keil5, Project -> New Uvision Project, stored at the empty directory

  4, the next chip will let you choose: I choose the chip is STM32F103C8T6

  5, configure the environment: check some of the necessary documents

 

   6. The need to check the files you need, then click ok

 

  7, in the directory, create a USER folder, used to store source code

 

   8, click on the file -> New, to write source code, save to the USER folder

 

   9, add a new source file to the project to go: Right Source Group -> Add Exitsting File ......, and then navigate to the USER inside, choose to add it into main.c

 

   10, you need to add a global macro definition identifier. After clicking method is to add a magic wand, into the C / C ++ tab, and then even enter the Define input box: STM32F10X_HD, USE_STDPERIPH_DRIVER

 

Guess you like

Origin www.cnblogs.com/Mr-choa/p/12637824.html