JP2005250882A - Information processor and program rewriting method - Google Patents

Information processor and program rewriting method Download PDF

Info

Publication number
JP2005250882A
JP2005250882A JP2004060804A JP2004060804A JP2005250882A JP 2005250882 A JP2005250882 A JP 2005250882A JP 2004060804 A JP2004060804 A JP 2004060804A JP 2004060804 A JP2004060804 A JP 2004060804A JP 2005250882 A JP2005250882 A JP 2005250882A
Authority
JP
Japan
Prior art keywords
boot
area
program
storage unit
nonvolatile storage
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2004060804A
Other languages
Japanese (ja)
Inventor
Naoshi Hatake
直志 畠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2004060804A priority Critical patent/JP2005250882A/en
Publication of JP2005250882A publication Critical patent/JP2005250882A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processor capable of rewriting a program to start up a system even in case that download fails on the way. <P>SOLUTION: This information processor 1 comprises a nonvolatile storage part 12 storing a boot program in a boot area 22; a volatile storage part 13 storing a boot program 36 to be newly written to the boot area 22 instead of the boot program 26; and a processing part 11 writing the boot program to be newly written to the boot area 22 to a unused area 24 of the nonvolatile storage part 12 and then writing the boot program 36 to be newly written to the boot area 22 of the nonvolatile storage part 12. Even if upload of the boot program to the boot area of the nonvolatile storage part fails due to OFF of power supply during updating or the like, the system can be started up by the boot program stored in other than the boot area of the nonvolatile storage part. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、情報処理装置およびプログラムの書き換え方法に関する。   The present invention relates to an information processing apparatus and a program rewriting method.

従来、ソフトウェアプログラムおよびブートプログラムは通常書き換えのできないROM(Read Only Memory)に配置されており、電源オン時にはブートプログラムを起動し、ソフトウェアプログラムに実行権を移すことで、プログラムが動作する仕組みになっている。このソフトウェアプログラムは、BUGFIXや新機能の追加という理由で度々更新され、ソフトウェアプログラムがRAM(Random Access Memory)上で実行される場合、ソフトウェアプログラム内のダウンローダを起動することにより、ROM内のソフトウェアプログラムをアップデートしていた。   Conventionally, software programs and boot programs are normally stored in a ROM (Read Only Memory) that cannot be rewritten, and when the power is turned on, the boot program is started and the execution right is transferred to the software program. ing. This software program is frequently updated because of the addition of BUGFIX and new functions. When the software program is executed on a RAM (Random Access Memory), the software program in the ROM is started by starting the downloader in the software program. Was updated.

しかしながら、ブートプログラムにおいては、CPU(Central Processing Unit)の仕様として、電源オン時に起動するアドレスが一意に決まっているため、ROMの固定領域に配置しておかなくてはならない。ブートプログラムをアップデートできるようにしたものとして特許文献1記載の装置が提案されている。   However, in the boot program, the address to be activated when the power is turned on is uniquely determined as a specification of the CPU (Central Processing Unit), so it must be arranged in a fixed area of the ROM. An apparatus described in Patent Document 1 has been proposed as an apparatus capable of updating a boot program.

特許文献1記載の装置は、ダウンロード時、受信したダウンロードデータがブートプログラムの場合、FlashROMの現在のブートプログラムのダウンロード処理部をDRAMにコピーして制御をDRAMに移した後、FlashROM14の内容を消去し、FlashROMへブートプログラムのダウンロード処理を行う。これにより、新たなブートプログラムのダウンロードを容易に行うことができるというものである。   The device described in Patent Document 1 erases the contents of the FlashROM 14 after copying the download processing unit of the current boot program of the FlashROM to the DRAM and transferring control to the DRAM if the received download data is a boot program at the time of downloading. Then, the boot program is downloaded to the Flash ROM. As a result, a new boot program can be easily downloaded.

特開2002−7152号公報Japanese Patent Laid-Open No. 2002-7152

しかしながら、特許文献1記載の装置では、ブートプログラムをダウンロードすることができるものの、ブートプログラムを書き換えている最中に電源がオフされたり、通信エラー等が発生してダウンロードに失敗したりすると、プログラム書き換え処理で失敗し、次に電源を再投入しても、二度と立ち上がることができないという問題がある。   However, in the apparatus described in Patent Document 1, although the boot program can be downloaded, if the power is turned off while the boot program is being rewritten, or if a download error occurs due to a communication error or the like, the program There is a problem that even if the rewrite process fails and the power is turned on again, it cannot be started up again.

