KR100731497B1 - Apparatus and method for controlling error code of micom - Google Patents

Apparatus and method for controlling error code of micom Download PDF

Info

Publication number
KR100731497B1
KR100731497B1 KR1020050046068A KR20050046068A KR100731497B1 KR 100731497 B1 KR100731497 B1 KR 100731497B1 KR 1020050046068 A KR1020050046068 A KR 1020050046068A KR 20050046068 A KR20050046068 A KR 20050046068A KR 100731497 B1 KR100731497 B1 KR 100731497B1
Authority
KR
South Korea
Prior art keywords
microcomputer
trap
fault code
ram
information
Prior art date
Application number
KR1020050046068A
Other languages
Korean (ko)
Other versions
KR20060124249A (en
Inventor
정태영
Original Assignee
지멘스 오토모티브 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 지멘스 오토모티브 주식회사 filed Critical 지멘스 오토모티브 주식회사
Priority to KR1020050046068A priority Critical patent/KR100731497B1/en
Publication of KR20060124249A publication Critical patent/KR20060124249A/en
Application granted granted Critical
Publication of KR100731497B1 publication Critical patent/KR100731497B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Abstract

마이컴의 트랩(소프트웨어오류) 발생 원인을 정확하고 신속하게 추적할 수 있도록 한 마이컴 고장 코드 제어 장치 및 방법에 관한 것이다. 이러한 본 발명은, 내부적인 문제로 인해 트랩 발생 시 트랩 발생 원인 정보 및 트랩 발생 주소 정보를 포함하는 고장 코드를 발생하는 마이컴과, 상기 마이컴의 제어에 따라 상기 마이컴의 고장 코드를 제공받아 일시 저장하고 저장된 고장 코드를 상기 마이컴으로 전송하는 램과, 상기 마이컴의 제어에 의해 시동키가 오프된 경우 상기 램에 저장된 고장 코드를 제공받아 영구 저장하는 플레쉬 메모리를 포함하고, 상기 마이컴의 트랩 발생 시 발생된 고장 코드를 램에 일시 저장함으로써, 마이컴의 고장 발생 원인을 정확하고 신속하게 추적할 수 있다.The present invention relates to a microcomputer fault code control apparatus and method for accurately and quickly tracing the cause of a microcomputer trap (software error). The present invention is a microcomputer that generates a fault code including trap generation cause information and trap generation address information when a trap occurs due to an internal problem, and receives and temporarily stores a fault code of the microcomputer under the control of the microcomputer. A RAM for transmitting the stored fault code to the microcomputer, and a flash memory configured to receive the fault code stored in the RAM for permanent storage when the ignition key is turned off under the control of the microcomputer. By temporarily storing the fault code in RAM, the cause of the microcom fault can be traced accurately and quickly.

자동차, 마이크로프로세서, 리셋, 고장 코드 Automotive, Microprocessors, Resets, and Fault Codes

Description

마이컴의 고장 코드 제어 장치 및 방법{APPARATUS AND METHOD FOR CONTROLLING ERROR CODE OF MICOM}Micom code control device and method {APPARATUS AND METHOD FOR CONTROLLING ERROR CODE OF MICOM}

도 1은 본 발명에 따른 마이컴의 고장 코드 제어 장치의 구성을 보인 도이다.1 is a diagram showing the configuration of a fault code control apparatus of a microcomputer according to the present invention.

도 2는 본 발명에 따른 마이컴의 고장 코드 제어 과정을 보인 흐름도이다.2 is a flowchart illustrating a fault code control process of the microcomputer according to the present invention.

〈도면의 주요 부분에 관한 부호의 설명〉<Explanation of symbols about main part of drawing>

11 : 마이컴 13 : 램11: Micom 13: RAM

15 : 플레쉬 메모리15 flash memory

본 발명은 마이컴의 고장 코드 제어 장치 및 방법에 관한 것으로서, 보다 상세하게는, 마이컴의 트랩 발생시 발생된 마이컴의 고장 코드를 램에 저장하여 마이컴의 고장 원인을 간단하게 추적할 수 있도록 한 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for controlling a fault code of a microcomputer, and more particularly, an apparatus and a method for easily tracking a microcomputer fault code by storing a fault code of a microcomputer generated when a microcomputer trap is generated in a RAM. It is about.

통상 32bit의 마이크로 프로세서를 이용하여 엔진을 제어하는 엔진 제어유닛에 있어, 통상 외부로부터 공급되는 배터리 전압으로부터 안정화된 전압을 출력하는 레귤레이터로부터 3.3V 및 5V이 공급될 때 마이크로 프로세서는 동작되고, 이 3.3V의 전압을 수신한 마이크로 프로세서는 웨이크업(wake up)된다.In an engine control unit that normally controls an engine using a 32-bit microprocessor, the microprocessor operates when 3.3V and 5V are supplied from a regulator that normally outputs a voltage stabilized from an externally supplied battery voltage. The microprocessor, which has received a voltage of V, wakes up.

또한, 레귤레이터의 출력 전압이 5V가 되면, 상기 마이크로 프로세서는 미리 저장된 프로그램을 실행한다. 이때 상기 마이크로프로세서는 엔진제어유닛의 출력측에 접속된 다수의 전장품을 구동시키기 위한 제어신호를 발생한다. 상기 제어 신호를 받은 다수의 전장품은 동작한다.In addition, when the output voltage of the regulator reaches 5V, the microprocessor executes a stored program. At this time, the microprocessor generates a control signal for driving a plurality of electrical appliances connected to the output side of the engine control unit. A plurality of electrical appliances receiving the control signal operate.

또한, 상기 마이컴의 내부적인 문제로 인해 고장(트랩)이 발생되면, 마이컴은 트랩 발생 원인과 트랩 발생 주소 정보를 가지는 고장 코드는 내부 레지스터에 저장한다. 이 후 트랩으로 인해 마이컴이 초기화되면 내부 레지스터 역시 초기화되어 마이컴의 고장 발생 원인에 대한 추적이 불가능한 문제점이 발생하였다.In addition, when a failure (trap) occurs due to the internal problem of the microcomputer, the microcomputer stores a failure code having a trap generation cause and trap generation address information in an internal register. After that, when micom is initialized due to traps, internal registers are also initialized, which makes it impossible to trace the cause of the failure of micom.

따라서, 본 발명은 이와 같은 문제점을 해결하기 위하여 안출된 것으로서, 본 발명의 목적은 마이컴의 트랩 발생 시 내부 레지스터에 저장된 고장 코드를 램에 일시 저장하고, 마이컴의 리셋 시 램에 저장된 고정 코드를 제공받아 상기의 마이컴의 고장 발생 원인을 간단하고 신속하게 추적할 수 있도록 한 마이컴의 고장 코드 제어 장치 및 방법을 제공하는 것이다.Accordingly, the present invention has been made to solve such a problem, an object of the present invention is to temporarily store a fault code stored in the internal register in the RAM when the trap of the microcomputer occurs, and to provide a fixed code stored in the RAM when the microcomputer resets The present invention provides a microcomputer malfunction code control apparatus and method for easily and quickly tracking the cause of the microcomputer failure.

본 발명의 또 다른 목적은, 시동키 오프된 경우 상기 램에 저장된 고장 코드를 별도의 플레쉬 메모리에 저장함으로써, 마이컴의 고장 원인을 영구 보존할 수 있도록 한 마이컴의 고장 코드 제어 장치 및 방법을 제공하는 것이다.Still another object of the present invention is to provide a fault code control apparatus and method of a microcomputer that can permanently preserve the cause of a fault of a microcomputer by storing a fault code stored in the RAM in a separate flash memory when the ignition key is turned off. will be.

삭제delete

이와 같은 목적을 달성하기 위한 본 발명에 따른 마이컴의 고장 코드 제어 장치는,Micom fault code control apparatus according to the present invention for achieving the above object,

내부적인 문제로 인해 트랩 발생 시 트랩 발생 원인 정보 및 트랩 발생 주소 정보를 포함하는 고장 코드를 발생하는 마이컴과, A microcomputer that generates a fault code including trap cause information and trap generation address information when a trap occurs due to an internal problem;

상기 마이컴의 제어에 따라 상기 마이컴의 고장 코드를 제공받아 일시 저장하고 저장된 고장 코드를 상기 마이컴으로 전송하는 램과, RAM for receiving the fault code of the microcomputer under the control of the microcomputer and temporarily storing the microcontroller's fault code and transmitting the stored fault code to the microcomputer;

상기 마이컴의 제어에 의해 시동키가 오프된 경우 상기 램에 저장된 고장 코드를 제공받아 영구 저장하는 플레쉬 메모리를 포함하고And a flash memory for permanently receiving the fault code stored in the RAM when the ignition key is turned off under the control of the microcomputer.

또한, 상기 마이컴에서 상기 램으로부터 공급된 고장 코드에 대한 에러 진단을 실행하기 위해, 상기 램은 상기의 고장 코드의 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수값을 저장하고 상기의 고장 코드의 트랩 발생 주소 정보 및 트랩 발생 주소 정보의 보수값을 저장하도록 구비되는 것을 특징으로 한다.Further, in order to execute error diagnosis on the fault code supplied from the RAM in the microcomputer, the RAM stores the repair value of the trap occurrence cause information and trap occurrence cause information of the fault code and traps the fault code. And a complementary value of the generation address information and the trap generation address information.

삭제delete

상기 마이컴은 고장 코드에 대한 데이터 에러 진단을 위해, 램에 저장된 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수 값을 비교하여 일치하는 경우 트랩 발생 주소 정보와 트랩 발생 주소 정보의 보수 값을 비교하고, 비교 결과 일치하는 경우 램에 저장된 고장 코드를 정상 데이터로 판정하도록 구비된다.The microcomputer compares the repair value of the trap occurrence address information and the trap occurrence address information when the match occurs by comparing the repair occurrence value of the trap occurrence cause information stored in the RAM and the trap occurrence cause information, for diagnosing a data error of the fault code. If the result of the comparison matches, the fault code stored in the RAM is determined to be normal data.

삭제delete

본 발명의 다른 관점에 따른 마이컴의 트랩 발생 시 고장 코드 저장 방법은,According to another aspect of the present invention, a method of storing a fault code when a trap of a microcomputer is generated,

a) 마이컴에서 트랩 발생 시 발생하고 트랩 발생 원인 정보 및 트랩 발생 주소 정보를 포함하는 고장 코드를 레지스터에 저장하는 단계;a) storing a fault code in a register which occurs when a trap occurs in the microcomputer and includes trap occurrence cause information and trap generation address information;

