KR19980084401A - Error checking method of data downloaded to flash memory - Google Patents

Error checking method of data downloaded to flash memory Download PDF

Info

Publication number
KR19980084401A
KR19980084401A KR1019970020187A KR19970020187A KR19980084401A KR 19980084401 A KR19980084401 A KR 19980084401A KR 1019970020187 A KR1019970020187 A KR 1019970020187A KR 19970020187 A KR19970020187 A KR 19970020187A KR 19980084401 A KR19980084401 A KR 19980084401A
Authority
KR
South Korea
Prior art keywords
data
error
flash memory
stored
host system
Prior art date
Application number
KR1019970020187A
Other languages
Korean (ko)
Other versions
KR100432313B1 (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 KR1019970020187A priority Critical patent/KR100432313B1/en
Publication of KR19980084401A publication Critical patent/KR19980084401A/en
Application granted granted Critical
Publication of KR100432313B1 publication Critical patent/KR100432313B1/en

Links

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/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

본 발명은, 호스트 시스템으로부터 서브 시스템의 플레쉬 메모리로 다운로드된 데이터에 오류가 발생되었는지의 여부를 검사하는 방법에 관한 것으로서; 상기 호스트 시스템에서 전송할 데이터로 소정의 연산을 수행하여 오류판별정보를 산출한 후 상기 데이터와 함께 전송하고, 상기 서브 시스템에서 상기 데이터를 전송받아 상기 플레쉬 메모리에 기록 저장한 후 상기 플레쉬 메모리에 저장된 데이터로 상기 소정의 연산을 수행하여 재차 오류판별정보를 산출하여서, 상기 서브 시스템에서 산출된 오류판별정보가 상기 호스트 시스템에서 전송된 오류판별정보와 서로 일치하는가를 비교 판단하여 그 결과에 따라 오류 발생 여부를 표시하는 것을 특징으로 한다.The present invention relates to a method for checking whether an error has occurred in data downloaded from a host system to a flash memory of a subsystem; Error determination information is calculated by performing a predetermined operation with data to be transmitted from the host system, and then transmitted together with the data.The data is received from the subsystem, stored in the flash memory, stored in the flash memory, and then stored. By calculating the error discrimination information again by performing the predetermined operation, it is determined whether the error discrimination information calculated by the sub-system is equal to the error discrimination information transmitted from the host system, and the error is generated according to the result. It characterized by displaying.

이에 따라 플레쉬 메모리에 다운로드된 데이터의 오류 발생 여부를 사용자에게 통보하여 줄뿐만 아니라 오류 발생시 플레쉬 메모리에 정상적인 데이터가 기록 저장되기까지 다운로드와 오류검사를 반복적으로 수행함으로써, 플레쉬 메모리에 오류가 발생된 데이터가 기록 저장됨으로 인한 서브 시스템의 오작동을 방지한다.Accordingly, not only the user is notified of the error of the data downloaded to the flash memory, but also repeatedly download and error checking until the normal data is recorded and stored in the flash memory. Prevents malfunction of the subsystem due to record storage.

Description

플레쉬 메모리에 다운로드된 데이터의 오류검사방법Error checking method of data downloaded to flash memory

본 발명은 플레쉬 메모리(Flash Memory)에 다운로드(Download)된 데이터의 오류검사방법에 관한 것으로, 특히 새로이 수정된 데이터를 호스트 시스템(Host-system)에서 서브 시스템(Sub-system)으로 전송하여 플레쉬 메모리에 기록 저장하는 도중 오류가 발생되었는지의 여부를 검사하는 방법에 관한 것이다.The present invention relates to an error checking method of data downloaded to a flash memory, and in particular, a newly modified data is transferred from a host system to a sub-system to a flash memory. The present invention relates to a method of checking whether or not an error has occurred during recording and storing.

일반적으로 플레쉬 메모리는 소프트웨어(Software)적으로 섹터(Sector)별 쓰기/지우기(Write/Erase)가 가능한 기억소자로서, 전기적으로 비휘발성이면서도 저장된 내용을 프로그램(Program)에 의해 유통성 있게 수정 갱신할 수 있는 특성을 지닌다.In general, the flash memory is a memory device capable of writing / erasing by sector in software. The flash memory is electrically nonvolatile and can store and update contents stored in a program. Possesses certain characteristics.

이러한 특성 때문에 프린터와 같은 정보연산처리 시스템에서, 제어 프로그램과 같은 반영구적인 데이터를 저장하기 위해 기존에 사용하였던 롬(Read-Only Memory; ROM)을 대용하여, 저장된 데이터를 필요에 따라 새로이 수정된 데이터(이하 '수정 데이터'라 칭함)로 갱신할 수 있는 플레쉬 메모리가 널리 사용되는 추세이다.Due to these characteristics, data stored in an information processing system such as a printer is newly modified as needed by using a read-only memory (ROM), which is used to store semi-permanent data such as a control program. Flash memory that can be updated with (hereinafter referred to as 'correction data') is widely used.

이 경우 정보연산처리 시스템은, 외부에 별도로 접속된 시스템으로부터 수정 데이터를 전송받은 후 이를 플레쉬 메모리에 기 저장된 데이터(이하 '기존 데이터'라 칭함) 대신 기록 저장하게 된다.In this case, the information operation processing system receives the correction data from a system connected to the outside and records and stores the data instead of data previously stored in the flash memory (hereinafter referred to as 'existing data').

도 1은 호스트 시스템으로부터 서브 시스템의 플레쉬 메모리까지 수정 데이터가 이동되는 과정을 설명하기 위한 도면으로서, 컴퓨터(10)와 접속된 프린터(20) 내부의 메모리부를 도시하고 있다.FIG. 1 is a view for explaining a process of moving correction data from a host system to a flash memory of a sub system, and illustrates a memory unit inside a printer 20 connected to a computer 10.

여기서, 호스트 시스템이라 함은 수정 데이터를 전송하는-상기 수정 데이터의 원천지(Source)가 되는 시스템을 가리키는 것이고, 서브 시스템이라 함은 상기 수정 데이터를 전송받는-상기 수정 데이터의 목적지(Destination)가 되는 시스템을 가리키는 것으로서, 이하부터 이들 각각을 호스트 시스템 및 서브 시스템으로 지칭하겠다.Here, the host system refers to a system that transmits the correction data—the source of the correction data, and the subsystem refers to a system that receives the correction data—the destination of the correction data. As referring to the system, the following will refer to each of them as a host system and a subsystem.

도 1을 통해 수정 데이터가 호스트 시스템으로부터 서브 시스템의 플레쉬 메모리에 기록 저장되기까지의 과정을 살펴보면, 프린터(20)의 플레쉬 메모리(22)에 저장되어 있던 기존 데이터, 이를테면 제어 프로그램이나 바이오스(BIOS) 혹은 에뮬레이션(Emulation) 등과 같은 데이터를 갱신할 필요가 있어서 이를 수정하여 새로운 수정 데이터가 작성되면, 호스트 시스템인 컴퓨터(10)에서는 그에 접속된 프린터(20)로 상기 수정 데이터를 전송하고, 서브 시스템인 프린터(20)에서는 상기 수정 데이터를 전송받아 일단 램(Random Access Memory; RAM)(21)에 임시 저장한 후 상기 램(21)에 저장된 수정 데이터를 플레쉬 메모리(22)로 복사함으로써, 최종적으로 플레쉬 메모리(22)의 저장된 기존 데이터가 새로운 수정 데이터로 갱신된다.Referring to the process from the host system to the correction data is stored in the flash memory of the subsystem through Figure 1, the existing data stored in the flash memory 22 of the printer 20, such as a control program or BIOS (BIOS) Alternatively, when data such as emulation or the like needs to be updated and modified and new correction data is created, the computer 10 which is a host system transmits the correction data to the printer 20 connected thereto, The printer 20 receives the correction data and temporarily stores it in a random access memory (RAM) 21, and then copies the modified data stored in the RAM 21 to the flash memory 22, thereby finally flashing the flash data. The existing data stored in the memory 22 is updated with new correction data.

이 경우 플레쉬 메모리(22)는, 도 2에 도시된 바와 같이 프린터(20)를 기동시키기 위한 부트 루틴(Boot Routine) 및 각종 제어 루틴(Control Routine)이 들어있는 부트 영역(Boot Area)과, 상기 프린터(20)의 입출력에 대한 정보가 저장되는 바이오스 영역(BIOS Area), 그리고 컴퓨터(10)에서 전송되는 정보를 인쇄 가능한 이미지(Image)로 변환하기 위한 각종 에뮬레이션이 저장되는 에뮬레이션 영역(Emulation Area)들로 각각 할당되어 있으며, 상기 부트 영역에는 플레쉬 메모리(22)를 관리하고 그에 기록 저장되는 데이터의 오류를 자체적으로 검사하는 루틴도 저장되어 있어, 프린터(20)의 중앙처리부(도시 안됨)에서는 이를 수행하여 상기 램(21)에 저장된 수정 데이터가 오류 없이 플레쉬 메모리(22)에 기록 저장될 때까지 복사와 검사를 반복한다.In this case, the flash memory 22 includes a boot area including a boot routine and various control routines for starting the printer 20, as shown in FIG. A BIOS area in which information on input / output of the printer 20 is stored, and an emulation area in which various emulations for converting information transmitted from the computer 10 into a printable image are stored. And a routine for managing the flash memory 22 and checking an error of data recorded and stored therein in the boot area, and the central processing unit (not shown) of the printer 20 stores the routine. Copying and checking are repeated until correction data stored in the RAM 21 is recorded and stored in the flash memory 22 without error.

하지만 상술한 바와 같이 호스트 시스템으로부터 수정 데이터가 서브 시스템의 플레쉬 메모리에 최종적으로 기록 저장되기까지에는 다단계의 과정, 이를테면 호스트 시스템에서 서브 시스템의 램에 임시 저장하고, 상기 램에서 플레쉬 메모리로 복사하는 등의 과정들을 거쳐야 하기 때문에 도중에 데이터의 일부가 손실 등의 오류가 발생된다.However, as described above, until the modified data is finally written and stored in the flash memory of the subsystem, the multi-step process, for example, temporarily storing the RAM in the subsystem of the host system, copying from the RAM to the flash memory, and the like. Because some of the data must be gone, errors such as loss of data occur along the way.

이러한 경우에 있어서 수정 데이터에 오류가 발생되었는지의 여부를 검사할만한 별다른 대책이 마련되어 있지 않았기 때문에 사용자는 단순히 다운로드 완료 여부만을 파악할 수 있을 뿐 그 성공 여부는 파악할 수 없었으며, 또한 오류가 발생된 데이터가 플레쉬 메모리에 기록 저장됨에 따라 서브 시스템이 오작동될 소지가 있다. 더욱이 수정 데이터에 오류가 발생된 부분이 서브 시스템을 기동시키고 제어 관리하기 위한 제어 프로그램인 경우 그 문제는 더욱 심각하였다.In this case, since there was no other measure to check whether the corrected data had an error or not, the user could simply determine whether the download was completed but not the success or failure. Subsystems may malfunction as they are written to and stored in flash memory. Moreover, the problem was even worse when the error part of the correction data was a control program for starting and controlling the subsystem.

따라서 본 발명은, 상기한 바와 같은 종래의 문제점을 감안하여 호스트 시스템에서 전송하기 전의 수정 데이터와 서브 시스템에서 전송받아 플레쉬 메모리에 기록 저장한 수정 데이터 각각으로 소정의 연산을 수행하여 산출된 두 연산 결과값이 서로 일치하는가의 여부를 통해 수정 데이터의 오류 발생 여부를 검사하고 그 결과를 표시함과 동시에 오류 발생시 호스트 시스템으로부터 수정 데이터가 정상적으로 전송되어 플레쉬 메모리에 기록 저장되기까지 다운로드와 오류검사를 반복적으로 수행함으로써, 플레쉬 메모리에 오류가 발생된 데이터가 기록 저장됨으로 인해 서브 시스템이 오작동하는 것을 방지하는 데 그 목적이 있다.Therefore, in view of the above-mentioned problems, the present invention calculates two calculation results obtained by performing a predetermined operation on each of the correction data before transmission from the host system and the correction data received from the sub system and stored in the flash memory. It checks whether the corrected data has an error by checking whether the values match each other and displays the result, and repeatedly downloads and error checks until the corrected data is transmitted from the host system normally and recorded in the flash memory. By doing so, the object thereof is to prevent the subsystem from malfunctioning due to the recording and storing of error-prone data in the flash memory.

도 1은 호스트-서브 시스템의 일례로서, 컴퓨터와 접속된 프린터를 도시한 블록도.1 is a block diagram showing a printer connected to a computer as an example of a host-sub system;

도 2는 도 1의 프린터 시스템에서 플레쉬 메모리의 메모리 맵을 도시한 도면.FIG. 2 illustrates a memory map of flash memory in the printer system of FIG. 1; FIG.

도 3은 본 발명에 따른 플레쉬 메모리에 다운로드된 데이터의 오류검사방법을 도시한 흐름도.3 is a flowchart illustrating an error checking method of data downloaded to a flash memory according to the present invention.

*도면 주요부분에 대한 부호의 설명** Explanation of symbols for main parts of drawing *

10 : 컴퓨터20 : 프린터10: computer 20: printer

21 : 램22 : 플레쉬 메모리21: RAM 22: flash memory

상기 목적을 달성하기 위한 본 발명은,The present invention for achieving the above object,

호스트 시스템으로부터 서브 시스템의 플레쉬 메모리로 다운로드된 수정 데이터에 오류가 발생되었는지의 여부를 검사하는 방법에 있어서;CLAIMS 1. A method for checking whether an error has occurred in modified data downloaded from a host system to a flash memory of a subsystem;

상기 호스트 시스템에서 전송할 수정 데이터로 소정의 연산을 수행하여 오류판별정보를 산출한 후 상기 수정 데이터와 함께 전송하고, 상기 서브 시스템에서 상기 수정 데이터를 전송받아 상기 플레쉬 메모리에 기록 저장한 후 상기 플레쉬 메모리에 저장된 수정 데이터로 상기 소정의 연산을 수행하여 재차 오류판별정보를 산출하여서, 상기 서브 시스템에서 산출된 오류판별정보가 상기 호스트 시스템에서 전송된 오류판별정보와 서로 일치하는가를 비교 판단하여 그 결과에 따라 오류 발생 여부를 표시하는 것을 특징으로 한다.Error determination information is calculated by performing a predetermined operation on the correction data to be transmitted from the host system, and then transmitted together with the correction data.The correction system receives the correction data, writes the data to the flash memory, and stores the correction data. The error determination information is calculated again by performing the predetermined operation with the correction data stored in the data, and comparing and determining whether the error determination information calculated by the sub system matches the error determination information transmitted from the host system. Therefore, it is characterized by indicating whether an error occurs.

이 때, 상기 서브 시스템에서 산출된 오류판별정보가 상기 호스트 시스템에서 전송된 오류판별정보와 서로 일치하지 않으면, 상기 호스트 시스템으로부터 상기 수정 데이터를 재전송 받는다.At this time, if the error discrimination information calculated by the sub system does not coincide with the error discrimination information transmitted from the host system, the correction data is retransmitted from the host system.

그리고, 상기 호스트 시스템에서는 상기 데이터에 앞서 오류판별정보를 전송하며, 이 때 상기 데이터로 자리 넘침(Over-flow)을 무시한 합 연산(검사 합산; check summation)을 수행하여 산출된 체크섬(검사 합계; Check-sum)을 오류판별정보로 사용한다.The host system transmits error discrimination information prior to the data, and at this time, a checksum (check summ) calculated by performing a sum sum (check summation) ignoring over-flow with the data; Check-sum) is used as error discrimination information.