そこで、本発明は、上記問題点に鑑みてなされたもので、途中でダウンロードに失敗した場合でも、システムを立ち上げることができるようにプログラムを書き換えることができる情報処理装置およびプログラム書き換え方法を提供することを目的とする。   Accordingly, the present invention has been made in view of the above problems, and provides an information processing apparatus and a program rewriting method capable of rewriting a program so that the system can be started up even when downloading fails during the process. The purpose is to do.

上記課題を解決するために、本発明の情報処理装置は、請求項1に記載のように、プログラムを所定の領域に記憶する不揮発性記憶部と、前記プログラムに代えて前記領域に新たに書き込むプログラムを記憶する記憶部と、前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域以外の領域に書き込み後、前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域に書き込む処理部とを有することを特徴とする。   In order to solve the above-described problems, an information processing apparatus according to the present invention includes a nonvolatile storage unit that stores a program in a predetermined area and a new write in the area instead of the program, as described in claim 1 A storage unit that stores a program; and a processing unit that writes the newly written program to the region of the nonvolatile storage unit after writing the newly written program to the region other than the region of the nonvolatile storage unit. It is characterized by that.

請求項1記載の発明によれば、新たに書き込むプログラムを不揮発性記憶部の所定領域以外の領域に一旦書き込み後、新たに書き込むプログラムを不揮発性記憶部の所定領域に書き込むので、アップデート中に電源がオフするなどして不揮発性記憶部の所定領域へのプログラムのアップデータに失敗した場合でも、不揮発性記憶部の所定領域以外の格納されたプログラムによりシステムを実行できる。したがって、途中でダウンロードに失敗した場合でも、システムを実行することができるようにプログラムを書き換えることができる。   According to the first aspect of the present invention, the program to be newly written is temporarily written in an area other than the predetermined area of the nonvolatile storage unit, and then the program to be newly written is written to the predetermined area of the nonvolatile storage unit. Even when the update of the program to the predetermined area of the nonvolatile storage unit fails due to turning off or the like, the system can be executed by the stored program other than the predetermined area of the nonvolatile storage unit. Therefore, the program can be rewritten so that the system can be executed even if the download fails midway.

また、本発明の情報処理装置は、請求項2に記載のように、ブートプログラムをブート領域に記憶する不揮発性記憶部と、前記ブートプログラムに代えて前記ブート領域に新たに書き込むブートプログラムを記憶する記憶部と、前記ブート領域に新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域以外の領域に書き込み後、前記新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域に書き込む処理部とを有することを特徴とする。   The information processing apparatus according to the present invention stores a non-volatile storage unit that stores a boot program in a boot area and a boot program that is newly written in the boot area instead of the boot program. And a processing unit for writing the newly written boot program to the boot area of the non-volatile storage unit after writing the boot program to be newly written to the boot area to an area other than the boot area of the non-volatile storage unit, It is characterized by having.

請求項2記載の発明によれば、ブート領域に新たに書き込むブートプログラムを不揮発性記憶部のブート領域以外の領域に一旦書き込み後、新たに書き込むブートプログラムを不揮発性記憶部のブート領域に書き込むので、アップデート中に電源がオフするなどして不揮発性記憶部のブート領域へのブートプログラムのアップデータに失敗した場合でも、不揮発性記憶部のブート領域以外の格納されたブートプログラムによりシステムの立ち上げを行うことができる。したがって、途中でダウンロードに失敗した場合でも、システムを立ち上げることができるようにプログラムを書き換えることができる。   According to the second aspect of the present invention, the boot program to be newly written in the boot area is temporarily written in an area other than the boot area in the nonvolatile storage unit, and then the newly written boot program is written in the boot area in the nonvolatile storage unit. Even if the update of the boot program to the boot area of the non-volatile memory unit fails due to the power being turned off during the update, the system is started up by the stored boot program other than the boot area of the non-volatile memory unit It can be carried out. Therefore, the program can be rewritten so that the system can be started up even if the download fails in the middle.

また、本発明は、請求項3に記載のように、請求項2記載の情報処理装置において、前記処理部は、前記不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去することを特徴とする。請求項3記載の発明によれば、不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去するので、不揮発性記憶部の容量を有効に使用できる。   Further, according to the present invention, in the information processing apparatus according to claim 2, the processing unit erases a boot program written in an area other than the boot area of the nonvolatile storage unit. It is characterized by. According to the third aspect of the present invention, since the boot program written in the area other than the boot area of the nonvolatile storage unit is erased, the capacity of the nonvolatile storage unit can be used effectively.

