当前位置:网站首页>STM32-新建工程(参考正点原子)
STM32-新建工程(参考正点原子)
2022-07-02 06:28:00 【江藤霞】
好久都没玩过32了,新建工程总是忘,写个博客记录一下
注意:本文以F103ZET6为例,文章最后有相关资料哦!
先安装pack包,最后有链接
拿到pack包直接双击安装。
新建工程目录
注:以新建28BYJ-48_demo工程为例
1、新建工程文件夹
新建E:\MyDocument\MyAllCode\STM32Project\28BYJ-48_demo目录为项目的根目录。
2、建立项目结构
在根目录下分别新建以下目录
3、放置必要文件
CORE/目录:
core_cm3.c
core_cm3.h
startup_stm32f10x_hd.s
USER/目录:
main.c
stm32f10x.h
stm32f10x_conf.h
stm32f10x_it.c
stm32f10x_it.h
system_stm32f10x.c
system_stm32f10x.h
FWLIB/inc/目录:
FWLIB/src/目录:
新建工程
1、在keil5上新建工程

2、管理项目组文件

将上面三个目录里的.c文件都添加进去
3、编译配置
激活生成hex文件选项

添加宏定义、头文件路径
STM32F10X_HD,USE_STDPERIPH_DRIVER
项目参考模板+pack包
链接:https://pan.baidu.com/s/1B88CixR8D_jt11fU90bVTQ
提取码:w4g5
边栏推荐
- 力扣方法总结:滑动窗口
- Longest isometric subsequence
- SQL server如何卸载干净
- Carsim-问题Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
- SQL操作数据库语法
- Income in the first month of naked resignation
- 应对长尾分布的目标检测 -- Balanced Group Softmax
- Erase method in string
- On the back door of deep learning model
- VS Code配置问题
猜你喜欢

Carsim-实时仿真的动画同步问题

包图画法注意规范

C语言实现XML生成解析库(XML扩展)

Use of OpenCV 6.4 median filter

Static library and dynamic library

Replace self attention with MLP

Carsim-问题Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?

Carsim-路面3D形状文件参数介绍

Carla-ue4editor import Roadrunner map file (nanny level tutorial)

Animation synchronization of CarSim real-time simulation
随机推荐
Vscode下中文乱码问题
力扣方法总结:查找类
Eklavya -- infer the parameters of functions in binary files using neural network
王-课外单词
Jetson nano installation tensorflow stepping pit record (scipy1.4.1)
Several methods of image enhancement and matlab code
Erase method in string
STL速查手册
Command line is too long
Sqlyog remote connection to MySQL database under centos7 system
Use of opencv3 6.2 low pass filter
Chinese garbled code under vscade
包图画法注意规范
Media query usage
11月24号,我们为“满月”庆祝
STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE
VS Code配置问题
最长等比子序列
Find and rfind methods in string
Using super ball embedding to enhance confrontation training