이러한 특징을 갖는 본 발명은, 전송전의 수정 데이터와 전송후의 수정 데이터 각각으로 검사 합산하여 각각의 체크섬을 구하고, 두 체크섬이 서로 일치하는지의 여부를 통해 오류 발생 여부를 검사하여 그 결과를 표시한다.The present invention having such a feature checks and sums each of the corrected data before transmission and the corrected data after transmission to obtain respective checksums, checks whether or not an error has occurred through whether the two checksums coincide with each other, and displays the result.

또한 오류 발생시 호스트 시스템으로부터 수정 데이터가 정상적으로 전송되어 플레쉬 메모리에 기록 저장되기까지 다운로드와 오류검사를 반복적으로 수행한다.In addition, when an error occurs, the download and error checking is repeatedly performed until the corrected data is transmitted from the host system and recorded in the flash memory.

이하, 본 발명을 바람직한 일실시예를 통해 상세히 설명하기로 한다.Hereinafter, the present invention will be described in detail through a preferred embodiment.

여기서 호스트 시스템으로부터 데이터를 다운로드 하는 서브 시스템은, 컴퓨터에 접속된 프린터를 예로서 설명하기로 하며, 이 때 프린터는 그 기능을 구현하기 위해 각 부를 제어하기 위한 제어 프로그램 및 상기 제어 프로그램을 수행하는 데 필요한 각종 정보를 저장하는 프로그램 메모리로서 플레쉬 메모리를 사용하는 것으로 설명하기로 한다. 또한 오류판별정보로는 체크섬을 사용하는 것으로 설명하기로 한다.Here, the subsystem for downloading data from the host system will be described as an example of a printer connected to a computer, where the printer executes a control program for controlling each unit and the control program to implement the functions. The flash memory will be described as a program memory for storing various kinds of necessary information. In addition, the error determination information will be described by using a checksum.

