STM32 new project

                                                                                                                                                                                                                                                                                                             一、建一个工程文件夹,包含以下文件夹:


Insert image description here
② Copy the following two folders in the standard library to the Libraries folder
Insert image description here
③ Copy the following two files into the Device folder
Insert image description here

2. Create a new project in
keil①
Insert image description here

In FWLB, add all c files under the following files.
Insert image description here
3. Configuration Magic
① Check Use MicroLIB
Insert image description here

Insert image description here

Check
Insert image description here
③ Add macro
USE_STDPERIPH_DRIVER, STM32F302x8
Insert image description here
and check C99 Mode

④Add header file path
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45950842/article/details/115375502