b) 상기 마이컴의 제어에 의해 상기의 고장 코드를 램에 저장하는 단계;b) storing the fault code in RAM under the control of the microcomputer;

c) 상기의 트랩 발생 원인을 추적하기 위해, 상기 마이컴에서 미리 설정된 소정 시간이 경과되어 마이컴의 리셋된 경우 상기 램에 저장된 고장 코드를 수신하는 단계; 및
d) 상기 마이컴을 통해 상기 램으로부터 공급된 고장 코드에 대한 에러 진단 후 정상 데이터인 경우 상기의 고장 코드를 사용자에게 인식시키는 단계를 더 포함하며,
c) receiving a fault code stored in the RAM when the microcomputer is reset after a predetermined time elapses in the microcomputer to track the cause of the trap generation; And
d) recognizing the fault code to the user in case of normal data after error diagnosis on the fault code supplied from the RAM through the microcomputer;

여기서, 상기 b) 단계는, Here, step b),

b-1) 상기 고장 코드의 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수 값을 저장하는 단계; 및b-1) storing the trap generation cause information of the fault code and the complement value of the trap generation cause information; And

b-2) 상기 고장 코드의 트랩 발생 주소 정보와 트랩 발생 주소 정보의 보수 값을 저장하는 단계를 포함하고, b-2) storing the trap generation address information of the fault code and the complement value of the trap generation address information;