도 3은 본 발명에 따른 플레쉬 메모리에 다운로드된 데이터의 오류검사방법을 도시한 흐름도로서, 호스트 시스템인 컴퓨터에서 전송할 수정 데이터의 체크섬을 구하는 단계(S10)와, 상기 체크섬과 더불어 상기 수정 데이터를 서브 시스템인 프린터로 전송하여 램에 저장하는 단계(S20, S30)와, 상기 램에 저장된 수정 데이터를 플레쉬 메모리로 복사하는 단계(S40)와, 상기 플레쉬 메모리에 복사된 수정 데이터로 재차 체크섬을 구하는 단계(S50)와, 상기 컴퓨터로부터 전송되어 램에 저장된 체크섬과 상기 프린터에서 산출한 체크섬이 일치하는가를 비교 판단하는 단계(S60)와, 상기 비교 결과에 따라 오류 발생 여부를 표시하는 단계(S70, S80)로 이루어진다.3 is a flowchart illustrating a method for checking an error of data downloaded to a flash memory according to an embodiment of the present invention, the method comprising: obtaining a checksum of correction data to be transmitted from a computer as a host system (S10), and subtracting the correction data together with the checksum. Transmitting to a printer which is a system and storing it in a RAM (S20 and S30), copying the correction data stored in the RAM to a flash memory (S40), and obtaining a checksum again using the correction data copied to the flash memory. (S50), comparing and determining whether the checksum transmitted from the computer and stored in the RAM and the checksum calculated by the printer match (S60), and displaying whether an error occurs according to the comparison result (S70, S80). )