また、本発明のプログラムの書き換え方法は、請求項4に記載のように、不揮発性記憶部のブート領域に記憶するブートプログラムに代えて該ブート領域に新たに書き込むブートプログラムを所定の記憶部に記憶させるステップと、前記ブート領域に新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域以外の領域に書き込みステップと、前記新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域に書き込むステップとを有することを特徴とする。   According to the program rewriting method of the present invention, a boot program to be newly written in the boot area instead of the boot program stored in the boot area of the non-volatile storage unit is stored in the predetermined storage unit. A step of storing, a step of writing a boot program to be newly written to the boot area in an area other than the boot area of the nonvolatile storage unit, and a step of writing the boot program to be newly written to the boot area of the nonvolatile storage unit; It is characterized by having.

請求項4記載の発明によれば、ブート領域に新たに書き込むブートプログラムを不揮発性記憶部のブート領域以外の領域に一旦書き込み後、新たに書き込むブートプログラムを不揮発性記憶部のブート領域に書き込むので、アップデート中に電源がオフするなどして不揮発性記憶部のブート領域へのブートプログラムのアップデータに失敗した場合でも、不揮発性記憶部のブート領域以外の格納されたブートプログラムによりシステムの立ち上げを行うことができる。したがって、途中でダウンロードに失敗した場合でも、システムを立ち上げることができるようにプログラムを書き換えることができる。   According to the fourth aspect of the present invention, the boot program to be newly written in the boot area is temporarily written in an area other than the boot area in the nonvolatile storage unit, and then the newly written boot program is written in the boot area in the nonvolatile storage unit. Even if the update of the boot program to the boot area of the non-volatile memory unit fails due to the power being turned off during the update, the system is started up by the stored boot program other than the boot area of the non-volatile memory unit It can be carried out. Therefore, the program can be rewritten so that the system can be started up even if the download fails in the middle.

また、本発明は、請求項5に記載のように、請求項4記載のプログラムの書き換え方法において、更に、前記不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去するステップを有することを特徴とする。請求項5記載の発明によれば、不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去するので、不揮発性記憶部の容量を有効に使用できる。   According to a fifth aspect of the present invention, the program rewriting method according to the fourth aspect further comprises the step of erasing a boot program written in an area other than the boot area of the nonvolatile storage unit. It is characterized by that. According to the fifth aspect of the present invention, since the boot program written in the area other than the boot area of the nonvolatile storage unit is erased, the capacity of the nonvolatile storage unit can be used effectively.

本発明によれば、途中でダウンロードに失敗した場合でも、システムを立ち上げることができるようにプログラムを書き換えることができる情報処理装置およびプログラム書き換え方法を提供できる。   According to the present invention, it is possible to provide an information processing apparatus and a program rewriting method capable of rewriting a program so that the system can be started up even when downloading fails in the middle.

以下、本発明を実施するための最良の形態について実施例を用いて説明する。   Hereinafter, the best mode for carrying out the present invention will be described with reference to examples.

図1は、本実施例に係るシステムの構成図である。図1に示すように、システム100は、情報処理装置1、外部装置2を備える。情報処理装置1は、例えばコピー機やプリンタ等の画像形成装置内に組み込まれている。この情報処理装置1は、処置部11、不揮発性記憶部12、揮発性記憶部13、外部インターフェース14を備える。外部装置2は、例えばパーソナルコンピュータで構成されている。情報処理装置1は、所定のインターフェースを介して外部装置2と通信できる。この外部装置2は、ダウンロードデータファイルを提供するホスト装置として機能する。   FIG. 1 is a configuration diagram of a system according to the present embodiment. As shown in FIG. 1, the system 100 includes an information processing device 1 and an external device 2. The information processing apparatus 1 is incorporated in an image forming apparatus such as a copier or a printer. The information processing apparatus 1 includes a treatment unit 11, a nonvolatile storage unit 12, a volatile storage unit 13, and an external interface 14. The external device 2 is constituted by a personal computer, for example. The information processing apparatus 1 can communicate with the external apparatus 2 via a predetermined interface. The external device 2 functions as a host device that provides a download data file.

