KR100222620B1 - Multiprogram download method - Google Patents

Multiprogram download method Download PDF

Info

Publication number
KR100222620B1
KR100222620B1 KR1019960076902A KR19960076902A KR100222620B1 KR 100222620 B1 KR100222620 B1 KR 100222620B1 KR 1019960076902 A KR1019960076902 A KR 1019960076902A KR 19960076902 A KR19960076902 A KR 19960076902A KR 100222620 B1 KR100222620 B1 KR 100222620B1
Authority
KR
South Korea
Prior art keywords
area
program
operating program
ram
downloaded
Prior art date
Application number
KR1019960076902A
Other languages
Korean (ko)
Other versions
KR19980057603A (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 KR1019960076902A priority Critical patent/KR100222620B1/en
Publication of KR19980057603A publication Critical patent/KR19980057603A/en
Application granted granted Critical
Publication of KR100222620B1 publication Critical patent/KR100222620B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

개시된 다운로드 방법은 다중 프로그램을 다운로드 받을 수 있고, 독립적인 처리기능을 갖는 프로세서에서 복수의 프로그램을 구동시킬 경우에 다운로드 되는 다중 프로그램들이 메모리의 내부 영역에서 상호간에 충돌되지 않도록 한다.The disclosed download method is capable of downloading multiple programs and preventing multiple programs to be downloaded from colliding with each other in an internal region of the memory when a plurality of programs are run in a processor having an independent processing function.

초기 운영 프로그램을 롬에 마련하고, 램에 시스템 영역, 확장영역, 시스템램 영역 및 배업영역을 마련한 후 메인 프로세서로부터 새로운 운영 프로그램이 다운로드 될 경우에 현재 실행중인 운영 프로그램이 상기 롬에 상주한 초기 운영프로그램 또는 상기 램의 확장영역에 다운로드 된 운영 프로그램인지를 판단하여, 초기 운영 프로그램의 실행일 경우에 상기 백업 영역에 시스템 영역의 데이터를 백업하고, 램의 확장영역에 다운로드 되는 새로운 운영 프로그램을 저장하며, 램의 확장 영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행하며, 판단 결과 상기 램의 확장영역에 다운로드 된 운영 프로그램의 실행일 경우에 백업 영역의 프로그램을 상기 시스템 영역으로 이동하고 상기 롬의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행하고, 롬의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행할 경우에 다운로드 되는 다른 새로운 운영 프로그램을 램의 확장영역에 저장하고 램의 확장영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행한다.Initial operation program is installed in the ROM, system area, expansion area, system RAM area and work area are installed in RAM, and when a new operation program is downloaded from the main processor, the currently running operating program resides in the ROM. It is determined whether a program or an operating program downloaded to the RAM extension area, and when the initial operating program is executed, backs up the data of the system area to the backup area, and stores a new operating program downloaded to the RAM extension area Jumps to the entry point of the RAM extension area and executes a new operation program from the entry point that has been jumped. When the determination result is that the operating program downloaded to the RAM extension area is executed, the program of the backup area is moved to the system area. Entry point of the initial operating program area of the ROM Jumps to the initial operating program, jumps to the entry point of the initial operating program area of the ROM, and stores another new operating program downloaded when executing the initial operating program in the RAM extension area and enters the RAM extension area. Jump to the point and run the new operating program from the entry point you jumped to.

Description

다중 프로그램의 다운로드 방법How to download multiple programs

본 발명은 다중 프로그램(multi program)의 다운로드(download) 방법에 관한 것으로 특히 판독 전용 메모리인 롬(ROM:Read Only Memory)과 임의 엑세스 메모리인 램(RAM: Random Access Memory)을 이용하여 다중 프로그램을 간단히 다운로드 받을 수 있고, 독립적인 처리기능을 갖는 하나의 프로세서에서 복수의 프로그램을 구동시킬 경우에 다운로드 되는 다중 프로그램들이 메모리의 내부영역에서 충돌되지 않도록 하는 다중 프로그램 다운로드 방법에 관한 것이다.The present invention relates to a method of downloading a multi-program, and in particular, a multi-program using a read only memory (ROM) and a random access memory (RAM) is used. The present invention relates to a multi-program download method in which multiple programs to be downloaded do not collide in an internal area of a memory when a plurality of programs can be easily downloaded and run in a single processor having independent processing functions.

독립적인 처리구조를 가지는 프로세서의 프로그램을 개발하기 위해서는 계속적으로 변경된 프로그램을 갱신해야 되는 것으로 프로그램을 갱신하는 방법으로는 다음과 같이 두 가지가 있다.In order to develop a program of a processor having an independent processing structure, it is necessary to continuously update a changed program. There are two ways to update a program as follows.

첫 번째로, 하드웨어적으로 롬을 교체하는 것으로서 롬 기록장치를 사용하여 롬에 변경된 프로그램을 기록하고, 이 변경된 프로그램을 기록한 롬을 기존의 프로그램이 기록된 롬과 교체하는 방법이 있다.First, there is a method of replacing a ROM in hardware, using a ROM recorder, to record a changed program in a ROM, and to replace a ROM that records the changed program with a ROM in which an existing program is recorded.

두 번째로, 하드웨어적으로 램(RAM)을 이용하는 것으로서 램으로 프로그램 영역을 설정하고, 다른 프로세서로부터 변경된 프로그램을 다운로드 받아 상기 설정한 프로그램 영역에 저장하는 방법이 있다.Secondly, there is a method of setting a program area in RAM by using RAM as a hardware, downloading a changed program from another processor, and storing the program area in the set program area.

여기에 특수한 개발 장비인 에뮬레이터 등을 이용하는 방법은 제외하였다.In this case, the method using an emulator, which is a special development equipment, is excluded.

상술한 방법들 중에서 첫 번째로 롬을 사용하여 프로그램을 갱신하는 것은 하드웨어의 구조가 간단하고, 또한 변경된 프로그램을 다운로드 받아 갱신하기 위한 별도의 다운로드용 프로그램이 필요 없으나, 프로그램을 갱신할 때마다 롬 기록 장치를 사용하여 롬에 변경된 프로그램을 기록하고, 변경된 프로그램의 기록이 완료되면, 그 변경된 프로그램을 기록한 롬을 기존의 프로그램이 기록된 롬과 교체해야 되는 번거로운 작업을 반복해야 한다.The first of the above methods is to update the program using the ROM. The structure of the hardware is simple, and there is no need for a separate download program for downloading and updating the changed program, but the ROM is recorded every time the program is updated. Using the device, the changed program is recorded in the ROM, and when the recording of the changed program is completed, the cumbersome task of replacing the ROM in which the changed program is recorded with the ROM in which the existing program is recorded must be repeated.

그리고 두 번째로 램을 사용하여 프로그램을 다운로드 받는 방법은 호스트 즉, 다른 프로세서에서도 램의 프로그램 영역을 엑세스할 수 있는 구조로 만들어야 되는 것으로 하드웨어의 구조가 복잡하고, 항상 다운로드 받은 후에만 프로그램의 실행이 가능하여 독립적인 시스템을 구성하기 어려운 문제점이 있었다.And the second way to download the program using RAM is to make the structure that the program area of RAM can be accessed from the host, that is, other processors. The structure of the hardware is complicated. There was a problem that it is difficult to configure an independent system.

따라서 본 발명의 목적은 판독전용 메모리인 롬과 임의 엑세스 메모리인 램을 이용하여 다중 프로그램을 간단히 다운로드 받을 수 있는 다중 프로그램의 다운로드 방법을 제공하는데 있다.Accordingly, an object of the present invention is to provide a multi-program download method that can easily download a multi-program using a ROM, which is a read-only memory, and a random access memory.

본 발명의 다른 목적은 독립적인 처리기능을 갖는 하나의 프로세서에서 복수의 프로그램을 구동시킬 경우에 다운로드 받은 다중 프로그램들이 메모리 영역에서 충돌되지 않도록 하는 다중 프로그램의 다운로드 방법을 제공하는데 있다.Another object of the present invention is to provide a method of downloading a multi-program such that the downloaded multi-programs do not collide in a memory area when a plurality of programs are driven in one processor having independent processing functions.

이러한 목적을 달성하기 위한 본 발명의 다중 프로그램의 다운로드 방법에 따르면, 초기 운영 프로그램을 롬에 마련하는 제1단계; 상기 제1단계에서 롬에 초기 운영 프로그램의 마련이 완료될 경우에 램에 시스템 영역, 확장영역, 시스템 램 영역 및 백업 영역을 마련하는 제2단계; 상기 제2단계에서 램의 영역 마련이 완료되고 메인 프로세서로부터 새로운 운영 프로그램이 다운로드 될 경우에 현재 실행중인 운영 프로그램이 상기 롬에 상주한 초기 운영프로그램 또는 상기 램의 확장영역에 다운로드 된 운영 프로그램인지를 판단하는 제3단계; 상기 제3단계에서 판단 결과 초기 운영 프로그램의 실행일 경우에 상기 백업 영역에 시스템 영역의 데이터를 백업하는 제4단계; 상기 제4단계에서 데이터의 백업이 완료될 경우에 상기 램의 확장영역에 다운로드 되는 새로운 운영 프로그램을 저장하는 제5단계; 상기 제5단계에서 새로운 운영 프로그램을 저장이 완료될 경우에 램의 확장영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행하는 제6단계; 상기 제3단계의 판단 결과 상기 램의 확장영역에 다운로드 된 운영 프로그램의 실행일 경우에 상기 백업영역의 프로그램을 상기 시스템 영역으로 이동하고 상기 롬의 초기 운열 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행하는 제7단계; 상기 제7단계에서 롬의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행할 경우에 상기 제5단계의 다운로드 되는 다른 새로운 운영 프로 그램을 램의 확장영역에 저장하고 상기 제6단계의 램의 확장영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행하는 제8단계로 이루어지는 것을 특징으로 한다.According to the downloading method of the multi-program of the present invention for achieving the above object, the first step of providing an initial operating program in the ROM; A second step of providing a system area, an extended area, a system RAM area, and a backup area in RAM when the initial operation program is completed in the ROM in the first step; When the RAM is prepared in the second step and a new operating program is downloaded from the main processor, whether the currently running operating program is an initial operating program resident in the ROM or an operating program downloaded to the RAM extension area. Determining a third step; A fourth step of backing up data of a system area to the backup area when the determination result of the third step is execution of an initial operating program; A fifth step of storing a new operating program downloaded to the extended area of the RAM when data backup is completed in the fourth step; A sixth step of jumping to the entry point of the extended area of the RAM and executing the new operation program from the jumped entry point when storing of the new operation program is completed in the fifth step; In the case of the execution of the operating program downloaded to the RAM extension area as a result of the third step, the program of the backup area is moved to the system area and the initial operation program is jumped to the entry point of the initial transport program area of the ROM. Performing a seventh step; When performing the initial operating program by jumping to the entry point of the initial operating program area of the ROM in the seventh step, another new operating program downloaded in the fifth step is stored in the RAM extension area and the sixth step of the sixth step is performed. And an eighth step of jumping to the entry point of the RAM extension area and executing a new operating program from the jumped entry point.

그리고 상기 새로운 운영 프로그램은; 메인 프로세서와 종속 프로세서의 사이에 구비된 통신 메모리를 통해 램의 확장영역에 다운로드 되는 것을 특징으로 한다.And the new operating program; It is characterized in that downloaded to the expansion area of the RAM through the communication memory provided between the main processor and the subordinate processor.

제1도는 본 발명의 다운로드 방법이 적용되는 다운로드 시스템의 구성을 보인 블록도이고,1 is a block diagram showing the configuration of a download system to which the download method of the present invention is applied;

제2도는 본 발명의 다운로드 방법에 따른 메모리의 맵 구조를 설명하기 위한 도면이며,2 is a view for explaining the map structure of the memory according to the download method of the present invention,

제3도는 본 발명의 다운로드 방법을 설명하기 위한 신호 흐름도이다.3 is a signal flowchart for explaining the download method of the present invention.

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

1 : 다운로드 프로그램 10 : 메인 프로세서1: Download Program 10: Main Processor

20 : 롬 40 : 램20: Romans 40: Ram

42 : 시스템 영역 44 : 확장 영역42: system area 44: extended area

46 : 시스템 램 영역 48 : 백업 영역46: system RAM area 48: backup area

60 : 종속 프로세서 80 : 통신 메모리60: dependent processor 80: communication memory

이하 첨부된 도면을 참조하여 본 발명의 다중 프로그램의 다운로드 방법을 상세히 설명한다.Hereinafter, a multi-program download method of the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 발명에 의한 다중 프로그램 다운로드 시스템을 설명하기 위한 블록도이다.1 is a block diagram illustrating a multi-program download system according to the present invention.

여기서, 부호 1은 다운로드 프로그램이고, 부호 10은 상기 다운로드 프로그램(1)을 운영하는 메인 프로세서(10)이다.Here, reference numeral 1 denotes a download program, and reference numeral 10 denotes a main processor 10 for operating the download program 1.

부하 20은 초기 운영 프로그램이 미리 저장되고 그 미리 저장된 초기 운영 프로그램의 엑세스만이 가능한 롬이고, 부호 40은 상기 메인 프로세서(10)로부터 새로운 운영 프로그램들을 순차적으로 다운로드 받고 다운로드 받은 프로그램의 기록 및 독출 기능을 갖는 소정 용량의 램이다.The load 20 is a ROM in which the initial operating program is stored in advance and only the access of the pre-stored initial operating program is executed, and the reference numeral 40 denotes a function of recording and reading a program downloaded and sequentially downloaded new operating programs from the main processor 10. RAM having a predetermined capacity.

상기 램(40)은 제2(a)도 내지 제2(c)도에 도시된 바와 같이 현재 실행중인 프로그램을 저장하는 시스템 영역(42)과, 새로운 운영 프로그램을 다운로드 받기 위한 확장 영역(44)과, 원래의 롬 프로그램으로 실행 가능하도록 하는 시스템 램 영역(46)과, 초기의 운영 프로그램으로 복귀할 경우에 상기 시스템 영역(42)에 저장된 데이터를 백업할 수 있도록 램(40)의 소정영역에 할당된 백업 영역(48)을 구비한다.The RAM 40 includes a system area 42 for storing a program currently being executed and an expansion area 44 for downloading a new operating program, as shown in FIGS. 2A to 2C. And a system RAM area 46 for executing the original ROM program, and a predetermined area of the RAM 40 so that data stored in the system area 42 can be backed up upon returning to the initial operating program. It has an assigned backup area 48.

부호 60은 상기 메인 프로세서(10)로부터 전달된 새로운 운영 프로그램을 상기 램(40)에 다운로드하고 상기 롬(20) 또는 램(40)에 상주한 운영 프로그램을 선택적으로 처리하는 종속 프로세서이다.Reference numeral 60 denotes a subordinate processor that downloads a new operating program transmitted from the main processor 10 to the RAM 40 and selectively processes the operating program resident in the ROM 20 or the RAM 40.

부호 80은 상기 메인 프로세서(10) 및 상기 종속 프로세서(60)의 사이에 구비되어 상기 메인 프로세서(10)로부터 전달되는 새로운 운영 프로그램을 저장하고 저장한 운영 프로그램을 상기 종속 프로세서(60)에 제공하는 통신 메모리(80)이다.Reference numeral 80 is provided between the main processor 10 and the slave processor 60 to store and store a new operating program delivered from the main processor 10 to provide the slave processor 60 with the stored operating program. Communication memory 80.

이러한 구성의 다운로드 시스템에 적용되는 본 발명의 다운로드 방법을 제2(a)도 내지 제2(c)도에 도시된 메모리의 맵 구조인 롬(20) 및 램(40)의 맵 구조와, 제3도의 신호 흐름도를 참조하여 상세히 설명한다.The download method of the present invention applied to the download system having such a configuration includes a map structure of the ROM 20 and the RAM 40 which are the map structures of the memory shown in FIGS. 2 (a) to 2 (c), and This will be described in detail with reference to the signal flow diagram of FIG. 3.

제1도에서 종속 프로세서(60)가 프로그램의 다운로드를 요구할 경우에 메인프로세서(10)는 프로그램의 다운로드 요구에 응답하여 다운로드 프로그램(1)을 수행 및 새로운 운영 프로그램을 통신 메모리(80)에 저장하고, 통신 메모리(80)에 저장한 운영 프로그램은 종속 프로세서(60)의 요구에 따라 종속 프로세서(60)로 전송된다.In FIG. 1, when the dependent processor 60 requests the download of the program, the main processor 10 performs the download program 1 in response to the download request of the program and stores a new operating program in the communication memory 80. The operating program stored in the communication memory 80 is transmitted to the subordinate processor 60 according to the request of the subordinate processor 60.

그러면 종속 프로세서(60)는 전송된 소정의 운영 프로그램 즉, 다운로드 되는 소정의 운영 프로그램을 입력하여 램(40)의 확장 영역(44)에 저장하게 된다.Then, the subordinate processor 60 inputs a predetermined operating program that is transmitted, that is, a predetermined operating program to be downloaded and stores it in the extended area 44 of the RAM 40.

즉, 종속 프로세서(60)는, 제3도에 도시된 바와 같이 단계(S10)에서 초기 운영 프로그램을 롬(20)에 마련하고, 단계(S12)에서 제2(a)도에 도시된 바와 같이 램(40)에 시스템 영역(42), 확장 영역(44), 시스템 램 영역(46) 및 백업 영역(48)을 마련한다.That is, the slave processor 60, as shown in FIG. 3, prepares an initial operating program in the ROM 20 in step S10, and as shown in FIG. 2 (a) in step S12. The system area 42, the expansion area 44, the system RAM area 46, and the backup area 48 are provided in the RAM 40.

그리고 상기 다운로드 받을 운영 프로그램을 램(40)의 확장 영역(44)에 저장 하기 전에 상기 종속 프로세서(60)는 다음 단계(S14)에서 현재 자신이 실행중인 운영 프로그램이 롬(20)에 상주하는 초기 운영 프로그램 또는 다운로드 받아 램(40)의 확장 영역(44)에 저장된 소정의 운영 프로그램인지를 판단하게 된다.In addition, before the operating program to be downloaded is stored in the extended area 44 of the RAM 40, the dependent processor 60 may perform an initial operation in which the operating program currently running in the ROM 20 resides in the next step S14. It is determined whether the operating program or a predetermined operating program stored in the extended area 44 of the RAM 40 is downloaded.

상기 단계(S14)에서 판단 결과 상기 종속 프로세서(60)가 실행하는 프로그램이 롬(20)에 상주하는 초기 운영 프로그램일 경우에는 단계(S16)에서 제2(b)도에 화살표(A)화 같이 램(40)의 시스템 영역(42)에 저장되어 있는 프로그램을 백업 영역(102)에 백업한다.As a result of the determination in step S14, when the program executed by the subordinate processor 60 is the initial operating program residing in the ROM 20, the arrow A is shown in FIG. 2 (b) in step S16. The program stored in the system area 42 of the RAM 40 is backed up to the backup area 102.

여기서, 시스템 영역(42)은 상기 종속 프로세서(60)의 동작에 필요한 인터럽트 벡터 등과 같이 현재 실행중인 롬(20)의 프로그램을 보관하는데 사용된다.Here, the system area 42 is used to store a program of the ROM 20 currently being executed, such as an interrupt vector required for the operation of the slave processor 60.

첫 번째로 새로운 운영 프로그램이 다운로드 되어 램(40)의 확장 영역(44)에 저장될 경우에 현재의 운영 프로그램이 실행 상태이므로 다운로드 되는 프로그램과 충돌이 생겨 시스템이 정지하게 된다.First, when a new operating program is downloaded and stored in the extended area 44 of the RAM 40, since the current operating program is in a running state, a collision occurs with the downloaded program and the system stops.

따라서 이를 방지하기 위하여 두 번째 이상 다운로드를 실행할 경우에는 최초의 롬 프로그램 영역으로 실행 상태를 이동시킨다.Therefore, in order to prevent this, when executing the download more than once, the execution status is moved to the first ROM program area.

그러나 실행 상태를 이전하기 전에, 현재 시스템 영역에 새로 로드된 프로그램이 이전의 프로그램에 오버라이트(overwrite) 되므로 정상동작이 불가능하게 되므로 램(40)의 백업 영역(42)에는 시스템 영역(42)의 프로그램을 백업 받아 필요시 복구가 가능하도록 한다.However, before the execution state is transferred, since the newly loaded program in the current system area is overwritten by the previous program, normal operation is impossible. Therefore, the backup area 42 of the RAM 40 includes the system area 42. Take a backup of the program and restore it if necessary.

다음 단계(S18)에서는 램(40)의 확장영역(44)에 다운로드 되는 새로운 운영 프로그램을 저장하고, 새로운 운영 프로그램의 저장이 완료되면, 단계(S20)에서 제2(b)도에 화살표(B)와 같이 램 (40)의 확장영역(44)의 진입점(Entry point)으로 점프하고, 상기 점프한 확장영역(44)의 진입점부터 새로운 운영프로그램을 실행한다. 이 때 기존의 시스템 영역(42)에는 새로운 운영 프로그램의 내용으로 저장된다.In a next step S18, a new operating program downloaded to the extended area 44 of the RAM 40 is stored, and when the storage of the new operating program is completed, the arrow B is shown in FIG. 2 (b) in step S20. ) Jumps to the entry point of the extended area 44 of the RAM 40 and executes a new operating program from the entry point of the jumped extended area 44. At this time, the existing system area 42 is stored as the contents of the new operating program.