그리고, 상기 비교 판단결과 상기 두 체크섬이 일치하지 않으면 오류 발생 메시지를 표시한 후 상기 단계들을 반복 수행하여 정상적으로 수정 데이터가 다운로드 되도록 하며(S70), 상기 두 체크섬이 일치하면 다운로드가 정상 완료 메시지를 표시하고 다운로드를 종료한다(S80).If the two checksums do not match, an error occurrence message is displayed and the steps are repeated to correct the data to be downloaded normally (S70). If the two checksums match, the download completes a normal completion message. Then, the download ends (S80).

이와 같은 구성을 갖는 본 발명에 따라 컴퓨터에서 프린터로 수정 데이터를 다운로드 하는 과정을 첨부된 도 1 내지 도 3을 참조하여 살펴보기로 한다.The process of downloading the correction data from the computer to the printer according to the present invention having such a configuration will be described with reference to FIGS. 1 to 3.

사용자는 프린터(20)의 플레쉬 메모리(22)에 저장된 기존 데이터를 갱신할 필요가 있는 경우 이를 새로이 수정하여 얻어진 수정 데이터를 컴퓨터(10)를 통해 프린터(20)로 전송하는데, 이 때 컴퓨터(10)에서는 전송에 앞서 수정 데이터의 체크섬을 구한다(S10).When the user needs to update existing data stored in the flash memory 22 of the printer 20, the user transmits the modified data obtained by newly modifying the data to the printer 20 through the computer 10, at which time the computer 10 In step S10, a checksum of the corrected data is obtained prior to transmission (S10).

