摘要
针对嵌入式处理器在FPGA中的应用现状,通过引入通用的调试模块,实现了对没有调试接口的嵌入式处理器进行在线调试的功能。所设计的调试模块通过引入专用的调试中断及与之对应的调试服务程序实现一种处理器响应断点(breakpoint)的机制,并基于双端口RAM中一种巧妙的地址映射机制实现同时对多行代码设置断点的功能。实际的工程应用情况表明,新的调试方法扩展了对小型嵌入式处理器进行调试的手段,明显提高了开发效率。
Aimed at enabling the online debug for embedded processors that does not have debug interface, a novel method is proposed by introducing a versatile debug module. This debug module constructed a breakpoint mechanism by introducing a dedicated debug interrupt and the corresponding debug routine ; Set breakpoints at many code lines is enabled by a novel address mapping scheme based on a dual port RAM. It is shown from engineering practice that with the ability of debugging smart embedded processors gained by this new debug method, the developing efficiency was obviously improved.
出处
《微处理机》
2010年第3期11-15,共5页
Microprocessors
关键词
嵌入式处理器
在线调试
断点
Embedded processor
Online debug
Breakpoint