이와 같은 상태에서 두 번째 이상의 다운로드가 실행되면, 기존의 새로운 프로그램에 다시 로드하게 되는데, 현재 운영 프로그램이 실행상태이므로 다운로드 되는 동작과 충돌하여 시스템이 정지하게 되는 문제가 발생한다.In this state, if the second or more downloads are executed, they are reloaded into the existing new program. Since the current operating program is in the running state, the system crashes due to the downloaded operation.

따라서 두 번째 이상의 다운로드를 실행할 경우에는 현재 종속 프로세서(60)에 의해 운영되는 프로그램이 램(40)의 확장영역(44)에 위치하고 있으므로 롬(20)의 운영 프로그램으로 동작을 전환하여야 한다.Therefore, when the second or more downloads are executed, the program currently being operated by the subordinate processor 60 is located in the extended area 44 of the RAM 40, and thus the operation must be switched to the operating program of the ROM 20.

그러므로 상기 단계(S14)에서 판단 결과 상기 종속 프로세서(60)가 실행하는 프로그램이 롬(20)에 상주하는 초기 운영 프로그램이 아닐 경우 즉, 종속 프로세서(60)가 램(40)의 확장영역(106)에 다운로드 된 운영 프로그램을 실행하고 있을 경우에는 단계(S22)에서 제2(c)도에 도시된 화살표(C)와 같이 백업 영역(102)의 프로그램을 시스템 영역(42)으로 다시 이동하고, 단계(S24)에서 화살표(D)와 같이 롬(20)의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행한다.Therefore, when it is determined in step S14 that the program executed by the slave processor 60 is not the initial operating program residing in the ROM 20, that is, the slave processor 60 extends the extended area 106 of the RAM 40. In the case where the operating program downloaded in step 2) is executed, the program in the backup area 102 is moved back to the system area 42 as shown by the arrow C shown in FIG. 2C in step S22. In operation S24, an initial operation program is performed by jumping to the entry point of the initial operation program area of the ROM 20 as shown by an arrow D. FIG.

