当前位置:网站首页>开发板训练:STM32下的多任务程序
开发板训练:STM32下的多任务程序
2022-07-17 05:20:00 【大马哈鱼拌柠檬】
开发板训练:STM32下的多任务程序
关于我的开发板
我所使用的开发板是野火STM32F103指南者开发板,也使用了高速DAP仿真器,才拿到手,一波连接,如下图:
下图就是传说中的高速DAP:
在网上找了找高速仿真器的特点,如下:
1、支持RAM 所有 Cortex内核 控制器,属于HID设备,无需安装驱动,即插即用。
2、兼容性好,支持XP/WIN7/WIN8/WIN10操作系统。
3、下载速度块,稳定,不丢固件,支持在线调试和硬件仿真。
4、DAP仿真器分高速和全速两个版本,高速版支持JTAG和SWD模式,全速版只支持SWD模式
对了,记得开发板上要连USB转串口,根据需要连接,连好确认无误再打开开关。
准备工作做好了,现在快进到我们的实验!
1.闪烁的LED
第一个实验,我们完成这样的一个周期任务:每间隔500ms闪烁(变化)一次LED。
1.我们去找在野火提供的资料中提取移植好FreeRTOS的模板。
不需要修改。
2.点击魔术棒进行配置

配置里要知道,我们是SW和JTAG都支持的,但有的时候会出现No Debug Unit Device Found。根据之前实验的经验,大概率电脑没有识别高速仿真器串口,建议更新一下,更新流程如下图:
电脑第一次连高速仿真器貌似都会出现这个问题。都是小问题。
这次野火的其实也算是配置好了的,不需要过多的修改。
3.开始烧录
烧录之前要编译要编译要编译,不然出现工作环境问题。
从左往右,先编译,再烧录!
4.结果:
小灯闪了起来,实验完成。
2.helloworld!
在上面的实验基础上改一下。
实验结果如下:
实验完成。
边栏推荐
- Preparation of blast Library of rust language from scratch (1) -- Introduction to the basics of blas
- 翻转链表
- 从零开始的 Rust 语言 blas 库之预备篇(1)—— blas 基础介绍
- wireshark抓包:报文信息
- 总价合同、成本补偿合同、工料合同
- Pytorch deep learning practice-b station Liu erden-day3
- Wu Enda machine learning chapter 6-7
- 读取图片 进行空间转换 展现不同颜色空间
- Vscode Tips 1
- Restclient multi conditional aggregation
猜你喜欢

Pytorch deep learning practice-b station Liu erden-day3

感知智能手機上用戶的關注狀態

Binary search and its extension

用Altium Designer绘制PCB图

Attention prediction in self video based on motion and visual prominence

《PyTorch深度学习实践》-B站 刘二大人-day3

二分查找及其引申

剑指offer刷题

Machine learning - classification prediction of logistic regression

斑点检测 记录
随机推荐
Wu Enda machine learning chapter 6-7
Performance comparison between merge into and update in Oracle
《PyTorch深度学习实践》-B站 刘二大人-day3
山西省第二届网络安全技能大赛(企业组)部分赛题WP(三)
从输入URL到展示出页面
视图、索引文件的应用
Some basic concepts in network
Attention prediction in self video based on motion and visual prominence
Visual saliency based visual gaze estimation
Busybox 1.21.1 has udpsvd function, which can be compiled successfully without interfering with the local busybox method
Application of views and index files
Quelques concepts de base dans le réseau
OpenSSL---堆栈
libevent 报 undefined reference to `getrandom‘
oracle中merge into 与update的性能对比
Machine learning - classification prediction of logistic regression
Wu Enda machine learning chapter 8-9
无80和443端口下申请域名SSL证书(适用于 acme.sh 和 certbot)
F5LTM(一)逻辑关系图
Antd is not defined