여기서 컴퓨터(10)는 수정 데이터를 소정 단위로, 이를테면 바이트(byte)나 워드(word) 단위로 검사 합산을 수행하여 연산 단위와 동일한 크기의 연산 결과값- 연산 단위가 바이트였으면 바이트, 워드였으면 워드-을 체크섬으로 사용하며, 상기 연산도중 발생하는 자리 넘침(Over-flow)은 무시한다.Herein, the computer 10 performs a check sum on the corrected data in a predetermined unit, for example, a byte or a word, and calculates a result of the same size as that of the operation unit-if the operation unit is a byte, or a word if it is a word -Is used as a checksum, and the over-flow occurring during the calculation is ignored.

그리고, 컴퓨터(10)에서는 이처럼 구해진 체크섬을 미리 규약된 방법으로 수정 데이터와 더불어 프린터(20)로 전송하는데, 이 때 체크섬을 수정 데이터에 앞서 전송하므로 프린터가 전송받은 데이터 중 체크섬을 판별할 수 있도록 한다(S20).In addition, the computer 10 transmits the checksum thus obtained to the printer 20 together with the correction data in a predetermined method. At this time, the checksum is transmitted before the correction data, so that the printer can determine the checksum of the transmitted data. (S20).

프린터(20)에서는 컴퓨터(10)로부터 전송된 모든 데이터를 일단 램(21)에 임시 저장하고, 램(21)에 저장된 데이터 중 수정 데이터만을 플레쉬 메모리(22)에 복사하여, 저장되어 있던 기존 데이터를 새로운 수정 데이터로 갱신한다(S30, S40).The printer 20 temporarily stores all data transmitted from the computer 10 in the RAM 21, and copies only the correction data of the data stored in the RAM 21 into the flash memory 22, thereby storing the existing data. Is updated with new correction data (S30, S40).