다음 단계(S18)에서는 상기한 바와 같이 램(40)의 확장영역(44)에 다운로드 되는 새로운 운영 프로그램을 저장하고, 단계(S20)에서 램(40)의 확장영역(44)의 진입점으로 점프하며, 점프한 확장영역(44)의 진입점부터 새로운 운영프로그램을 실행한다.In the next step S18, a new operating program downloaded to the expansion area 44 of the RAM 40 is stored as described above, and in step S20, the jump to the entry point of the expansion area 44 of the RAM 40 is performed. Then, a new operating program is executed from the entry point of the jumped extended area 44.

상기의 다운로드 동작이 완료된 후에 두 가지 운영 프로그램이 롬(20) 및 램(40)에 저장되므로 종속 프로세서(60)는 이 두 가지의 운영 프로그램을 선택적으로 사용할 수 있게 된다.Since the two operating programs are stored in the ROM 20 and the RAM 40 after the download operation is completed, the slave processor 60 can selectively use the two operating programs.

이상에서와 같이 본 발명의 다운로드 방법은 복수의 새로운 운영 프로그램을 다운로드 받을 경우에 이 다운로드 되는 운영 프로그램과 시스템 영역의 프로그램이 서로 충돌하지 않도록 시스템 영역의 프로그램을 일시 저장할 수 있는 백업 영역을 할당하고, 이와 함께 두 번째 이상의 다운로드 할 경우에는 롬의 운영 프로그램으로 동작을 전환함으로써 업그레이드된 운영 프로그램을 호스트의 메인 프로세서로부터 쉽게 다운로드 받을 수 있고, 이로 인하여 종속 프로세서에서 운영 프로그램의 갱신이 용이하게 된다.As described above, in the case of downloading a plurality of new operating programs, the download method of the present invention allocates a backup area for temporarily storing a program in the system area so that the downloaded operating program and the program in the system area do not conflict with each other. In addition, in the case of the second or more download, the upgraded operating program can be easily downloaded from the host's main processor by switching the operation to the ROM's operating program, which makes it easy to update the operating program on the dependent processor.

