当前位置:网站首页>开发板训练: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!
在上面的实验基础上改一下。
实验结果如下:
实验完成。
边栏推荐
- 过拟合原因及解决办法
- 深度优先遍历(Depth First Search, 简称 DFS)
- Application of views and index files
- Machine learning - classification prediction of logistic regression
- Perceive the attention status of users on smart phones
- Robot stitching gesture recognition and classification
- 斑点检测 记录
- 工作中遇到的一些问题
- 《PyTorch深度学习实践》-B站 刘二大人-day5
- 数据库的查询(二)
猜你喜欢

Machine learning - classification prediction of logistic regression

Read pictures and convert them to show different color spaces

Pytorch deep learning practice-b station Liu erden-day7

Design and implementation of a gesture control system for tablet computer based on gaze

Robot stitching gesture recognition and classification

Visual saliency based visual gaze estimation

Learning non posture gaze deviation with head movement

Wu Enda machine learning chapter 6-7

吴恩达机器学习第6-7章

Sword finger offer brush questions
随机推荐
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (I)
Introduction to daily use of manjaro system
@resource is popular in idea
政府采购如何用好成本补偿合同
[jmeter] TCP Sampler
Pytorch deep learning practice-b station Liu erden-day6
網絡中的一些基本概念
《PyTorch深度学习实践》-B站 刘二大人-day6
️️固高运动控制卡的相关知识点
基于SPI/IIC接口的OLED数据显示
Quelques concepts de base dans le réseau
山西省第二届网络安全技能大赛(企业组)部分赛题WP(四)
Loadng class `com. mysql. jdbc. Driver‘. This is deprecated. The new driver class is `com. mysql. cj. jdb
Restapi implementation of automatic completion & case implementation (search box input for automatic completion)
libevent 报 undefined reference to `getrandom‘
Perceive the attention status of users on smart phones
IDEA中@Resource爆红
吴恩达机器学习第6-7章
Experiment class II and object definition initialization
Cygwin cooperates with listary to switch the current directory and quickly open it