그리고, 프린터(20)에서는 플레쉬 메모리(22)에 저장된 수정 데이터로 재차 체크섬을 구하는데, 이 때에도 상술한 바와 동일하게 검사 합산을 통해 체크섬을 구하며, 프린터(20)에서 산출된 체크섬을 컴퓨터(10)로부터 전송되어 램(21)에 저장되어 있는 체크섬과 비교하여 두 값이 서로 일치하는가를 판단한다(S50, S60).Then, the printer 20 obtains the checksum again using the correction data stored in the flash memory 22. In this case, the checksum is obtained through the check sum as described above, and the checksum calculated by the printer 20 is obtained from the computer 10. It is determined whether the two values match each other by comparing with the checksum transmitted from the RAM 21 and stored in the RAM 21 (S50 and S60).

상기 비교 판단결과 두 체크섬이 일치하지 않으면 전송 도중에 데이터 손실 등의 오류가 발생된 것이므로, 프린터(20)는 오류가 발생되었음을 알리는 메시지를 표시부(도시 안됨)에 표시한다(S70). 그리고 상기 과정(S10 내지 S70)들을 반복 수행하여 컴퓨터(10)로부터 수정 데이터가 정상적으로 전송되어 프린터(20)의 플레쉬 메모리(22)에 기록 저장되도록 한다.If the two checksums do not coincide with each other as a result of the comparison decision, an error such as data loss occurs during transmission, and thus, the printer 20 displays a message indicating that an error has occurred on the display unit (not shown) (S70). Then, the processes S10 to S70 are repeatedly performed so that the correction data is normally transmitted from the computer 10 to be recorded and stored in the flash memory 22 of the printer 20.