또한 운영 프로그램을 갱신할 때마다 기존의 롬을 갱신된 별도의 롬으로 교체할 필요가 없어지므로 비용절감의 효과가 있다.In addition, there is no need to replace the existing ROM with the updated ROM every time the operating program is updated, thereby reducing the cost.

본 발명에 의한 다운로드 방식은 롬 메모리를 개발할 경우에 개발 기간을 단축할 수 있고, 이렇게 개발 완료된 원래의 운영 프로그램에 적용함으로써 최종단계에서는 다운로드 없이 바로 실행상태로 만드는 것이 바람직하다.The download method according to the present invention can shorten the development period when developing the ROM memory, and it is preferable to make the execution state immediately without downloading in the final step by applying the original operating program that has been developed in this way.

Claims (2)

초기 운영 프로그램을 롬에 마련하는 제1단계; 상기 제1단계에서 롬에 초기 운영 프로그램의 마련이 완료될 경우에 램에 시스템 영역, 확장영역, 시스템 램 영역 및 백업영역을 마련하는 제2단계; 상기 제2단계에서 램의 영역 마련이 완료되고 메인 프로세서로부터 새로운 운영 프로그램이 다운로드 될 경우에 현재 실행중인 운영 프로그램이 상기 롬에 상주한 초기 운영프로그램 또는 상기 램의 확장영역에 다운로드 된 운영 프로그램인지를 판단하는 제3단계; 상기 제3단계에서 판단 결과 초기 운영 프로그램의 실행일 경우에 상기 백업 영역에 시스템 영역의 데이터를 백업하는 제4단계; 상기 제4단계에서 데이터의 백업이 완료될 경우에 상기 램의 확장영역에 다운로드 되는 새로운 운영 프로그램을 저장하는 제5단계; 상기 제5단계에서 새로운 운영 프로그램을 저장이 완료될 경우에 램의 확장영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행하는 제6단계; 상기 제3단계의 판단 결과 상기 램의 확장영역에 다운로드 된 운영 프로그램의 실행일 경우에 상기 백업영역의 프로그램을 상기 시스템 영역으로 이동하고 상기 롬의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행하는 제7단계; 상기 제7단계에서 롬의 초기 운영 프로그램 영역의 진입점으로 점프하여 초기 운영 프로그램을 수행할 경우에 상기 제5단계의 다운로드 되는 다른 새로운 운영 프로그램을 램의 확장영역에 저장하고 상기 제6단계의 램의 확장영역의 진입점으로 점프하고 점프한 진입점부터 새로운 운영 프로그램을 실행하는 제8단계로 이루어지는 것을 특징으로 하는 다중 프로그램 다운로드 방법.A first step of preparing an initial operating program in the ROM; A second step of providing a system area, an extended area, a system RAM area, and a backup area in RAM when the initial operation program is completed in the ROM in the first step; When the RAM is prepared in the second step and a new operating program is downloaded from the main processor, whether the currently running operating program is an initial operating program resident in the ROM or an operating program downloaded to the RAM extension area. Determining a third step; A fourth step of backing up data of a system area to the backup area when the determination result of the third step is execution of an initial operating program; A fifth step of storing a new operating program downloaded to the extended area of the RAM when data backup is completed in the fourth step; A sixth step of jumping to the entry point of the extended area of the RAM and executing the new operation program from the jumped entry point when storing of the new operation program is completed in the fifth step; In the case where the third step determines that the operating program downloaded to the RAM expansion area is executed, the program in the backup area is moved to the system area and the initial operation program is jumped to the entry point of the initial operating program area of the ROM. Performing a seventh step; When performing the initial operation program by jumping to the entry point of the initial operation program area of the ROM in the seventh step, another new operating program downloaded in the fifth step is stored in the RAM expansion area and the RAM of the sixth step Jumping to the entry point of the extended area of the multi-program download method comprising the step of executing a new operating program from the jumping entry point. 제1항에 있어서, 상기 새로운 운영 프로그램은; 메인 프로세서와 종속 프로세서의 사이에 구비된 통신 메모리를 통해 램의 확장영역에 다운로드 되는 것을 특징으로 하는 다중 프로그램 다운로드 방법.The system of claim 1, wherein the new operating program; The multi-program download method, characterized in that being downloaded to the extended area of the RAM through the communication memory provided between the main processor and the subordinate processor.
KR1019960076902A 1996-12-30 1996-12-30 Multiprogram download method KR100222620B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960076902A KR100222620B1 (en) 1996-12-30 1996-12-30 Multiprogram download method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960076902A KR100222620B1 (en) 1996-12-30 1996-12-30 Multiprogram download method

