当前位置:网站首页>开发板训练: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!
在上面的实验基础上改一下。
实验结果如下:
实验完成。
边栏推荐
- 从零开始的 Rust 语言 blas 库之预备篇(2)—— blas 矩阵格式详解
- 《PyTorch深度学习实践》-B站 刘二大人-day5
- MySQL MySQL calculates the number of weekends this year (Saturday and Sunday)
- Restclient query document
- 网络层及ip学习
- 山西省第二届网络安全技能大赛(企业组)部分赛题WP(三)
- 人脸识别错误
- Automatic completion & (custom) Pinyin word Separator &
- 实验二 类与对象定义初始化
- Pytorch deep learning practice-b station Liu erden-day3
猜你喜欢

Mapping index attribute & operation of creating index

斑点检测 记录

Flip linked list

Wu Enda machine learning chapter 3-4

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

Set the index library structure, add suggestions that can be automatically completed to users, and turn some fields into collections and put them into suggestions

TCP/IP四层模型以及F5部分相关配置

Pytorch deep learning practice-b station Liu erden-day5

数据库的查询(二)

Introduction to daily use of manjaro system
随机推荐
Manjaro 系统日常使用入门导引
Application of views and index files
Loadng class `com. mysql. jdbc. Driver‘. This is deprecated. The new driver class is `com. mysql. cj. jdb
ORACLE分组排序后获取第一条和最后一条值
Introduction to daily use of manjaro system
Cygwin cooperates with listary to switch the current directory and quickly open it
用Altium Designer绘制PCB图
阿拉伯数字转中文
Perception de l’état d’attention des utilisateurs sur les smartphones
政府采购如何用好成本补偿合同
Dual tone sorting of CUDA and large arrays
山西省第二届网络安全技能大赛(企业组)部分赛题WP(二)
Flip linked list
redis
基于Ardunio IDE软件开发编程学习
No application for domain name SSL certificate under ports 80 and 443 (applicable to acme.sh and certbot)
感知智能手機上用戶的關注狀態
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (II)
SQL constraints
Es aggregation analysis reports an error: "reason": "text fields are not optimized for operations