| Embedded system is a focus of current computer software development. With the development of embedded hardware technology, the constant growth of embedded application and the constant enhancement of embedded system complexity are bound to require the scale and complexity of embedded software to improve constantly. Debugging technique is of great significance in the research and development process of embedded software, and debugging tools have a direct impact on the efficiency of software development and quality. Debugging techniques and tools are based on hardware and software, each of them has its own advantages and disadvantages. In the process of debugging embedded system, it often requires two complementary means of debugging to ensure the quality of products. At present, the debugging based on simulation development platform has lots of problems, such as debugging tools is not enough, debugging model is not scalable, unfriendly debugging interface and less efficient debugging.Therefore, this paper firstly analyzes the two software debugging models and some hardware debugging tools, and compares hardware debugging with software debugging, then studies the framework of the Simulation Development Platform IsIm, the mechanism of simulation and the workflow of debug system, finally designs and implements a debug system based on simulation development platform. The debug system, including Simulation Cross Debugging and Simulation OCD Debugging, has friendly debug interface, uses unified debugging function interface to be scalable to support other communication protocols and debuggers. Simulation Cross Debugging, which presents two debugging model based on whether procedures runs on operating system, encapsulates GDB debugger as core of debugging front and makes debugging agent work by Simulation Runtime Environment. The debug front and the debug agent communicate under RSP. Simulation OCD Debugging uses the features of signal transmission based on driving technology and cycle-accurate timing simulation technology to complete hardware-relative debugging.The design, which has the advantage of supporting software-relative debugging and hardware-relative debugging, extendibility, friendly interface, high efficiency debugging, is valuable for the development of simulation debug system. |