상기 d) 단계는, Step d),

삭제delete

삭제delete

삭제delete

삭제delete

d-11) 고장 코드에 대한 데이터 에러 진단을 위해, 상기 마이컴을 통해 상기 램에 저장된 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수 값을 비교하는 단계;d-11) comparing the repair value of trap generation cause information and trap generation cause information stored in the RAM through the microcomputer for diagnosing a data error for a fault code;

d-12) 상기 d-11)의 비교 결과 트랩 발생 원인 정보 및 그의 보수 값이 일치하는 경우 상기 마이컴을 통해 트랩 발생 주소 정보 및 그의 보수 값을 비교하는 단계; d-12) comparing trap generation address information and its reward value via the micom when the trap generation cause information and its reward value match as a result of the comparison of d-11);

d-13) 상기 d-12)의 비교 결과 트랩 발생 주소 정보 및 그의 보수 값이 일치하는 경우 정상 데이터로 판정하는 단계; 및d-13) determining the normal data when the trap generation address information and its complement value match as a result of the comparison of d-12); And

d-14) 상기 정상 데이터를 사용자에게 인식시키는 단계를 포함한다.d-14) recognizing the normal data to the user.

또한, 상기 본 발명의 방법은, e) 상기 마이컴을 통해 시동키가 오프된 경우 상기 램에 저장된 고장 코드를 플레쉬 메모리에 영구 저장하는 단계를 더 포함한다.The method may further include e) permanently storing a fault code stored in the RAM in a flash memory when the ignition key is turned off through the microcomputer.

본 발명에 의하면, 마이컴의 트랩 발생 시 내부 레지스터에 저장된 고장 코 드를 램이 일시 저장하고, 마이컴의 리셋 발생 시 상기 램에 저장된 고장 코드를 수신하여 마이컴의 고장(트랩) 발생 원인을 정확하게 항상 추적할 수 있게 한다.According to the present invention, the RAM temporarily stores a fault code stored in an internal register when a microcomputer trap is generated, and receives a fault code stored in the RAM when a microcomputer reset occurs, and always accurately tracks the cause of a microcomputer failure (trap). To do it.