不揮発性記憶部12は、記憶内容の保持に、外部からの電源供給を必要としないメモリである。この不揮発性記憶部12は、例えばプログラム情報が記憶されるフラッシュメモリと、プログラムの書き換え時のステータス情報が記憶されるEEPROMなどの少量単位で記憶できるデバイスを含んでいる。この不揮発性記憶部12は、ブートプログラムをブート領域に記憶している。   The non-volatile storage unit 12 is a memory that does not require an external power supply to hold the stored contents. The nonvolatile storage unit 12 includes devices that can be stored in small units such as a flash memory in which program information is stored and an EEPROM in which status information at the time of program rewriting is stored. The nonvolatile storage unit 12 stores a boot program in a boot area.

揮発性記憶部13は、電源の供給が止まると、記憶した内容が消えてしまうタイプのメモリである。この揮発性記憶部13は、例えばRAMにより構成されている。この揮発性記憶部13、ブート領域に新たに書き込むブートプログラムを記憶する。この新たに書き込むブートプログラムは外部装置2からダウンロードされたものである。外部インターフェース14は、ネットワーク、パラレルといった外部装置2と接続される汎用インターフェースである。   The volatile storage unit 13 is a type of memory in which the stored content disappears when power supply is stopped. The volatile storage unit 13 is constituted by a RAM, for example. The volatile storage unit 13 stores a boot program to be newly written in the boot area. This newly written boot program is downloaded from the external device 2. The external interface 14 is a general-purpose interface connected to the external device 2 such as a network or parallel.

処理部11は、例えばCPUにより構成される。この処理部11は、不揮発性記憶部12のブート領域に新たに書き込むブートプログラムを不揮発性記憶部12のブート領域以外の領域に書き込み後、新たに書き込むブートプログラムを不揮発性記憶部12のブート領域に書き込む。詳細は後述する。   The processing unit 11 is configured by a CPU, for example. The processing unit 11 writes a boot program to be newly written in the boot area of the nonvolatile storage unit 12 to an area other than the boot area of the nonvolatile storage unit 12 and then writes the boot program to be newly written to the boot area of the nonvolatile storage unit 12. Write to. Details will be described later.

次に、不揮発性記憶部12の内部構成について説明する。図2は、不揮発性記憶部12の内部構成図である。図2に示すように、不揮発性記憶部12は、ソフトウェア領域21とブート領域22を有する。不揮発性記憶部12は、セクタ単位でデータの消去ができるように構成されている。ソフトウェア領域21には所定の容量(バイト数)が割り当てられている。ソフトウェア領域21には、ソフトウェア23が格納されている。このソフトウェア領域21は、所定バイト数の未使用領域24が存在する。ブート領域22には、Jumpコード25とブートプログラム26が格納されている。   Next, an internal configuration of the nonvolatile storage unit 12 will be described. FIG. 2 is an internal configuration diagram of the nonvolatile storage unit 12. As illustrated in FIG. 2, the nonvolatile storage unit 12 includes a software area 21 and a boot area 22. The nonvolatile storage unit 12 is configured so that data can be erased in units of sectors. A predetermined capacity (number of bytes) is assigned to the software area 21. Software 23 is stored in the software area 21. The software area 21 includes an unused area 24 having a predetermined number of bytes. In the boot area 22, a Jump code 25 and a boot program 26 are stored.

情報処理装置1の電源がオンになると、ブート領域22のJumpコード25がブートプログラム26に処理を移し、ブートプログラム26がソフトウェア領域21内のソフトウェア23を揮発性記憶部13に展開する。この時、ソフトウェア23が圧縮されている場合、伸張されて揮発性記憶部13に展開される。揮発性記憶部13へのソフトウェア23の展開が終わると、ブートプログラム26は、揮発性記憶部13に展開したソフトウェア23に制御を移す。ブートプログラム26は、制御を移したところで、動作を完了する。   When the power of the information processing apparatus 1 is turned on, the jump code 25 in the boot area 22 moves to the boot program 26, and the boot program 26 develops the software 23 in the software area 21 in the volatile storage unit 13. At this time, if the software 23 is compressed, it is expanded and expanded in the volatile storage unit 13. When the development of the software 23 on the volatile storage unit 13 is finished, the boot program 26 transfers control to the software 23 developed on the volatile storage unit 13. The boot program 26 completes its operation when the control is transferred.

