Method for detecting program code operation position and embedded system

一种检测程序代码运行位置的方法和嵌入式系统

Abstract

The invention discloses a method for detecting program code operation position and an embedded system. The method comprises: operating a program code inserted with a preset output order, wherein, thepreset output order comprises the position information of the preset output order in a program code; when operating to the preset output order, outputting the position information to an external interface, controlling the position information to display the position of the preset output order in the program code on LED on the external interface by the external interface. The method and the systemof the invention can solve the problem that the last position of a running program before system halt can not be obtained after system is halted due to faults in the prior art.
本发明公开了一种检测程序代码运行位置的方法和嵌入式系统,该方法包括:运行插入有预定输出指令的程序代码,该预定输出指令包含本预定输出指令在程序代码中的位置信息;以及在运行到所述预定输出指令时,向外部接口输出所述位置信息,由所述外部接口根据该位置信息控制在该外部接口上的发光二极管LED显示所述预定输出指令在程序代码中的位置。应用本发明实施例提供的方法和系统能够解决现有技术中系统故障死机后无法得知系统死机前运行程序的最后位置的问题。

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (2)

    Publication numberPublication dateAssigneeTitle
    US-8977905-B2March 10, 2015Zte CorporationMethod and system for detecting abnormality of network processor
    WO-2012055303-A1May 03, 2012中兴通讯股份有限公司Method and system for detecting anomaly of network processor