当前位置:网站首页>10 days based on stm32f401ret6 smart lock project practice day 1 (environment construction and new construction)
10 days based on stm32f401ret6 smart lock project practice day 1 (environment construction and new construction)
2022-06-13 01:50:00 【It's Beichen bupiacra】
10 Space based on STM32F401RET6 Smart lock project practice No 1 God ( Environmental construction and new construction projects )
One 、 Environment building
1、 install keil5
2、 Install support package
Here, install the support package as required , Yes F4 and F1 The support package
What's good about the installation keil5 Open the new project to see the chip selection
3、 Crack software
Be careful : Run as administrator keil5
4、 Install serial port driver and downloader driver
There are two serial port drivers. Here we choose the first one
Let's download the downloader driver
Two 、 New project
First, we create a folder , Names can be chosen at will , You can put it anywhere
And then in LQY_2 Create several files in the folder
And then in CMSIS There are some core files under the folder
include The following files are placed in the folder
lib The folder contains the chip .c.h The library files .c Files in src Under the folder .h Put it in inc Under the folder
protect Used to put keil5 Downloaded files
stay keil5 When the program is compiled, it will be placed keil5 The file of
user Used to put the user's .c.h file .c Files in src Under the folder .h Put it in inc Under the folder , These will be put in later
If you want to use peripherals later, you can see another one HARDWARE Folder , We won't build here , Use it later and build it again
Here the folder is set up , And then I'm going to keil5 Do the following
Put the document in protect Under the folder
Then select the chip type
Click... After selecting the chip ok That's all right.
Now let's put the file in keil5 Inside
stay CMSIS、lib、user Put them in separately .c file
hold lib Under the folder src The folder .c Put all the files in , Except for the following two
hold main.c and main.h Save them separately to user Of src and inc Under the folder
Then take it. main.c and main.h Put it back keil5 in
Here is the path of the header file
STM32F401xx,USE_STDPERIPH_DRIVER
The macro definition above is placed in define here , Note that English commas
Also, the following header file path should be included , The path contains only the first level folder
At this point, a project file has been created
If reading this blog post is helpful to you , Remember the praise. , Collection , Comments , Thank you for your support .
边栏推荐
- Numpy multidimensional array transpose transpose
- The method of drawing rounded panel with Delphi
- How to solve practical problems through audience positioning?
- 他山之石:a16z 的 Web3 投资版图
- 【官方文件汇总】国科大学位论文撰写规范
- Detailed explanation of audience characteristics
- Detailed explanation of deep learning parameter adjustment skills
- URI, URL and urn difference, relation and syntax diagram
- Shell command notes
- Detailed understanding of white noise
猜你喜欢
Alertwindowmanager pop up prompt window help (Part 1)
DFS and BFS to solve Treasure Island exploration
Devaxpress Chinese description -- tdxgallerycontrol object (gallery component)
五、库存查询功能的完善
Startup, connection and stop of MySQL service
谷歌的受众群体是如何发挥作用的?
4、 Improvement of warehousing management function
Uuid/guid introduction, generation rules and generation codes
六、出库管理功能的实现
服务器安装jupyterlab以及远程登录配置
随机推荐
Installing pytorch geometric
This of phaser3 add. sprite
[learn FPGA programming from scratch -22]: Advanced chapter - Architecture - Design and modeling of FPGA internal hardware circuit
Getting started with phaser 3
[learn FPGA programming from scratch -21]: Advanced - Architecture - VerilogHDL coding specification
5、 Improvement of inventory query function
Record the VMware installation process of VMware Tools and some problems encountered
Project training (XVII) -- personal work summary
DFS and BFS to solve Treasure Island exploration
Magics 23.0 how to activate and use the slice preview function of the view tool page
About the proposed signature file migration to industry standard format pkcs12
Tweens of phaser3
谷歌加大型文字广告是什么?怎么用?
Wsl2 + vcxsrv + opengl3.3 configuration
Devaxpress Chinese description --tcxpropertiesstore (property store recovery control)
How does Google's audience work?
四、入库管理功能的完善
[wsl2]wsl2 migrate virtual disk file ext4 vhdx
STM32 3*3矩阵按键(寄存器版本)
[pytorch FAQ] numpy:dll load failed while importing_ multiarray_ Umath: the specified module could not be found.