次に、ダウンロード処理を説明する。図3は、ダウンロード処理を説明するための図である。図3(a)は、不揮発性記憶部12の内容を示す図、(b)は揮発性記憶部13の内容を示す図である。同図(a)に示すように、不揮発性記憶部12は、ソフトウェア領域21、ブート領域22を有し、ソフトウェア領域21には、ソフトウェア23が格納され、ブート領域22には、Jumpコード25と、ブートプログラム26が格納されている。ソフトウェア領域21には、未使用領域24が存在する。図3(b)に示すように、揮発性記憶部13のダウンロードデータファイル内には、ソフトウェア33、ダウンローダ34、ブートプログラム36が含まれる。   Next, download processing will be described. FIG. 3 is a diagram for explaining the download process. FIG. 3A is a diagram illustrating the contents of the nonvolatile storage unit 12, and FIG. 3B is a diagram illustrating the contents of the volatile storage unit 13. As shown in FIG. 2A, the nonvolatile storage unit 12 includes a software area 21 and a boot area 22, software 23 is stored in the software area 21, and a Jump code 25 is stored in the boot area 22. A boot program 26 is stored. The software area 21 has an unused area 24. As shown in FIG. 3B, the download data file in the volatile storage unit 13 includes software 33, a downloader 34, and a boot program 36.

次に、システムの動作について説明する。図4は、本発明によるプログラムの書き換え方法のフローチャートである。ダウンロード時には、外部装置2から外部I/F14を介して情報処理装置11へダウンロードデータファイルが転送される。ステップS1で、処理部11は、ダウンロードデータファイルを受信すると、このダウンロードデータファイルを揮発性記憶部13に一旦格納する。以下、処理部11は、揮発性記憶部13内のダウンローダ34により処理を実行する。   Next, the operation of the system will be described. FIG. 4 is a flowchart of the program rewriting method according to the present invention. At the time of downloading, a download data file is transferred from the external device 2 to the information processing device 11 via the external I / F 14. In step S <b> 1, when the processing unit 11 receives the download data file, the processing unit 11 temporarily stores the download data file in the volatile storage unit 13. Hereinafter, the processing unit 11 performs processing by the downloader 34 in the volatile storage unit 13.

ステップS2で、処理部11は、ダウンロードデータファイルの揮発性記憶部13への転送が終了したら、ダウンロードデータファイル内にブートプログラムを含むかどうかを判断する。ステップS3で、処理部11は、ダウンロードデータファイル内にブートプログラムを含むと判断した場合、揮発性記憶部13のブートプログラム36をブート領域22に書き込む前に、不揮発性記憶部12内の未使用領域24にブートプログラム36を一旦書き込む(1)。次に、処理部11は、不揮発性記憶部12内にあるEEPROM等のデバイスに書き込み情報を管理するためにSTATUS値をセットする。   In step S <b> 2, when the transfer of the download data file to the volatile storage unit 13 is completed, the processing unit 11 determines whether the download data file includes a boot program. In step S3, when the processing unit 11 determines that the download data file includes a boot program, the processing unit 11 uses the unused storage in the nonvolatile storage unit 12 before writing the boot program 36 in the volatile storage unit 13 into the boot area 22. The boot program 36 is temporarily written in the area 24 (1). Next, the processing unit 11 sets a STATUS value in order to manage write information in a device such as an EEPROM in the nonvolatile storage unit 12.

ステップS4で、処理部11は、揮発性記憶部13のブートプログラム36を不揮発性記憶部12のブート領域22に書き込み、ブートプログラムをアップデートする(2)。次に、処理部11は、不揮発性記憶部12内にあるEEPROM等のデバイスにステップ3でセットしたSTATUS値を元に戻す。ステップS5で、処理部11は、ダウンロードデータファイル内にソフトウェアを含むかどうかを判断する。   In step S4, the processing unit 11 writes the boot program 36 of the volatile storage unit 13 in the boot area 22 of the nonvolatile storage unit 12 and updates the boot program (2). Next, the processing unit 11 restores the STATUS value set in step 3 to a device such as an EEPROM in the nonvolatile storage unit 12. In step S5, the processing unit 11 determines whether software is included in the download data file.