또한 상기 비교 판단결과 두 체크섬이 서로 일치하면 전송전과 전송후의 수정 데이터가 동일한 것이므로, 프린터(20)는 다운로드가 정상적으로 완료되었음을 알리는 메시지를 표시하고 다운로드를 종료한다(S80).In addition, if the two checksums match with each other as a result of the comparison decision, the corrected data before and after the transmission are the same, and the printer 20 displays a message indicating that the download is normally completed and ends the download (S80).

이상에서 상세히 살펴본 바와 같이 본 발명에 따르면, 플레쉬 메모리에 다운로드된 데이터에 오류가 발생되었는지의 여부를 표시하여 사용자에게 통보하여 줄뿐만 아니라 오류 발생시 호스트 시스템으로부터 데이터가 정상적으로 전송되어 플레쉬 메모리에 기록 저장되기까지 다운로드와 오류검사를 반복적으로 수행함으로써, 플레쉬 메모리에 오류가 발생된 데이터가 기록 저장됨으로 인해 서브 시스템이 오작동하는 것을 방지한다.As described in detail above, according to the present invention, in addition to notifying the user by indicating whether or not an error has occurred in the data downloaded to the flash memory, the data is normally transmitted from the host system when the error occurs and stored in the flash memory. By repeatedly downloading and checking the error, the subsystem is prevented from malfunctioning by storing and storing the failed data in the flash memory.

Claims (4)

호스트 시스템(Host-system)으로부터 서브 시스템(Sub-system)의 플레쉬 메모리로 다운로드된 데이터에 오류가 발생되었는지의 여부를 검사하는 방법에 있어서,In the method for checking whether an error has occurred in the data downloaded from the host system (system) to the flash memory of the sub-system, 상기 호스트 시스템에서 전송할 데이터로 소정의 연산을 수행하여 오류판별정보를 산출한 후 상기 데이터와 함께 전송하고, 상기 서브 시스템에서 상기 데이터를 전송받아 상기 플레쉬 메모리에 기록 저장한 후 상기 플레쉬 메모리에 저장된 데이터로 상기 소정의 연산을 수행하여 재차 오류판별정보를 산출하여서, 상기 서브 시스템에서 산출된 오류판별정보가 상기 호스트 시스템에서 전송된 오류판별정보와 서로 일치하는가를 비교 판단하여 그 결과에 따라 오류 발생 여부를 표시하는 것을 특징으로 하는 플레쉬 메모리에 다운로드된 데이터의 오류검사방법.Error determination information is calculated by performing a predetermined operation with data to be transmitted from the host system, and then transmitted together with the data.The data is received from the subsystem, stored in the flash memory, stored in the flash memory, and then stored. By calculating the error discrimination information again by performing the predetermined operation, it is determined whether the error discrimination information calculated by the sub-system is equal to the error discrimination information transmitted from the host system, and the error is generated according to the result. Error checking method of the data downloaded to the flash memory, characterized in that for displaying. 제 1 항에 있어서,The method of claim 1, 상기 서브 시스템에서 산출된 오류판별정보가 상기 호스트 시스템에서 전송된 오류판별정보와 서로 일치하지 않으면, 상기 호스트 시스템으로부터 상기 데이터를 재전송 받는 것을 특징으로 하는 플레쉬 메모리에 다운로드된 데이터의 오류검사방법.And retransmitting the data from the host system if the error discrimination information calculated by the sub-system does not coincide with the error discrimination information transmitted from the host system. 제 1 항에 있어서, 상기 호스트 시스템에서 산출된 오류판별정보는,The method of claim 1, wherein the error determination information calculated by the host system, 상기 데이터에 앞서 전송되는 것을 특징으로 하는 플레쉬 메모리에 다운로드된 데이터의 오류검사방법.Error checking method of the data downloaded to the flash memory, characterized in that transmitted before the data. 제 1 항 내지 제 3 항중 어느 한 항에 있어서, 상기 소정의 연산은,The method according to any one of claims 1 to 3, wherein the predetermined operation is 소정 단위의 데이터로 자리 넘침(over-flow)을 무시한 합 연산을 수행하여 검사 합계(check-sum)를 구하는 검사 합산(ckeck summation)인 것을 특징으로 하는 플레쉬 메모리에 다운로드된 데이터의 오류검사방법.An error checking method of data downloaded to a flash memory, characterized in that a check sum is obtained by performing a sum operation ignoring over-flow with a predetermined unit of data.
KR1019970020187A 1997-05-23 1997-05-23 Method for checking errors of data downloaded to flash memory of subsystem from host system KR100432313B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970020187A KR100432313B1 (en) 1997-05-23 1997-05-23 Method for checking errors of data downloaded to flash memory of subsystem from host system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970020187A KR100432313B1 (en) 1997-05-23 1997-05-23 Method for checking errors of data downloaded to flash memory of subsystem from host system