이하, 도면을 참조하여 본 발명의 실시 예를 통해 본 발명을 보다 상세히 설명한다. Hereinafter, the present invention will be described in more detail with reference to the accompanying drawings.

도 1은 본 발명에 따른 마이컴의 고장 코드 제어 장치의 구성을 보인 도면이다. 본 발명에 따른 마이컴의 고장 코드 제어 장치는, 도 1에 도시된 바와 같이, 내부적인 문제로 인해 트랩 발생시 고장 코드를 저장하는 내부 레지스터를 포함하고 트랩 발생 시 리셋된 후 소정 시간 경과되어 자동으로 재리셋되면 수신된 고장 코드에 대한 데이터 에러를 진단하고 진단 결과에 따라 고장 코드를 사용자에게 인식시키는 마이컴(11)과, 상기 마이컴(11)의 트랩 발생 원인을 추적하기 위해 상기 마이컴(11)의 트랩 발생 시 발생된 고장 코드를 일시 저장하고 마이컴(11)의 재 리셋 시 저장된 고장 코드를 상기 마이컴(11)에 전송하는 램(13)을 포함한다. 본 발명의 실시 예에서는 상기 마이컴(11)에 의해 시동키가 오프됨이 감지될 때 상기 램(13)에 저장된 고장 코드를 영구 저장하는 플레쉬 메모리(15)를 더 포함한다.1 is a diagram showing the configuration of a fault code control apparatus of a microcomputer according to the present invention. The fault code control apparatus of the microcomputer according to the present invention includes an internal register for storing a fault code when a trap occurs due to an internal problem, as shown in FIG. When reset, the microcomputer 11 for diagnosing a data error with respect to the received fault code and recognizing the fault code to the user according to the diagnosis result, and the trap of the microcomputer 11 to track the cause of the trap of the microcomputer 11. The RAM 13 may be configured to temporarily store a failure code generated at the time of occurrence and transmit the stored failure code to the microcomputer 11 when the microcomputer 11 is reset again. The embodiment of the present invention further includes a flash memory 15 that permanently stores a fault code stored in the RAM 13 when the start key is detected to be off by the microcomputer 11.

여기서, 상기 고장 코드는 트랩을 일으킨 원인 정보인 트랩 발생 원인 정보와 트랩이 발생된 주소 정보인 트랩 발생 주소 정보를 포함하고, 상기 램(13)은 상기 내부 레지스터(R)에 저장된 고장 코드와 상기 고장 코드의 1의 보수 데이터를 저장하도록 구비된다.Here, the fault code may include trap generation cause information, which is information causing a trap, and trap generation address information, which is address information at which a trap is generated, and the RAM 13 may include a fault code stored in the internal register R and the It is provided to store the repair data of 1 of the fault code.

이어, 상기 마이컴(11)은 마이컴(11)의 재 리셋 시 램으로부터 공급된 고장 코드와 고장 코드의 보수 값(Complement value)을 비교하여 일치하는 경우 고장 코 드를 출력하여 상기 마이컴(11)의 트랩 발생 원인을 사용자에게 인식시키도록 구비된다. Subsequently, when the microcomputer 11 resets the microcomputer 11, the microcomputer 11 compares the fault code supplied from the RAM with the complement value of the fault code, and outputs a fault code to output the fault code. And cause the user to recognize the cause of the trap.

즉, 상기 마이컴(11)은 재 리셋 시 램(13)에 저장된 트랩 원인 정보와 트랩 원인 정보의 보수 값을 비교하여 일치하는 경우 트랩 주소 정보와 트랩 주소 정보의 보수 값을 비교하고, 비교 결과 일치하는 경우 램(13)에 저장된 고장 코드를 정상 데이터로 판정하도록 구비된다. 즉 본 발명의 실시 예에 있어, 상기 고장 코드의 보수 값은 1에 대한 고장 코드인 것으로 설명하고 있으나, 데이터 에러를 검출하는 방법은 본 발명의 실시 예에서 설명한 방법 이외에 다양한 방법이 있으며, 이러한 다양한 방법은 통상적으로 널리 알려진 기술이므로 그에 따른 상세한 설명은 생략한다..That is, the microcomputer 11 compares the complement value of the trap address information and the trap address information and compares the complement value of the trap address information with the complement of the trap cause information stored in the RAM 13 when the reset is repeated. If so, the failure code stored in the RAM 13 is provided to determine the normal data. That is, in the embodiment of the present invention, the complementary value of the fault code has been described as being a fault code of 1, but there are various methods of detecting a data error in addition to the method described in the embodiment of the present invention. Since the method is generally well known technology, detailed description thereof will be omitted.