ステップS6で、処理部11は、上記でダウンロードデータファイル内にソフトウェアを含むと判断した場合、揮発性記憶部13のソフトウェア33を不揮発性記憶部12のソフトウェア領域21に書き込み、ソフトウェアをアップデートする(3)。ステップS7で、処理部11は、不揮発性記憶部12の未使用領域24に書き込んだブートプログラム36を消去する。以上でブートプログラムとソフトウェアのアップデートが完了する。   If it is determined in step S6 that the download data file includes software, the processing unit 11 writes the software 33 in the volatile storage unit 13 to the software area 21 in the nonvolatile storage unit 12 to update the software ( 3). In step S <b> 7, the processing unit 11 erases the boot program 36 written in the unused area 24 of the nonvolatile storage unit 12. This completes the boot program and software update.

上記(1)のアップデート中に電源がオフするなどしてブートプログラムのダウンロードに失敗した場合、不揮発性記憶部12のJumpコード25が不揮発性記憶部12内のブートプログラム26に処理を移すことでシステムの再立ち上げを行うことができる。また、上記(2)のアップデート中に電源がオフするなどしてブートプログラムのダウンロードに失敗した場合、不揮発性記憶部12のJumpコード25が不揮発性記憶部12内にあるEEPROM等にセットしたSTATUS値からブートプログラム26が無いことを判断できるので、未使用領域24に書き込んだブートプログラム36に処理を移すことでシステムの再立ち上げを行うことができる。   If downloading of the boot program fails because the power is turned off during the update of (1) above, the jump code 25 in the nonvolatile storage unit 12 moves the process to the boot program 26 in the nonvolatile storage unit 12. The system can be restarted. If the boot program download fails because the power is turned off during the update in (2) above, the Jump code 25 of the nonvolatile storage unit 12 is set to the EEPROM or the like in the nonvolatile storage unit 12 Since it can be determined from the values that there is no boot program 26, the system can be restarted by transferring the processing to the boot program 36 written in the unused area 24.

また、上記(3)のアップデート中に電源をオフするなどしてソフトウェア33のダウンロードに失敗した場合、通常通り、不揮発性記憶部12のJumpコード25がブート領域22に書き込んだブートプログラム36に処理を移すことでシステムの立ち上げを行うことができる。   Also, if the download of the software 33 fails due to turning off the power during the update of (3) above, the Jump code 25 of the nonvolatile storage unit 12 processes the boot program 36 written in the boot area 22 as usual. The system can be started up by moving.

本実施例によれば、ブート領域に新たに書き込むブートプログラムを不揮発性記憶部のブート領域以外の領域に一旦書き込み後、新たに書き込むブートプログラムを不揮発性記憶部のブート領域に書き込むので、アップデート中に電源がオフするなどして不揮発性記憶部のブート領域へのブートプログラムのアップデータに失敗した場合でも、不揮発性記憶部のブート領域以外の格納されたブートプログラムによりシステムの立ち上げを行うことができる。したがって、途中でダウンロードに失敗した場合でも、システムを立ち上げることができるようにプログラムを書き換えることができる。また、導入するために新たなデバイスも必要とせず、コストがかからない。さらに、ROM交換の必要がなくなるため、大幅な人件費の削減になる。   According to this embodiment, the boot program to be newly written to the boot area is temporarily written to an area other than the boot area of the nonvolatile storage unit, and then the newly written boot program is written to the boot area of the nonvolatile storage unit. Even if the boot program updater to the boot area of the nonvolatile storage unit fails due to the power being turned off at the same time, the system can be started up by the stored boot program other than the boot area of the nonvolatile storage unit it can. Therefore, the program can be rewritten so that the system can be started up even if the download fails in the middle. In addition, a new device is not required for introduction, and no cost is required. Furthermore, since there is no need to replace the ROM, the labor cost is greatly reduced.

また、不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去するので、不揮発性記憶部の容量を有効に使用できる。   In addition, since the boot program written in the area other than the boot area of the nonvolatile storage unit is erased, the capacity of the nonvolatile storage unit can be used effectively.

なお、上記実施例ではプログラムにブートプログラムを用いて説明したが、本発明では、ブートプログラムに限定されることなく種々のプログラムを用いることができる。この場合、情報処理装置は以下のように構成される。   In the above embodiment, the boot program is used as the program. However, in the present invention, various programs can be used without being limited to the boot program. In this case, the information processing apparatus is configured as follows.