Publications (2)

Publication Number Publication Date
KR19980084401A true KR19980084401A (en) 1998-12-05
KR100432313B1 KR100432313B1 (en) 2004-09-08

Family

ID=37340907

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970020187A KR100432313B1 (en) 1997-05-23 1997-05-23 Method for checking errors of data downloaded to flash memory of subsystem from host system

Country Status (1)

Country Link
KR (1) KR100432313B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101050623B1 (en) * 2004-04-28 2011-07-19 삼성전자주식회사 Error recovery method of NAD flash memory block

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950005803B1 (en) * 1992-12-24 1995-05-31 주식회사금성사 Data holding compensation unit in versa module europe bus
US5606660A (en) * 1994-10-21 1997-02-25 Lexar Microsystems, Inc. Method and apparatus for combining controller firmware storage and controller logic in a mass storage system
KR960018927A (en) * 1994-11-30 1996-06-17 이헌조 Program download method using serial I / O
KR19980067233A (en) * 1997-01-31 1998-10-15 김광호 Memory device and recording method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101050623B1 (en) * 2004-04-28 2011-07-19 삼성전자주식회사 Error recovery method of NAD flash memory block

Also Published As

Publication number Publication date
KR100432313B1 (en) 2004-09-08

Similar Documents

Publication Publication Date Title
US6622246B1 (en) Method and apparatus for booting and upgrading firmware
US5568641A (en) Powerfail durable flash EEPROM upgrade
US7185191B2 (en) Updatable firmware having boot and/or communication redundancy
US6560703B1 (en) Redundant updatable self-booting firmware
US6836859B2 (en) Method and system for version control in a fault tolerant system
US6308265B1 (en) Protection of boot block code while allowing write accesses to the boot block
US6601132B2 (en) Nonvolatile memory and method of writing data thereto
US7383431B2 (en) Control system and method for rewriting data in a flash memory and a data storage medium in which a program is stored for rewriting data in a flash memory
EP1934727B1 (en) Method and system for in-place updating content stored in a storage device
EP0939367A2 (en) Methods and apparatus for dual-boot memory selection, update, and recovery in a programmable device
US7558949B2 (en) Data processing apparatus and control method for verifying that version codes in selected boot sector and main sector match
CN107239411B (en) Memory management method and system for vehicle-mounted controller
US6539474B2 (en) System and method for selectively executing different boot routines depending on whether an error is detected
US7904896B2 (en) Program rewriting system, boot loader, storage medium, and electronic control unit
CN110402428B (en) In-vehicle control device and program update software
US7490321B2 (en) Method for updating firmware via determining program code
US7007036B2 (en) Method and apparatus for embedding configuration data
KR100432313B1 (en) Method for checking errors of data downloaded to flash memory of subsystem from host system
US20050223268A1 (en) Method of writing non-volatile memory that avoids corrupting the vital initialization code
EP0918287B1 (en) ROM image processing when supply of electric power is interrupted
US6301709B1 (en) Circuit pack system with semi-or fully-automatic upgrade capability
JP6812332B2 (en) Information processing system and information processing method
JP4062429B2 (en) Memory rewrite control method and program for executing each step of memory rewrite control method
JP4238930B2 (en) Memory rewrite control system.
JP2007041798A (en) Information processor and memory rewriting method for information processor

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: 20070427

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee