(1)新建工程---利用keil自带的库文件创建STM项目

利用keil5自带的Manage Run-Time Environment 功能自带的库文件来创建STM32项目。
软件:keil5,
芯片:STM32F103ZET6
调速器:J-link
1、创建根目录,并在目录下创建App,Bsp文件夹;(新建项目要让文件分组,在后面的开发更清晰明确)
App:存放应用代码文件夹。例如:传感器读取、串口通讯等实现功能实现的代码。
Bsp:底层代码。例如:UART,ADC,DMA等功能。
在这里插入图片描述

2、创建工程
(1)新建项目,选择对应芯片,选择对应文件夹目录。
在这里插入图片描述

(2)在Manage Run-Time Environment(绿色小饼干)选择启动文件和对应的驱动库文件。
CORE、Startup、RCC、FrameWork是必须勾选的,GPIO等其他驱动需要就勾选(根据对应开发需求)
PS:按这种方式新建的项目自带的STM库文件没有stm32F10x_it.c,也就是中断处理的文件夹,没有特殊的代码,可以自己新建。
在这里插入图片描述

3、工程结构
分组创建文件夹,把相应文件放到对应目录;
在这里插入图片描述

4、工程配置
(1)包含目录,让文件调用时,可以寻找到对应文件(C/C++栏)。
包含目录选择项目下的自己新建的文件夹。不然后面编译找不到文件。
在这里插入图片描述

(2)Objects输出。
在这里插入图片描述

(3)选择下载调试工具。
在这里插入图片描述
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200817225609954.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3ODIwMTM1,size_16,color_FFFFFF,t_70#pic_center
测试文件
main.c
在这里插入图片描述

bsp.h
在这里插入图片描述
bsp.c
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Learn to deploy and support Hyper-V, building on what you know about VMware's vSphere. Whether you're looking to run both hypervisors in parallel or migrate completely, Hyper-V for VMware Administrators has everything you need to get started. The book begins with an overview of Hyper-V basics, including common management tasks such as creating a virtual machine and building a virtual network. You'll learn how to deploy a failover cluster to protect against the risk of Hyper-V becoming a single point of failure, and how to make virtual machines fault tolerant. System Center Virtual Machine Manager (SCVMM) is the preferred tool for managing large Hyper-V deployments, so you'll get to know this next and how it differs from VMware's vCenter solution, as well as how to manage a mixed environment including both vSphere and Hyper-V deployments. Like any server migration, a virtual server migration requires careful planning to ensure success. You'll find information here on the specifics of migrating from vSphere to Hyper-V, planning for down time, IP address differences, performance considerations, and more. For migrations to Hyper-V, SCVMM is once again the preferred tool, but you'll also be introduced to some of the excellent free tools available. One easily overlooked aspect of the migration process is the way in which it impacts your backup and recovery strategy. Knowing the best practices here can help you protect your Hyper-V environment. The book also covers how to monitor and maintain your Hyper-V environment once it's up and running, using features like Cluster-Aware Updating, automated live migrations, and availability sets. The concluding chapter shows you how to take advantage of the efficiencies provided by virtual machine libraries and templates. Approach Hyper-V with confidence, and the knowledge that you've planned for success, with Hyper-V for VMware Administrators. What you’ll learn Find out how Hyper-V compares to VMware's vSphere, and how System Center Virtual Machine Manager compares to vCenter. Prevent Hyper-V from becoming a single point of failure with failover clustering. Work with System Center Virtual Machine Manager to manage both Hyper-V and vSphere environments through a single interface. Plan and execute a virtual server migration, including planning for downtime, IP address changes and performance considerations. Adapt your backup and recovery strategy for best results in your new Hyper-V environment. Monitor and maintain your Hyper-V clusters, using Cluster-Aware Updating, automated live migrations, and availability sets. Use virtual machine libraries and templates for increased efficiency. Who this book is for Readers should have a working knowledge of vSphere 5.5. No prior experience with Hyper-V is expected. Table of Contents Chapter 1: Hyper-V Basics Chapter 2: Building a Failover Cluster Chapter 3: An Introduction to System Center Virtual Machine Manager Chapter 4: Using Virtual Machine Manager as a Cross-Platform Management Tool Chapter 5: Using System Center Virtual Machine Manager for Virtual Machine Migrations Chapter 6: An Alternate Migration Method Chapter 7: Virtual Machine Protection Chapter 8: Keeping Hyper-V Healthy Chapter 9: Virtual Machine Libraries and Templates

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值