您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 其它办公文档 > STM32固件库2.03与3.0版本的比较中文版
AN2953应用笔记如何从STM32F10xxx固件库V2.0.3升级为STM32F10xxx标准外设库V3.0.0介绍本文的目的是介绍如何把基于STM32F10xxx固件库V2.0.3(FWLib)开发的应用程序升级到STM32F10xxx标准外设库V3.0.0。本文的目的不是提供2个版本的详细信息,而是重点介绍2个版本之间的差异。注意:文中,除非特别指明,固件库(FWLib)代表STM32F10xxx固件库V2.0.3,而标准外设库(StdPeriph_Lib)代表STM32F10xxx标准外设库V3.0.0。术语表小容量产品是指闪存存储器容量在16K至32K字节之间的STM32F101xx,STM32F102xx和STM32F103xx微控制器。中容量产品是指闪存存储器容量在64K至128K字节之间的STM32F101xx,STM32F102xx和STM32F103xx微控制器。大容量产品是指闪存存储器容量在256K至512K字节之间的STM32F101xx和STM32F103xx微控制器。译注:本译文的英文版下载地址为:标准外设库V3.0.0下载地址为:自动升级脚本下载地址为:参照2009年4月AN2953英文第1版本译文仅供参考,如有翻译错误,请以英文原稿为准。请读者随时注意在ST网站下载更新版本如何从STM32F10xxx固件库V2.0.3升级为STM32F10xxx标准外设库V3.0.0目录1为什么把STM32F10xxx固件库(FWLib)V2.0.3升级为标准外设库(StdPeriph_Lib)V3.0.0·····31.1兼容ARM®Cortex-M3TM微控制器软件接口标准(CMSIS)····························································31.1.1CMSIS描述··························································································································31.1.2CMSIS结构··························································································································41.1.3STM32固件库V2.0.3和CMSISV1.10对比············································································51.2STM32F10xxx标准外设库:Doxygen格式·················································································51.3STM32F10xxx标准外设库体系结构····························································································61.4STM32F10xxx标准外设库体系结构:文件包含关系···································································61.5STM32F10xxx固件库(FWLib)V2.0.3存档···················································································72STM32F10xxx标准外设库包··································································································83STM32F10xxx标准外设库变动列表·····················································································113.1STM32F10xxx标准外设库文件·································································································113.1.1库的内核文件······················································································································113.1.2库的外设驱动······················································································································113.1.3库的用户和工具链专用文件·······························································································123.1.4库的例程····························································································································123.2代码的书写规则和惯例··············································································································123.2.1数据类型和IO类型限定词··································································································123.2.2异常的命名························································································································133.3外设驱动更新····························································································································143.3.1NVIC··································································································································143.3.2SysTick······························································································································153.3.3CAN···································································································································163.4如何使用STM32F10xxx标准外设库··························································································164使用自动脚本的升级示例····································································································194.1如何使用自动脚本·····················································································································194.2使用自动脚本的升级步骤··········································································································19附录A固件库(FWLib)V2.0.3升级到标准外设库(StdPeriph_Lib)V3.0.0的具体步骤··············212/22参照2009年4月AN2953英文第1版本译文仅供参考,如有翻译错误,请以英文原稿为准。请读者随时注意在ST网站下载更新版本如何从STM32F10xxx固件库V2.0.3升级为STM32F10xxx标准外设库V3.0.01为什么把STM32F10xxx固件库(FWLib)V2.0.3升级为标准外设库(StdPeriph_Lib)V3.0.0STM32F10xxx固件库(FWLib)V2.0.3是一个完整的固件包,它适用于STM32F10xxx小容量,中容量和大容量产品。固件库由程序,数据结构和宏组成,覆盖了所有外设的特征,还包括了全部标准外设的驱动和一系列示例程序。STM32F10xxx标准外设库(StdPeriph_Lib)V3.0.0由固件库(FWLib)V2.0.3升级而来:●它使库与CortexTM微控制器软件接口标准(CMSIS)兼容●改进了库包的体系结构●源代码符合Doxygen格式●升级不影响STM32外设驱动的API(应用编程接口)注意:标准外设库(StdPeriph_Lib)V3.0.0只对STM32F10xxxCAN驱动进行了升级,目的是支持即将面世的STM32F10xxx连接型产品(带双CAN)。要升级到STM32F10xxx标准外设库V3.0.0,用户只需要更新:●与工具链相关的文件●项目(project)设置●库文件的位置●用户无需改变或者更新应用程序的代码下文详细描述了标准外设库(StdPeriph_Lib)的所有更新细节。1.1兼容ARM®Cortex-M3TM微控制器软件接口标准(CMSIS)CMSIS可以解决用户在基于Cortex-M0/Cortex-M1或者Cortex-M3内核的微控制器上进行软件开发时可能遇到的种种问题。CMSIS还可以扩展,应用在将来的Cortex-M系列处理器内核上(标准称为Cortex-Mx)。CMSIS是ARM公司与多家不同的芯片和软件供应商一起紧密合作定义的,提供了内核与外设、实
本文标题:STM32固件库2.03与3.0版本的比较中文版
链接地址:https://www.777doc.com/doc-4358350 .html