摘要
随着嵌入式系统硬件架构和应用软件复杂度的提高,已有的与处理器配套的集成开发调试环境已不能很好地满足对系统的调试需求。本文介绍了一种能够按名称实时在线查看和修改系统中所有变量的调试模型,对其架构结构进行了描述,并分析了实现该模型的关键技术:结构体偏移地址的生成、调试代理动态注册机制。文中还将该模型的调试方式以可视化形式展现。该模型适用于由多个CPU组成的分布式嵌入式系统,能够在不影响系统运行的情况下,读写各CPU中动态对象的成员变量信息和内存区域信息;同时整个嵌入式系统只需要提供一个接口,节省了硬件资源。
With the development of the embedded system framework and application software, the existing processor-oriented debugging methods do not satisfy the requirement for system debugging. This paper introduces a debugging model for viewing and updating the variables’ values in all the boards of a device via variable names, and describes the debugging framework. The key technologies of an algorithm for the address calculating of the "struct" type variables and the dynamic registration method of debugging are implemented in this model. This model with a visual tools application for variable debugging is shown in this paper. This model can be used in a embedded system composed of many CPU boards. The debugging method does not affect a system operation when viewing the plug-in dynamic object member variables and memory region information, and the embedded devices only need to provide a debug interface for debugging, which saves some hardware resources.
出处
《计算机工程与科学》
CSCD
北大核心
2012年第1期178-182,共5页
Computer Engineering & Science
关键词
实时访问
嵌入式系统
调试
命名变量
real-time access
embedded system
debugging
naming variable