编辑: 865397499 2014-01-22
飞思卡尔 HCS08/HCS12 系列 MCU 编程调试器的设计与实现 中文摘要 I 飞思卡尔 HCS08/HCS12 系列 MCU 编程调试器的设计与实现 中文摘要 飞思卡尔公司的 HCS08/HCS12 系列 MCU,因其速度快、功能强、功耗小、价 格低等特点,在业界得到了广泛的应用.

在HCS08/HCS12 系列 MCU 中,飞思卡尔引入了新的片上调试技术――BDM. 这种调试技术由于其优越的性能而逐渐被业界接受,成为广泛使用的 MCU 在线编程 调试方法.针对 BDM 技术,国外公司提供了功能强大的编程调试器,但价格高昂, 难以被国内广大用户接受;

国内一些高校也进行了相关研究开发,但是研发的编程调 试器大多存在以下三个问题:一是随着飞思卡尔 MCU 总线频率的不断提高,这些编 程调试器已经不能适应与高频率 MCU 的通信的要求;

二是无法与飞思卡尔的集成开 发环境 CodeWarrior 兼容,使用很不方便;

三是由于采用 USB1.1 协议,导致整体通 信速度很慢. 本文对国内外已有的 HCS08/HCS12 编程调试器进行了深入的技术分析,综合目 前微控制器的最新发展技术,提出了采用 USB2.0 通信接口的编程调试器硬件及底层 驱动的设计方案,实现了一种新型高效的适用于飞思卡尔 HCS08/HCS12 系列 MCU 的USBDM(Universal BDM,通用 BDM 编程调试器),有效地解决了国内编程调试 器普遍存在的频率瓶颈及通信速度.同时,本文在研究 CodeWarrior 的通信接口规范 的基础上,剖析了 CodeWarrior 中通信接口函数的功能,实现了作者编程调试器体系 中的通信函数,使之适用于 CodeWarrior 开发环境.USBDM 编程调试器通信函数动 态链接库的设计, 不仅便于使用编程调试器进行二次开发, 也方便了驱动程序的更新. 关键词:嵌入式微控制器,编程调试器,片上调试,后台调试模式,HCS08/HCS12 作者:孟忠伟 指导老师:王宜怀 Abstract Design and Implementation of Programmer and Debugger for Freescale HCS08/HCS12 family MCUs II Design and Implementation of Programmer and Debugger for Freescale HCS08/HCS12 family MCUs Abstract Freescale HCS08/HCS12 family MCUs have been accepted by all kinds of industries all over the world for their powerful computing, lower energy consumption and price. Freescale has introduced a new on-chip debug technology which named Background Debug Mode(BDM) in Freescale HCS08/HCS12 family MCUs. Because of its superior performance.This technique is received gradually by the industry and becomes a widely used method of on-chip debugging of MCU. Foreign companies provide a powerful programmer and debugger of BDM, but it can not be accepted by domestic users for its high price. A lot of rearches have been done in many national colleges and universities, but there are mainly three problems can be found in their programmer and debuggers. Firstly, these debuggers'

speed is too low to communication with new freescale MCUs. Sencondly, these debuggers are unable to compatible with Freescale'

s IDE, CodeWarrior. Thirdly, since USB1.1 has been adopted, the communication speed can not be enhanced. Based on the in-depth analysis of the existing HCS08/HCS12 debuggers at home and abroad and combanding the latest technology in this field, a hardware and device driver schema which adopts the USB2.0 technology has been brought out. This thesis implements an efficient universal BDM debugger which can be used in Freescale HCS08/HCS12 familiy MCUs. This design resolves the common bottleneck of communication frequency and speed. Meanwhile, in the basis of research in the communication specification, this thesis analyzeds the communication interface functions of CodeWarrior IDE and implements specific communication functions for USBDM. These entire features make USBDM can be work with CodeWarrior. USBDM DLL can also used in other projects and provides a convinent way to update firmware. Key Words: MCU, Programmer&

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题