Publications (2)

Publication Number Publication Date
KR19980057603A KR19980057603A (en) 1998-09-25
KR100222620B1 true KR100222620B1 (en) 1999-10-01

Family

ID=19492370

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960076902A KR100222620B1 (en) 1996-12-30 1996-12-30 Multiprogram download method

Country Status (1)

Country Link
KR (1) KR100222620B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101630001B1 (en) * 2012-11-08 2016-06-13 엘에스산전 주식회사 Apparatus Capable of Changing Program During Operation

Also Published As

Publication number Publication date
KR19980057603A (en) 1998-09-25

Similar Documents

Publication Publication Date Title
US5715456A (en) Method and apparatus for booting a computer system without pre-installing an operating system
JP4006337B2 (en) How to fix executable execution using shared libraries
US6769117B2 (en) Generalised program hooks
KR100415371B1 (en) Computer
US20080263350A1 (en) Update in-use flash memory without external interfaces
KR20070039841A (en) Digital tv and upgrade method of bootloader for the same
JPS60136833A (en) Switching method of operating system
US6901583B1 (en) Method for testing of a software emulator while executing the software emulator on a target machine architecture
CN102754082A (en) Update method, update device, and update program
US20110265072A1 (en) Dynamic Installation of Files for Running Programs
KR930002322B1 (en) Signalling attempted transfer to protected entry point bios routine
US6219825B1 (en) Profile based optimization of shared libraries
US6523103B2 (en) Disablement of a write filter stored on a write-protected partition
CN110764486B (en) Method and device for operating vehicle-mounted controller, vehicle-mounted controller and storage medium
US6502176B1 (en) Computer system and methods for loading and modifying a control program without stopping the computer system using reserve areas
KR100222620B1 (en) Multiprogram download method
JPH10214203A (en) Information processor
JPH09128267A (en) Data processor and data processing method
KR20060067076A (en) Method for loading program in master-slave processor system and apparatus thereof
CN101107591B (en) Computer system and method for activating basic program therein
KR100308251B1 (en) Integrated management method of runtime backup information and its system
KR100436003B1 (en) Method for loading a device driver, more specifically correlated to loading the device driver on a memory through a dos prompt after a computer system is completely booted up
KR19990056081A (en) Downloading device and method for debugging operation in real-time operating system
CN116501373A (en) Software version switching method, device, equipment and storage medium
JPS635431A (en) Management system for program patch information

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

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee