Method for changing program and storing medium recorded changing program

PURPOSE: A method for modifying a program and a recording medium including a modified program is provided to prevent a damage of a flash memory although an abnormal state is generated. CONSTITUTION: If a power is applied to a device, a control unit executes a boot loader program from a reset vector(...

Full description

Saved in:
Bibliographic Details
Main Author HAN, JEONG SU
Format Patent
LanguageEnglish
Korean
Published 09.06.2003
Edition7
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:PURPOSE: A method for modifying a program and a recording medium including a modified program is provided to prevent a damage of a flash memory although an abnormal state is generated. CONSTITUTION: If a power is applied to a device, a control unit executes a boot loader program from a reset vector(200). In addition, it is checked whether a main program is a valid, that is, an error is generated in the main program by reading a recognition code recorded in a specific position of the min program(201). In the case that an error is generated in the main program, a download utility program is executed by jumping to a start address(202). If the download utility program is executed, an interface is initialized, new main program is downloaded through the interface and written in a main program storage area of a memory(203-205). If new main program is updated completely in the memory, the device is reset(206). A recognition code of the main program is read. If an error is not generated in the main program, the main program is executed and the device is run(207,208). 본 발명은 CPU와 프로그램 저장용 메모리를 사용하는 장치를 동작시키는 방법 및 그 메모리에 관한 것으로, 보다 상세하게는 메모리에 저장된 메인 프로그램의 변경 방법 및 변경된 프로그램이 저장된 저장 매체에 관한 것이다. 프로그램 변경 방법은 (a) 전원이 인가되면, 제1 특정 프로그램을 실행하여 장치를 동작시키는 메인 프로그램의 정상적인 동작이 가능한지 판단하는 단계, (b) 정상 적인 동작이 가능한 상기 메인 프로그램을 실행시키거나, 상기 메인 프로그램이 비정상적인 동작을 하는 것으로 판단되면 제2 특정 프로그램을 실행하여 외부로터 새로운 메인 프로그램을 다운로드 할 수 있도록 지원하는 단계를 포함한다. 본 발명에 따르면, 장치의 메인 프로그램을 업데이트 하는 과정에서 발생할 수 있는 에러로 인해 장치를 사용하지 못하게 되는 것을 막을 수 있는 효과가 있다.
Bibliography:Application Number: KR20010074964