상기 마이컴(11)은 내부적인 문제로 인해 트랩 발생 시 발생된 고장 코드를 내부 레지스터에 저장한 후 상기 내부 레지스터(R)의 고장 코드는 어드레스 버스 및 데이터 버스를 통해 램(13)에 공급된다.The microcomputer 11 stores a fault code generated when a trap occurs due to an internal problem in an internal register, and then the fault code of the internal register R is supplied to the RAM 13 through an address bus and a data bus.

상기 램(13)은 수신된 고장 코드인 트랩 발생 원인 정보와 트랩 발생 주소정보와 그 각각에 대한 보수 값을 저장한 후 마이컴(11)은 모든 프로그램을 리셋시킨다.The RAM 13 stores the trap failure cause information, the trap generation address information, and the repair value for each of the received failure codes, and the microcomputer 11 resets all programs.

한편, 마이컴의 소정 시간(watchdog의 설정 시간)이 경과되면, 상기 마이컴(11)은 자동으로 재 리셋되고, 이때 상기 마이컴(11)은 램(13)에 저장된 고장 코드를 수신하여 상기 트랩 발생 원인 정보와 그에 대한 보수값을 비교하여 일치하는 경우 상기 트랩 발생 주소 정보와 그에 대한 보수 값을 비교한 후 일치하는 경우 상기 램(13)에 저장된 고장 코드의 데이터 에러를 진단한다. 상기 고장 코드에 대한 데이터 에러 진단을 통해 정상 데이터로 판정된 경우 상기 마이컴(11)는 고장 코드를 사용자에게 인식시켜 트랩 발생 원인 추적한다. On the other hand, when a predetermined time of the microcomputer (watchdog set time) has elapsed, the microcomputer 11 is automatically reset, and at this time, the microcomputer 11 receives a failure code stored in the RAM 13 to cause the trap to be generated. Comparing the information and the repair value for the information and match the trap generating address information and the repair value for the match and if it is matched to diagnose a data error of the fault code stored in the RAM (13). If it is determined that the normal data through the data error diagnosis for the fault code, the microcomputer 11 recognizes the fault code to the user to track the cause of the trap.

