当前位置:网站首页>建立STM32F103C8T6工程模板和STM32 ST-LINK Utilit烧录hex文件
建立STM32F103C8T6工程模板和STM32 ST-LINK Utilit烧录hex文件
2022-07-23 07:06:00 【爱学习的王大胖子】
前言
博主现在在项目上需要用STM32写一个测试架,然后我一直是做硬件的,现在从小白(有点基础的)开始使用STM32F103C8T6最小系统,准备把做项目的过程写下来,希望可以帮到一些和我一样的小白。
工程模板
本文使用了正点原子stm32开发板模板文件,按此更改后未报错,程序中可用开发板的库函数例程,方便小白入门使用。
打开DEVICE选项卡,MCU型号更换为STM32F103C8
打开C/C++选项卡,把define的内容修改为为STM32F10X_MD,USE_STDPERIPH_DRIVER。
把startup_stm32f10x_md.s固件文件到复制到CORE文件夹内
编译没有出现错误。
使用STM32 ST-LINK Utilit烧录hex文件
TM32 ST-LINK Utility集成开发环境的安装比较简单。
首先安装驱动,我用的是正点原子里面的驱动
“安装驱动”,点击“下一步”,最后点击“完成”安装完成。

安装STM32 ST-LINK Utility v4.0.0.exe



一直点就OK了
使用STM32 ST-LINK Utility下载程序教程
这一步可以参考这个作者的教程,写得很详细
https://blog.csdn.net/ahphong/article/details/125162725
这个过程中需要找到hex文件,因为我是用了正点原子的工程模板,所以hex文件会自动生成
hex文件在 OBJ 文件夹。
烧录验证
做完以上步骤,就可以烧录了,原本买的最小系统板绿色LED是不会亮的,现在点亮了,证明实验成功
过程模板和用到的驱动,烧录软件在下面的连接,开源
链接:https://pan.baidu.com/s/1snTcQaEuQ67hqolMhJbGsA
提取码:pk1z
边栏推荐
- Smart city infrastructure management based on bim+3dgis
- -20: +usecgroupmemorylimitforheap failed to create virtual machine problem
- 数据库系统原理与应用教程(045)—— MySQL 查询(七):聚合函数
- Shell operator, $((expression)) "or" $[expression], expr method, condition judgment, test condition, [condition], comparison between two integers, judgment according to file permission, judgment accor
- docker mysql
- 第二章关系数据库课后习题
- 学会用canvas构建折线图、柱状图、饼状图
- 解决MySQL向表中增加数据插入中文乱码问题
- 数据库系统原理与应用教程(051)—— MySQL 查询(十三):DML 语句中使用查询
- 智慧食堂数据分析系统
猜你喜欢

How to deal with the new development mode when doing testing?

Convergence of abnormal integral

docker mysql

【深入浅出玩转FPGA学习10------简单的Testbench设计】

Interface test - simple interface automation test demo

Charles' bag grabbing tool test practice

4D antenna array layout design
智慧食堂数据分析系统

Why choose AMD epyc for cloud solutions?

Problem solving: script file 'scripts\pip script py‘ is not present.
随机推荐
[record] golang cross platform compilation
面试官:有了解过ReentrantLock的底层实现吗?说说看
【PART 2】OAK-D+TurtleBot3机器人项目全解析
Probability meditation: 2. The quantitative rules
Detailed explanation of decision tree
Learn to use canvas to build line chart, bar chart and pie chart
Charles' bag grabbing tool test practice
2022 summer vacation software innovation laboratory training project practice 1
数据库系统原理与应用教程(041)—— MySQL 查询(三):设置查询条件
【MUDUO】EPOLLPOLLER事件分发器
Power BI----综合应用
数据库系统原理与应用教程(045)—— MySQL 查询(七):聚合函数
LeetCode_52_N皇后Ⅱ
MySQL面试题
Defi will never die?
IP address classification and range
【cocos creator】spine动画,监听播放结束
数据库系统原理与应用教程(051)—— MySQL 查询(十三):DML 语句中使用查询
数据库系统原理与应用教程(048)—— MySQL 查询(十):自连接查询
单例模式实现及防止反射与序列化