情報処理装置は、プログラムを所定の領域に記憶する不揮発性記憶部と、前記プログラムに代えて前記領域に新たに書き込むプログラムを記憶する記憶部と、前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域以外の領域に書き込み後、前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域に書き込む処理部とを有する。この情報処理装置によれば、アップデート中に電源がオフするなどして不揮発性記憶部の所定領域へのプログラムのアップデータに失敗した場合でも、不揮発性記憶部の所定領域以外の格納されたプログラムによりシステムを実行できる。したがって、途中でダウンロードに失敗した場合でも、システムを実行することができるようにプログラムを書き換えることができる。   The information processing apparatus includes a nonvolatile storage unit that stores a program in a predetermined area, a storage unit that stores a program that is newly written in the area instead of the program, and a program that newly writes the program in the nonvolatile storage unit. And a processing unit that writes the newly written program to the area of the nonvolatile storage unit after writing to an area other than the area. According to this information processing apparatus, even if the update of the program to the predetermined area of the nonvolatile storage unit fails due to the power being turned off during the update, the stored program other than the predetermined area of the nonvolatile storage unit Can run the system. Therefore, the program can be rewritten so that the system can be executed even if the download fails midway.

以上本発明の好ましい実施例について詳述したが、本発明は係る特定の実施例に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形、変更が可能である。例えば図1に示した情報処理装置1の構成は一例であり、本発明ではこの構成には限定されない。   Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications, within the scope of the gist of the present invention described in the claims, It can be changed. For example, the configuration of the information processing apparatus 1 illustrated in FIG. 1 is an example, and the present invention is not limited to this configuration.

本実施例に係るシステムの構成図である。1 is a configuration diagram of a system according to an embodiment. 不揮発性記憶部の内部構成図である。It is an internal block diagram of a non-volatile memory | storage part. (a)は、不揮発性記憶部の内容を示す図、(b)は揮発性記憶部の内容を示す図である。(A) is a figure which shows the content of a non-volatile memory | storage part, (b) is a figure which shows the content of a volatile memory | storage part. 本発明によるプログラムの書き換え方法のフローチャートである。It is a flowchart of the rewriting method of the program by this invention.

符号の説明Explanation of symbols

1 情報処理装置
2 外部装置
11 処理部
12 不揮発性記憶部
13 外部I/F
100 システム
DESCRIPTION OF SYMBOLS 1 Information processing apparatus 2 External apparatus 11 Processing part 12 Non-volatile memory | storage part 13 External I / F
100 system

Claims (5)

プログラムを所定の領域に記憶する不揮発性記憶部と、
前記プログラムに代えて前記領域に新たに書き込むプログラムを記憶する記憶部と、
前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域以外の領域に書き込み後、前記新たに書き込むプログラムを前記不揮発性記憶部の前記領域に書き込む処理部とを有することを特徴とする情報処理装置。
A nonvolatile storage unit that stores the program in a predetermined area;
A storage unit for storing a program to be newly written in the area instead of the program;
An information processing apparatus comprising: a processing unit that writes the newly written program to the region of the nonvolatile storage unit after writing the newly written program to the region other than the region of the nonvolatile storage unit .
ブートプログラムをブート領域に記憶する不揮発性記憶部と、
前記ブートプログラムに代えて前記ブート領域に新たに書き込むブートプログラムを記憶する記憶部と、
前記ブート領域に新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域以外の領域に書き込み後、前記新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域に書き込む処理部とを有することを特徴とする情報処理装置。
A nonvolatile storage unit for storing the boot program in the boot area;
A storage unit for storing a boot program to be newly written in the boot area instead of the boot program;
And a processing unit that writes the newly written boot program to the boot area of the nonvolatile storage unit after writing the boot program to be newly written to the boot area to an area other than the boot area of the nonvolatile storage unit. Information processing apparatus.
前記処理部は、前記不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去することを特徴とする請求項2記載の情報処理装置。 The information processing apparatus according to claim 2, wherein the processing unit erases a boot program written in an area other than the boot area of the nonvolatile storage unit. 不揮発性記憶部のブート領域に記憶するブートプログラムに代えて該ブート領域に新たに書き込むブートプログラムを所定の記憶部に記憶させるステップと、
前記ブート領域に新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域以外の領域に書き込みステップと、
前記新たに書き込むブートプログラムを前記不揮発性記憶部のブート領域に書き込むステップとを有することを特徴とするプログラムの書き換え方法。
Storing a boot program to be newly written in the boot area in place of the boot program stored in the boot area of the nonvolatile storage unit in a predetermined storage unit;
A step of writing a boot program to be newly written in the boot area into an area other than the boot area of the nonvolatile storage unit;
And a step of rewriting the newly written boot program in the boot area of the non-volatile storage unit.
前記プログラムの書き換え方法は更に、前記不揮発性記憶部のブート領域以外の領域に書き込んだブートプログラムを消去するステップを有することを特徴とする請求項4記載のプログラムの書き換え方法。 5. The program rewriting method according to claim 4, further comprising the step of erasing a boot program written in an area other than the boot area of the non-volatile storage unit.
JP2004060804A 2004-03-04 2004-03-04 Information processor and program rewriting method Pending JP2005250882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004060804A JP2005250882A (en) 2004-03-04 2004-03-04 Information processor and program rewriting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004060804A JP2005250882A (en) 2004-03-04 2004-03-04 Information processor and program rewriting method