한편, 상기 마이컴(11)은 시동키가 오프된후 상기 램(130에 저장된 고장 코드는 플레쉬 메모리(15)로 전송되고, 상기 플레쉬 메모리(15)는 고장 코드를 영구 저장한다. 이어 상기 램(13)은 메모리(15)에 고장 코드의 전송완료 후 램에 저장된 고장 코드를 삭제한다.On the other hand, after the start key is turned off, the microcomputer 11 transmits the fault code stored in the RAM 130 to the flash memory 15, and the flash memory 15 permanently stores the fault code. 13 deletes the fault code stored in the RAM after completion of the transfer of the fault code to the memory 15.

도 2는 본 발명에 따른 마이컴의 고장 코드 제어 과정을 보인 흐름도이다. 우선, 여기서, 상기 마이컴(11)은 트랩 발생 시(단계 101) 발생된 고장 코드를 어드레스 버스 및 데이터 버스를 통해 램(13)에 공급하여 고장 코드를 저장시킨다(단계 103).2 is a flowchart illustrating a fault code control process of the microcomputer according to the present invention. First, the microcomputer 11 supplies the fault code generated at the time of trap generation (step 101) to the RAM 13 through the address bus and the data bus to store the fault code (step 103).

즉, 수신된 고장 코드의 트랩 발생 원인 정보 및 트랩 발생 주소 정보와 각각에 대한 보수 값은 램(13) 저장된다.That is, the RAM 13 stores the trap generation cause information, the trap generation address information, and the complement value for each of the received failure codes.

한편, 상기 마이컴(11)은 소정 시간을 카운팅한 후(단계 107) 소정 시간이 경과되면 리셋되고(단계 109), 상기 램(13)에 저장된 고장 코드를 수신하고(단계 111), 여기서 수신된 고장 코드에 대한 진단을 실행한다(단계 113).On the other hand, the microcomputer 11 counts a predetermined time (step 107) and after a predetermined time has elapsed (step 109), receives the fault code stored in the RAM 13 (step 111), where the received Diagnostics are executed for the fault code (step 113).

즉, 상기 단계(117)를 통해 상기 고장 코드의 트랩 발생 원인 정보와 그에 대한 보수 값을 비교하여(단계 115) 일치하는 경우 트랩 발생 주소 정보와 그에 대한 보수 값을 비교한다(단계 117).That is, the step 117 compares the trap generation cause information of the fault code with the complement value thereof (step 115) and compares the trap occurrence address information with the complement value thereof (step 117).

상기 단계(117)를 통해 트랩 발생 주소 정보 및 그에 대한 보수 값이 일치하 는 경우 상기 램(13)에 저장된 고장 코드가 정상 데이터로 판정한다(단계 119). If the trap generation address information and the repair value thereof match through the step 117, the fault code stored in the RAM 13 is determined to be normal data (step 119).

이어 상기 마이컴(11)은 고장 코드를 사용자에게 인식시켜(단계 121) 트랩 발생 원인을 추적한다.The microcomputer 11 then recognizes the failure code to the user (step 121) to track the cause of the trap.

또한, 상기 마이컴(11)은 시동키가 오프되었는 지를 체크하고(단계 123) 여기서, 시동키가 오프되었다고 판단되면, 램(13)으로부터 공급된 고장 코드를 플레쉬 메모리(15)로 전송되어 고장 코드를 저장한다(단계 125). In addition, the microcomputer 11 checks whether the ignition key is turned off (step 123), and if it is determined that the ignition key is turned off, the fault code supplied from the RAM 13 is transmitted to the flash memory 15 to provide a fault code. Save (step 125).

이상에서 설명한 바와 같이, 본 발명에 따른 마이컴의 고장 코드 제어 장치 및 방법은, 마이컴의 트랩 발생 시 내부 레지스터에 저장된 고장 코드를 램이 일시 저장하고, 마이컴의 리셋 발생 시 상기 램에 저장된 고장 코드를 수신하여 마이컴의 고장(트랩) 발생 원인을 추적할 수 있게 한다.As described above, the microcomputer's fault code control apparatus and method according to the present invention, the RAM temporarily stores the fault code stored in the internal register when the trap of the microcomputer generates, and the fault code stored in the RAM when the reset of the microcomputer occurs Receive and track down the cause of the failure of the microcomputer.

또한, 본 발명에 의하면, 마이컴의 트랩 발생 시 발생된 고장 코드에 포함된 트랩 발생 원인 정보 및 트랩 발생 주소 정보와 그에 대한 각각의 보수 값이 램에 저장됨으로써, 고장 코드의 고장을 진단할 수 있게 하는 효과를 얻는다.In addition, according to the present invention, the trap occurrence cause information and trap generation address information included in the fault code generated when the trap occurs in the microcomputer and the respective repair values thereof are stored in the RAM, so that the failure code can be diagnosed. Get the effect.

본 발명에 의하면, 시동 오프 후 상기 램에 저장된 고장 코드를 별도의 플레쉬 메모리에 저장함으로써, 고장 코드를 영구 보존할 수 있는 효과를 얻는다.According to the present invention, by storing the fault code stored in the RAM in a separate flash memory after startup, the fault code can be permanently stored.

이와 같이 본 발명이 속하는 기술 분야의 당업자는 본 발명의 그 기술적 사상이나 필수적 특징으로 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로, 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며, 한정적인 것이 아닌 것으로서 이해해야만 한다. 본 발명의 범위 는 상기 상세한 설명보다는 후술하는 특허 청구범위 의해 나타내어지며, 특허 청구범위의 의미 및 범위 그리고 그 등가 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다. As such, those skilled in the art to which the present invention pertains will understand that the present invention may be embodied in other specific forms without changing to the technical spirit or essential features of the present invention. Therefore, the above-described embodiments are to be understood in all respects as illustrative and not restrictive. The scope of the present invention is shown by the following claims rather than the above description, and all changes or modifications derived from the meaning and scope of the claims and their equivalents should be construed as being included in the scope of the present invention. .

Claims (12)

내부적인 문제로 인해 트랩 발생 시 트랩 발생 원인 정보 및 트랩 발생 주소 정보를 포함하는 고장 코드를 발생하는 마이컴과,  A microcomputer that generates a fault code including trap cause information and trap generation address information when a trap occurs due to an internal problem; 상기 마이컴의 제어에 따라 상기 마이컴의 고장 코드를 제공 받아 일시 저장하고 저장된 고장 코드를 상기 마이컴으로 전송하는 램과, A RAM for receiving and storing the fault code of the microcomputer under the control of the microcomputer and temporarily transmitting the fault code to the microcomputer; 상기 마이컴의 제어에 의해 시동 오프 시 상기 램에 저장된 고장 코드를 제공받아 영구 저장하는 플레쉬 메모리를 포함하는 것을 특징으로 하는 마이컴의 고장 코드 제어 장치.And a flash memory configured to receive and permanently store a fault code stored in the RAM when the power is turned off by the control of the microcomputer. 삭제delete 제2항에 있어서, 상기 마이컴에서 상기 램으로부터 공급된 고장 코드에 대한 에러 진단을 실행하기 위해, 상기 램은 상기의 고장 코드의 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수값을 저장하고 상기의 고장 코드의 트랩 발생 주소 정보 및 트랩 발생 주소 정보의 보수값을 저장하도록 구비되는 것을 특징으로 하는 마이컴의 고장 코드 제어 장치.The RAM of claim 2, wherein the RAM stores the repair value of the trap generation cause information and the trap generation cause information of the fault code and executes an error diagnosis on the fault code supplied from the RAM. Micom's failure code control device, characterized in that it is provided to store the trap generation address information of the failure code and the repair value of the trap generation address information. 삭제delete 제3항에 있어서, 상기 마이컴은, The method of claim 3, wherein the microcomputer, 고장 코드에 대한 데이터 에러 진단을 위해, 상기 램에 저장된 트랩 원인 정보와 트랩 원인 정보의 보수 값을 비교하여 일치하는 경우 트랩 주소 정보와 트랩 주소 정보의 보수 값을 비교하고, 비교 결과 일치하는 경우 램에 저장된 고장 코드를 정상 데이터로 판정하도록 구비하는 것을 특징으로 하는 마이컴의 고장 코드 제어 장치.To diagnose the data error for the fault code, compare the complement value of the trap cause information and the trap cause information stored in the RAM and match the complement value of the trap address information and the trap address information, and compare the Micom code control device characterized in that it is provided to determine the fault code stored in the normal data. 삭제delete a) 마이컴에서 트랩 발생 시 발생하고 트랩 발생 원인 정보 및 트랩 발생 주소 정보를 포함하는 고장 코드를 레지스터에 저장하는 단계;a) storing a fault code in a register which occurs when a trap occurs in the microcomputer and includes trap occurrence cause information and trap generation address information; b) 상기 마이컴의 제어에 의해 상기의 고장 코드를 램에 저장하는 단계;b) storing the fault code in RAM under the control of the microcomputer; c) 상기의 트랩 발생 원인을 추적하기 위해, 상기 마이컴에서 미리 설정된 소정 시간이 경과되어 마이컴의 리셋된 경우 상기 램에 저장된 고장 코드를 수신하는 단계; 및c) receiving a fault code stored in the RAM when the microcomputer is reset after a predetermined time elapses in the microcomputer to track the cause of the trap generation; And d) 상기 마이컴을 통해 상기 램으로부터 공급된 고장 코드에 대한 에러 진단 후 정상 데이터인 경우 상기의 고장 코드를 사용자에게 인식시키는 단계를 포함하는 것을 특징으로 하는 마이컴의 트랩 발생 시 고장 코드 저장 방법.and d) recognizing the fault code to the user in the case of normal data after error diagnosis of the fault code supplied from the RAM through the micom. 삭제delete 제7항에 있어서, 상기 b) 단계는, The method of claim 7, wherein step b), b-1) 상기 고장 코드의 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수 값을 저장하는 단계; 및b-1) storing the trap generation cause information of the fault code and the complement value of the trap generation cause information; And b-1) 상기 고장 코드의 트랩 발생 주소 정보와 트랩 발생 주소 정보의 보수 값을 저장하는 단계를 포함하는 것을 특징으로 하는 마이컴의 고장 코드 제어 방법.b-1) storing the fault generation trap information of the fault code and the complement value of the trap generation address information. 삭제delete 제7항에 있어서, 상기 d) 단계는, The method of claim 7, wherein the d) step, d-11) 고장 코드에 대한 데이터 에러 진단을 위해, 상기 마이컴을 통해 상기 램에 저장된 트랩 발생 원인 정보와 트랩 발생 원인 정보의 보수 값을 비교하는 단계;d-11) comparing the repair value of trap generation cause information and trap generation cause information stored in the RAM through the microcomputer for diagnosing a data error for a fault code; d-12) 상기 d-11)의 비교 결과 트랩 발생 원인 정보 및 그의 보수 값이 일치하는 경우 상기 마이컴을 통해 트랩 발생 주소 정보 및 그의 보수 값을 비교하는 단계; d-12) comparing trap generation address information and its reward value via the micom when the trap generation cause information and its reward value match as a result of the comparison of d-11); d-13) 상기 d-12)의 비교 결과 트랩 발생 주소 정보 및 그의 보수 값이 일치하는 경우 정상 데이터로 판정하는 단계; 및d-13) determining the normal data when the trap generation address information and its complement value match as a result of the comparison of d-12); And d-14) 상기 정상 데이터를 사용자에게 인식시키는 단계를 포함하는 것을 특징으로 하는 마이컴의 고장 코드 저장 방법.d-14) storing the fault code of the microcomputer, comprising the step of recognizing the normal data to the user. 제7항, 제9항, 및 제11항 중 어느 한 항에 있어서, e) 상기 마이컴을 통해 시동키가 오프된 경우 상기 램에 저장된 고장 코드를 플레쉬 메모리에 저장하는 단계를 더 포함하는 것을 특징으로 하는 마이컴의 고장 코드 제어 방법. 12. The method of any one of claims 7, 9, and 11, further comprising: e) storing a fault code stored in the RAM in a flash memory when the ignition key is turned off through the microcomputer. The fault code control method of the microcomputer.
KR1020050046068A 2005-05-31 2005-05-31 Apparatus and method for controlling error code of micom KR100731497B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050046068A KR100731497B1 (en) 2005-05-31 2005-05-31 Apparatus and method for controlling error code of micom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050046068A KR100731497B1 (en) 2005-05-31 2005-05-31 Apparatus and method for controlling error code of micom

Publications (2)

Publication Number Publication Date
KR20060124249A KR20060124249A (en) 2006-12-05
KR100731497B1 true KR100731497B1 (en) 2007-06-21

Family

ID=37729027

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050046068A KR100731497B1 (en) 2005-05-31 2005-05-31 Apparatus and method for controlling error code of micom

Country Status (1)

Country Link
KR (1) KR100731497B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230082997A (en) 2021-12-02 2023-06-09 현대자동차주식회사 Managing system of vechile data and operating method thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100722476B1 (en) * 2005-12-02 2007-05-28 엘지노텔 주식회사 Watchdog apparatus with error log creation function and the method thereof
FR3040523B1 (en) 2015-08-28 2018-07-13 Continental Automotive France METHOD OF DETECTING AN UNCOMPRIGIBLE ERROR IN A NON-VOLATILE MEMORY OF A MICROCONTROLLER

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000047154A (en) * 1998-12-31 2000-07-25 장근호 Error detection and correction circuit
KR20020007090A (en) * 2000-07-15 2002-01-26 윤종용 Method and system for booting recovery a computer
KR20030013198A (en) * 2001-08-07 2003-02-14 한국전자통신연구원 Method of fault tolerant in the computer system
KR20040000205A (en) * 2002-06-24 2004-01-03 엘지전자 주식회사 Method of initializing value error detection and recovering in embedded system
JP2004334869A (en) * 2003-05-07 2004-11-25 Microsoft Corp Diagnosis and solution of computer problem by program, and automatic report and updating thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000047154A (en) * 1998-12-31 2000-07-25 장근호 Error detection and correction circuit
KR20020007090A (en) * 2000-07-15 2002-01-26 윤종용 Method and system for booting recovery a computer
KR20030013198A (en) * 2001-08-07 2003-02-14 한국전자통신연구원 Method of fault tolerant in the computer system
KR20040000205A (en) * 2002-06-24 2004-01-03 엘지전자 주식회사 Method of initializing value error detection and recovering in embedded system
JP2004334869A (en) * 2003-05-07 2004-11-25 Microsoft Corp Diagnosis and solution of computer problem by program, and automatic report and updating thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230082997A (en) 2021-12-02 2023-06-09 현대자동차주식회사 Managing system of vechile data and operating method thereof

Also Published As

Publication number Publication date
KR20060124249A (en) 2006-12-05

Similar Documents

Publication Publication Date Title
US9390569B2 (en) Control and diagnosis of a controller wake up feature
CN102760090B (en) Debugging method and computer system
CN108345786B (en) Remote attestation method for software control flow integrity assisted by hardware
CN1993679B (en) Method, operating system, and computing device for processing a computer program
CN106547653B (en) Computer system fault state detection method, device and system
US11521116B2 (en) Self-optimizing multi-core integrated circuit
KR100731497B1 (en) Apparatus and method for controlling error code of micom
KR20110064971A (en) Method and system of fault diagnosis and repair using based-on tracepoint
CN102737724A (en) System and method for testing nonvolatile random access memory (NVRAM)
US20090271063A1 (en) Electronic control unit and vehicle control system
US7203581B2 (en) Electronic control unit for controlling updating of data in non-volatile memory
JP6011162B2 (en) Electronic control unit
CN114385421A (en) Data storage method and device, electronic equipment and storage medium
JP4475345B2 (en) Electronic control unit
US6957135B2 (en) Electronic control system
JP2015185123A (en) electronic control unit
US20040172233A1 (en) Semiconductor integrated circuit device and microcomputer development assisting apparatus
US7856622B2 (en) Computer program runtime bottleneck diagnostic method and system
KR20080037815A (en) Self-diagnosis/recovery ecu in vehicle and method for operating the same
JP5223630B2 (en) Electronic control unit
CN116300821A (en) Voltage regulator fault diagnosis method and device and electronic equipment
KR20210033733A (en) Test method and test device of battery management system
CN107918069B (en) Power failure test system and method
KR100710988B1 (en) Apparatus and method for saving error code when micom is generating error
CN115016329A (en) Control method, control device and electronic equipment

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130607

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140605

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150604

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20160602

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20170601

Year of fee payment: 11