摘要
在调试嵌入式软件时,一般采用ICE在线仿真器追踪目标并提取出源代码,监测目标器件总线的活动情况,但在线仿真器也存在兼容性不好、性价比不高等问题,一般用于嵌入式硬件和驱动程序设计调试阶段。本文提出一种基于伪断点的嵌入式应用软件调试方法,通过在嵌入式应用软件中加入"伪断点"来实现对嵌入式应用软件数据的实时调试和查看,伪断点是指一段代码,程序运行到它时中止,此时可通过某接口获取PC指令,并根据指令输出任何嵌入系统端实时数据,达到对嵌入式应用软件中断调试的目的。
In debugging embedded software, general use ICE to track and target extracted from the source code, the objective of monitoring the activities of the device bus, but there are also compatibility bad, the issue of higher price does not generally use Embedded in the design of hardware and driver debugging stage. This paper presents a break point based on pseudo - embedded application software debugging method. To Debug and to look over the data in embedded software in real time can be realized by adding a pseudo - breakpoint in embedded program code. The pseudo - breakpoint is a code where the main program breaks down to take over PC command from some interface and to output any embedded data. The code aims tot debugging the embedded program.
出处
《信息技术与信息化》
2008年第4期47-48,共2页
Information Technology and Informatization
关键词
嵌入式应用软件
调试
伪断点
指令集
Embedded application program
Debug Pseudo -breakpoint
Command set