编辑: 人间点评 2019-07-04

s. Debugging as a critical process in the embedded development, plays a very important role. Currently, there is little domestic research in the area of embedded debugging. The developing and debugging tools are provided by foreign companies generally. So it is greatly meaning to study the embedded debugging technology deeply and develop the tools of ourselves. To ease a series of problems such as too much dependency on import tools and lacking of development documents interiorly, we aim at ColdFire CPUs which are rapidly enlarged in the national market, adopt the remote debugging method based on GDB to design and implement a ColdFire embedded debugging system including hardware debugging platform SDMCF52233EVB, debugging stub GDBStub for ColdFire and integated debugging software SD-IDE for ColdFire in the host. It provides an integated debugging platform with full function, simple operation and low price to meet the needs of both study and development for the users. The paper describes the development process of ColdFire debugging system in detail. Firstly, it analyses GDB debugging technology and shows the structure frame of ColdFire debugging system. Secondly, it shows the design of SDMCF52233EVB mininum system, the realization of each hardware module and the hardware testing process. Then, basing on the reference of GDBStub'

s debugging principle and working mechanism, we design and implement GDBStub for ColdFire as a debugging agent in the target to work with GDB together. At last, it discusses the realization of integated debugging software SD-IDE for ColdFire according to different modules, including adding project templates, cross compiling, downloading codes and debugging codes. The results of this research provide a reference for the development of debugging system based on other chips and similar embedded productions. Keywords: ColdFire,MCF52233,GDB,Remote debugging,Debugging stub Written by Chen Yi Supervised by Wang Yihuai 目录

第一章 绪论.1 1.1 ColdFire 系列微处理器.1 1.2 常用嵌入式调试方式分析.2 1.3 国内外发展状况.6 1.4 课题实现的目标和意义.7 1.5 本文工作内容和结构安排.8 1.5.1 工作内容.8 1.5.2 结构安排.9

第二章 GDB 调试技术分析

10 2.1 GDB 简介.10 2.2 GDB 的总体结构.10 2.2.1 用户接口.11 2.2.2 符号处理.11 2.2.3 目标系统处理.12 2.3 GDB/MI 接口.12 2.3.1 GDB/MI 命令简介

12 2.3.2 GDB/MI 的输出记录

13 2.4 RSP 通信协议.14 2.5 调试代理.15 2.5.1 调试服务器 GDBServer.15 2.5.2 调试桩 GDBStub.16 2.6 远程调试.16 2.7 本章小结.18

第三章 ColdFire 硬件调试平台设计

19 3.1 硬件选型.19 3.1.1 CPU 的选取.19 3.1.2 外围器件的选取.20 3.2 主要芯片简介.21 3.2.1 MCF52233 微处理器.21 3.2.2 PRJ005 以太网滤波变压器

22 3.2.3 TLC2543 A/D 转换器

23 3.3 硬件调试平台的设计.24 3.3.1 最小系统硬件设计.25 3.3.2 以太网通信.27 3.3.3 串行通信.28 3.3.4 A/D 转换模块.29 3.3.5 与扩展板接口.29 3.4 测试及体会.29 3.4.1 测试方法.29 3.4.2 测试流程.30 3.4.3 体会.31 3.5 本章小结.32

第四章 GDBStub for ColdFire 的设计与实现.33 4.1 GDBStub 的结构

33 4.2 GDBStub 调试原理分析

34 4.2.1 设置断点.34 4.2.2 运行调试程序.35 4.2.3 继续执行与单步执行.35 4.2.4 读写变量和寄存器值.36 4.3 启动模块软件设计.36 4.4 RSP 通信模块的实现.38 4.4.1 串口驱动程序设计.39 4.4.2 RSP 协议的实现

40 4.5 中断模块软件设计.41 4.5.1 填写中断向量表.41 4.5.2 数据结构.41 4.5.3 中断服务程序的实现.42 4.6 命令处理模块的实现.43 4.7 GDBStub for ColdFire 调试实例.44 4.7.1 被调试样例程序设计.44 4.7.2 GDBStub for ColdFire 调试实例分析.45 4.8 本章小结.45

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