Publications (1)

Publication Number Publication Date
JP2005250882A true JP2005250882A (en) 2005-09-15

Family

ID=35031300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004060804A Pending JP2005250882A (en) 2004-03-04 2004-03-04 Information processor and program rewriting method

Country Status (1)

Country Link
JP (1) JP2005250882A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209543A (en) * 2000-01-28 2001-08-03 Nec Ic Microcomput Syst Ltd Program rewriting method for flash microcomputer
JP2001334056A (en) * 2000-05-29 2001-12-04 Pfu Ltd Control device of game machine
JP2002008382A (en) * 2000-06-22 2002-01-11 Hitachi Kokusai Electric Inc Memory write-in device
JP2003288213A (en) * 2002-03-28 2003-10-10 Toshiba Corp Boot program storage device and method of storing boot program of electronic appliance
JP2004013536A (en) * 2002-06-06 2004-01-15 Seiko Epson Corp Flash memory rewrite control system and method, program for operating processe in flash memory rewrite control method, and information storage medium
JP2004013477A (en) * 2002-06-06 2004-01-15 Nec Viewtechnology Ltd Method for selecting and updating boot program and flash memory using the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209543A (en) * 2000-01-28 2001-08-03 Nec Ic Microcomput Syst Ltd Program rewriting method for flash microcomputer
JP2001334056A (en) * 2000-05-29 2001-12-04 Pfu Ltd Control device of game machine
JP2002008382A (en) * 2000-06-22 2002-01-11 Hitachi Kokusai Electric Inc Memory write-in device
JP2003288213A (en) * 2002-03-28 2003-10-10 Toshiba Corp Boot program storage device and method of storing boot program of electronic appliance
JP2004013536A (en) * 2002-06-06 2004-01-15 Seiko Epson Corp Flash memory rewrite control system and method, program for operating processe in flash memory rewrite control method, and information storage medium
JP2004013477A (en) * 2002-06-06 2004-01-15 Nec Viewtechnology Ltd Method for selecting and updating boot program and flash memory using the same

Similar Documents

Publication Publication Date Title
US7664923B2 (en) Method and system for updating software
JP2007133541A (en) Storage device, memory management device, memory management method and program
JP2005157528A (en) Memory device
JP4586469B2 (en) MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, PROGRAM
JP4177360B2 (en) Memory controller, flash memory system, and flash memory control method
CN110688141B (en) Firmware updating method
US6314024B1 (en) Data processing apparatus
JP2011175352A (en) Firmware updating device, communication apparatus, electronic apparatus, firmware updating system, firmware updating method and program
JP2005250882A (en) Information processor and program rewriting method
EP3584697B1 (en) Information processing device
JP4235624B2 (en) Memory controller, flash memory system, and flash memory control method
JP5521437B2 (en) Portable terminal device, software update method and program
JPWO2012077604A1 (en) Processing apparatus, program update method, and program
KR20090021695A (en) System for roll back of flash memory and method there of
JP4910402B2 (en) Nonvolatile memory rewriting device and rewriting method
JP5158883B2 (en) Firmware update method and firmware update apparatus
JP2004094628A (en) Memory rewriting control system for flash memory, memory rewriting control method, and program allowing execution of each process of memory rewriting control method
JP2007328824A (en) Memory card, nonvolatile memory, data writing method of nonvolatile memory and data writing device
JP5976729B2 (en) Electronics
JP2005025441A (en) Method for updating application program of ic card
JP2005063120A (en) Program rewriting device
JP2008108048A (en) Computer and method for updating firmware therefor
JP2004341781A (en) Method and device for updating firmware, and flash rom
JP2023170521A (en) Facility apparatus
JP2023070929A (en) Electronic control system, data structure of software package, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100302

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100622

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100812

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110412