JP2000242487A - Device and method for updating program - Google Patents

Device and method for updating program

Info

Publication number
JP2000242487A
JP2000242487A JP11047141A JP4714199A JP2000242487A JP 2000242487 A JP2000242487 A JP 2000242487A JP 11047141 A JP11047141 A JP 11047141A JP 4714199 A JP4714199 A JP 4714199A JP 2000242487 A JP2000242487 A JP 2000242487A
Authority
JP
Japan
Prior art keywords
data
program
rom
block
memory
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.)
Granted
Application number
JP11047141A
Other languages
Japanese (ja)
Other versions
JP3649932B2 (en
Inventor
Yasuhiko Chinami
保彦 千波
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP04714199A priority Critical patent/JP3649932B2/en
Publication of JP2000242487A publication Critical patent/JP2000242487A/en
Application granted granted Critical
Publication of JP3649932B2 publication Critical patent/JP3649932B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable the reload of data only to the program block of an updating object when updating the data of a program block at one part of program data composed of plural program blocks stored in a flash memory. SOLUTION: Concerning the flash memory storing plural program blocks 41-45 for realizing each of functions A-E, the operating system(OS) data of the function D are updated, for example. In this case, before erasing the data of the fourth memory block 54, one part 46 of OS data of the function C and the data of one part 47 in the OS data of the function E stored in the fourth memory block 54 are temporarily saved in a personal computer 6 together with the OS data of the function D and after the data of the fourth memory block 54 are erased, saved data 46 and 47 are written at the original positions of the fourth memory block 54 together with new OS data 48 of the function D.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数のメモリブロ
ックからなり、かつメモリブロック単位で電気的に一括
消去および書き込みが可能な所謂フラッシュメモリと呼
ばれるROM(リードオンリメモリ)に記憶された、複
数のプログラムブロックからなるプログラムデータの一
部のプログラムブロックを更新するためのプログラム更
新装置に関し、特に工業用プロセスで導入されているプ
ログラマブルコントローラ(以下、PCとする)システ
ムにおいて、PCシステムを制御する制御ユニットやネ
ットワーク機能や位置決め機等を実現するための特殊ユ
ニットのオペレーティングシステム(以下、OSとす
る)と呼ばれる基本ソフトウェアの更新処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a plurality of memory blocks, each of which is stored in a so-called flash memory (ROM) which is electrically erasable and writable in units of memory blocks. Control device for updating a part of program data of program data, particularly a program controller (hereinafter referred to as a PC) system introduced in an industrial process for controlling a PC system The present invention relates to an update process of basic software called an operating system (hereinafter referred to as an OS) of a special unit for realizing a unit, a network function, a positioning device, and the like.

【0002】[0002]

【従来の技術】一般に、工業用プロセスで導入されてい
るPCシステムにおいては、制御ユニットや特殊ユニッ
トのOSのプログラムデータは、複数のプログラムブロ
ックからなり、各ユニット内のフラッシュメモリに記憶
される。
2. Description of the Related Art In general, in a PC system introduced in an industrial process, program data of an OS of a control unit or a special unit is composed of a plurality of program blocks and stored in a flash memory in each unit.

【0003】図19は、特殊ユニット内のフラッシュメ
モリにOSを書き込むための従来のPCシステムの構成
を示す外観図である。図示例では、PCシステム全体に
電源を供結する電源ユニット11、PCシステム全体を
制御する制御ユニット12、ネットワーク機能や位置決
め機能等の特殊な機能を実現するための特殊ユニット1
3、および制御ユニット12や特殊ユニット13にOS
を書き込むためのOSダウンロード装置14は、べース
ユニット15に内蔵された外部バス(図示省略)を介し
て相互に接続されている。特殊ユニット用のOSデータ
は、メモリカード16に記憶されており、そのメモリカ
ード16はOSダウンロード装置14に装着される。
FIG. 19 is an external view showing the configuration of a conventional PC system for writing an OS in a flash memory in a special unit. In the illustrated example, a power supply unit 11 for supplying power to the entire PC system, a control unit 12 for controlling the entire PC system, and a special unit 1 for realizing special functions such as a network function and a positioning function.
3 and OS for control unit 12 and special unit 13
Are connected to each other via an external bus (not shown) built in the base unit 15. The OS data for the special unit is stored in the memory card 16, and the memory card 16 is mounted on the OS download device 14.

【0004】図20は、OSの書き込み処理を行うシス
テムの構成を示すブロック図である。特殊ユニット13
は、マイクロコンピュータよりなる中央処理装置である
CPU131、OSを格納するためのフラッシュメモリ
132、制御ユニット12とのデータ交換などに用いる
2ポートメモリ133、およびべースユニット15内の
外部バス151と接続するためのインタフェース(I/
F)である外部バスインタフェース134を備えてい
る。
FIG. 20 is a block diagram showing a configuration of a system for performing an OS write process. Special unit 13
Is connected to a CPU 131 which is a central processing unit composed of a microcomputer, a flash memory 132 for storing an OS, a two-port memory 133 used for data exchange with the control unit 12, and an external bus 151 in the base unit 15. Interface (I /
F) which is an external bus interface.

【0005】CPU131、フラッシュメモリ132、
2ポートメモリ133および外部バスインタフェース1
34は、内部バス135を介して相互に接続される。一
方、OSダウンロード装置14は、マイクロコンピュー
タよりなる中央処理装置であるCPU141、OSダウ
ンロード装置14を動作させるためのソフトウェアを記
憶したROM142、および外部バス151と接続する
ための外部バスインタフェース143を備えている。C
PU141、ROM142、外部バスインタフェース1
43、およびOSダウンロード装置14に装着されたメ
モリカード16は、内部バス145を介して相互に接続
される。
[0005] CPU 131, flash memory 132,
Two-port memory 133 and external bus interface 1
34 are connected to each other via an internal bus 135. On the other hand, the OS download device 14 includes a CPU 141 as a central processing unit composed of a microcomputer, a ROM 142 storing software for operating the OS download device 14, and an external bus interface 143 for connecting to the external bus 151. I have. C
PU 141, ROM 142, external bus interface 1
43 and the memory card 16 mounted on the OS download device 14 are interconnected via an internal bus 145.

【0006】そして、メモリカード16をOSダウンロ
ード装置14に装着した状態でPCシステムの電源をオ
フからオンに切り替えることにより、特殊ユニット13
に対してOSの書き込み処理が開始し、特殊ユニット1
3用のOSデータは、メモリカード16から外部バス1
51を通じて特殊ユニット13内のフラッシュメモリ1
32に送られ、書き込まれる。
When the power of the PC system is switched from off to on while the memory card 16 is mounted on the OS download device 14, the special unit 13 is turned on.
OS write processing is started for the special unit 1
OS data for the external bus 1 from the memory card 16
51, the flash memory 1 in the special unit 13
32 to be written.

【0007】なお、電源ユニット11と制御ユニット1
2とOSダウンロード装置14をべースユニット15に
接続し、制御ユニット用のOSデータを記憶したメモリ
カードをOSダウンロード装置14に装着した状態でP
Cシステムの電源をオフからオンに切り替えれば、制御
ユニット12にOSが書き込まれる。
The power supply unit 11 and the control unit 1
2 and the OS download device 14 are connected to the base unit 15, and the memory card storing the OS data for the control unit is attached to the OS download device 14.
When the power of the C system is switched from off to on, the OS is written into the control unit 12.

【0008】図21は、OSのデータ構成とそれを記憶
したフラッシュメモリの従来のメモリマップを説明する
ための模式図である。特殊ユニットまたは制御ユニット
のOSのデータ構成20は、機能A、機能B、機能C、
・・・、機能nという複数の機能を実行するための複数
のプログラムブロック21,22,23,24からな
り、一括してフラッシュメモリ25に書き込まれる。
FIG. 21 is a schematic diagram for explaining a data structure of an OS and a conventional memory map of a flash memory storing the data structure. The data structure 20 of the OS of the special unit or the control unit includes functions A, B, C,
.., Consisting of a plurality of program blocks 21, 22, 23, and 24 for executing a plurality of functions called a function n, which are collectively written to the flash memory 25.

【0009】フラッシュメモリ25のメモリ空間は、各
機能のプログラムサイズに応じた複数のプログラムブロ
ック26,27,28,29で構成される。フラッシュ
メモリは読み出し専用メモリであるが、複数のメモリブ
ロックからなり、そのメモリブロック単位で消去や書き
込みが可能な記憶媒体である。しかし複数のプログラム
ブロック26,27,28,29は、フラッシュメモリ
25のメモリブロックを考慮して割り付けられてはいな
いため、それらは互いに独立して分割可能になっている
わけではない。
The memory space of the flash memory 25 is composed of a plurality of program blocks 26, 27, 28, 29 according to the program size of each function. Although the flash memory is a read-only memory, it is a storage medium composed of a plurality of memory blocks and erasable and writable in units of the memory blocks. However, since the plurality of program blocks 26, 27, 28, and 29 are not allocated in consideration of the memory blocks of the flash memory 25, they cannot be divided independently of each other.

【0010】すなわち、たとえば、図22に模式的に示
すフラッシュメモリの従来のメモリマップのように、機
能CのOSデータが第3番目のメモリブロック33(図
ではメモリブロック3)と第4番目のメモリブロック3
4(図ではメモリブロック4)の一部に割り付けられ、
第4番目のメモリブロック34にさらに機能DのOSデ
ータが割り付けられ、機能EのOSデータが第4番目の
メモリブロック34の残りの部分と第5番目のメモリブ
ロック35(図ではメモリブロック5)に割り付けられ
ることがある。
That is, for example, like the conventional memory map of the flash memory schematically shown in FIG. 22, the OS data of the function C is stored in the third memory block 33 (memory block 3 in the figure) and the fourth memory block. Memory block 3
4 (memory block 4 in the figure),
The OS data of the function D is further allocated to the fourth memory block 34, and the OS data of the function E is stored in the remaining part of the fourth memory block 34 and the fifth memory block 35 (memory block 5 in the figure). May be assigned to

【0011】なお、図22では、機能AのOSデータお
よび機能BのOSデータは、それぞれ第1番目のメモリ
ブロック31(図ではメモリブロック1)および第2番
目のメモリブロック32(図ではメモリブロック2)に
割り付けられている。
In FIG. 22, the OS data of the function A and the OS data of the function B are respectively stored in the first memory block 31 (memory block 1 in the figure) and the second memory block 32 (memory block in the figure). Assigned to 2).

【0012】[0012]

【発明が解決しようとする課題】フラッシュメモリは、
ブロック単位でOSデータをやりとりする手順をシステ
ムに追加することによって、データの書き込みを可能に
する構成であるため、書き込まれたデータを消去しなけ
ればその領域に再度データを書き込むことができないメ
モリである。したがって、そのデータの消去はあくまで
メモリブッロク単位でなされ、そのため、たとえば、図
22の例において、機能A、機能B、機能Cおよび機能
Eのプログラムブロックの書き換えを行わずに、機能D
のOSデータ36を単独で新しいバージョンのデータ3
7に書き換えようとすると、機能Dのプログラムブロッ
クが割り付けられた第4番目のメモリブロック34の記
憶内容を消去した後、新機能DのOSデータ37を書き
込まなければならない。
SUMMARY OF THE INVENTION A flash memory is
This is a configuration in which data can be written by adding a procedure for exchanging OS data in block units to the system. Therefore, a memory in which data cannot be written again to the area unless the written data is erased is used. is there. Therefore, the data is erased only in units of memory blocks. Therefore, for example, in the example of FIG. 22, the function D, the function A, the function C, and the function E are not rewritten, and the function D is not rewritten.
OS data 36 alone as a new version of data 3
In order to rewrite the data to 7, the OS data 37 of the new function D must be written after erasing the storage contents of the fourth memory block 34 to which the program block of the function D is allocated.

【0013】しかし、その際に、第4番目のメモリブロ
ック34の消去に伴って、機能CのOSデータの一部3
8(図22において「機能C1」としたメモリ領域)と
機能EのOSデータの一部39(図22において「機能
E1」としたメモリ領域)も消失してしまうため、機能
DのプログラムブロックのOSデータを単独で更新する
ことは困難であり、結局OS全体を書き換えなければな
らず、OSのバージョンアップ等によるデータ更新時に
時間がかかるという問題点があった。
However, at this time, with the erasure of the fourth memory block 34, a part 3
8 (the memory area designated as "function C1" in FIG. 22) and a part 39 of the OS data of the function E (memory area designated as "function E1" in FIG. 22) are also lost. It is difficult to update the OS data alone, and it is necessary to rewrite the entire OS after all, and there is a problem that it takes time to update the data due to an OS version upgrade or the like.

【0014】また、従来は一部のプログラムブロックの
OSデータを更新する場合でもOS全体を書き換えるた
め、OS全体のデータが必要であり、従ってOS全体の
データサイズが大きい場合には複数枚のメモリカードに
分けて記憶させなければならず、コスト増を招くだけで
なく取り扱いおよびOSの書き換え操作が煩雑になると
いう欠点もある。一方、フラッシュメモリの各メモリブ
ロックに2以上の異なるプログラムブロックのデータが
混在しないようにすれば、一部のプログラムブロックの
OSデータ更新時に、バージョンアップされたプログラ
ムブロックのみを書き換えることは可能である。
Conventionally, even when updating the OS data of some program blocks, the entire OS is rewritten, so that the data of the entire OS is required. Therefore, when the data size of the entire OS is large, a plurality of memories are required. It is necessary to store the data separately on the card, which not only increases the cost but also complicates the handling and rewriting operation of the OS. On the other hand, if data of two or more different program blocks is not mixed in each memory block of the flash memory, it is possible to rewrite only the upgraded program block when updating the OS data of some program blocks. .

【0015】しかし、そのようにすると、たとえば、図
22の例で説明すれば、機能CのOSデータを第3番目
のメモリブロック33と第4番目のメモリブロック34
に割り付け、機能DのOSデータを第5番目のメモリブ
ロック35に割り付け、機能EのOSデータを図示しな
い第6番目のメモリブロックに割り付けることになる。
そして第4番目のメモリブロック34の残りの部分、第
5番目のメモリブロック35の残りの部分、および第6
番目のメモリブロックの残りの記憶領域は空き領域とな
り、データの格納に供されない無駄なメモリ領域が増え
てしまうので、記憶容量の大きいフラッシュメモリを用
いなければならなくなるという不都合が生じる。
However, in this case, for example, referring to the example of FIG. 22, the OS data of the function C is stored in the third memory block 33 and the fourth memory block 34.
The OS data of the function D is allocated to the fifth memory block 35, and the OS data of the function E is allocated to the sixth memory block (not shown).
Then, the remaining portion of the fourth memory block 34, the remaining portion of the fifth memory block 35, and the sixth
The remaining storage area of the second memory block becomes a free area, and a useless memory area that is not used for storing data increases. Therefore, there is a disadvantage that a flash memory having a large storage capacity must be used.

【0016】また、従来は、OSの書き込みのために専
用装置としてOSダウンロード装置14を用意しなけれ
ばならず、OSダウンロード装置の機種によって取り扱
い方法が異なるため、使用者が混乱するおそれがある。
Conventionally, the OS download device 14 must be prepared as a dedicated device for writing the OS, and the handling method differs depending on the model of the OS download device, so that the user may be confused.

【0017】本発明は、上記問題点を解決するためにな
されたもので、フラッシュメモリに記憶された、複数の
プログラムブロックからなるプログラムデータの一部の
プログラムブロックのデータを更新するにあたり、その
更新対象であるプログラムブロックに対してのみデータ
の書き換えを行うことができるプログラム更新装置およ
び更新方法を得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem. In updating data of a part of program data of a plurality of program blocks stored in a flash memory, the update is performed. An object of the present invention is to provide a program updating device and an updating method that can rewrite data only for a target program block.

【0018】また、本発明は、フラッシュメモリに記憶
された、複数のプログラムブロックからなるプログラム
データの一部のプログラムブロックのデータを更新する
にあたり、差分データのみを入手すれば更新を行うこと
ができるプログラム更新装置および更新方法を得ること
を目的とする。
Further, according to the present invention, in updating data of some program blocks of the program data composed of a plurality of program blocks stored in the flash memory, the update can be performed by obtaining only the difference data. It is an object to obtain a program updating device and an updating method.

【0019】また、本発明は、フラッシュメモリにプロ
グラムデータを書き込む際に、専用の装置を用いずに、
統一的な操作で容易に書き込みを行うことができるプロ
グラム更新装置および更新方法を得ることを目的とす
る。
Further, according to the present invention, when program data is written to a flash memory, a dedicated device is not used.
It is an object of the present invention to obtain a program updating apparatus and an updating method that can easily perform writing with a unified operation.

【0020】[0020]

【課題を解決するための手段】図1は、本発明の原理を
模式的に示す概略図である。本発明は、図1に示すよう
に、複数の機能、たとえば、機能A、機能B、機能C、
機能Dおよび機能Eを実現するための複数のプログラム
ブロック41,42,43,44,45を記憶したフラ
ッシュメモリに対して、たとえば、機能DのOSデータ
を更新する場合、第4番目のメモリブロック54のデー
タを消去する前に、機能DのOSデータとともに第4番
目のメモリブロック54内に格納された、機能CのOS
データの一部46(図1において「機能C1」としたメ
モリ領域)と機能EのOSデータの一部47(図1にお
いて「機能E1」としたメモリ領域)のデータを、別の
記憶媒体、たとえば、パーソナルコンピュータ6のワー
クメモリや、パーソナルコンピュータ6に接続されたハ
ードディスクやフロッピーディスクや光磁気ディスクな
どに一時的に退避し、第4番目のメモリブロック54の
データを消去した後、新しい機能DのOSデータ48と
ともに退避データ46,47を第4番目のメモリブロッ
ク54の元の位置に書き込むようにしたものである。
FIG. 1 is a schematic diagram schematically showing the principle of the present invention. The present invention, as shown in FIG. 1, includes a plurality of functions, for example, function A, function B, function C,
For example, when updating the OS data of the function D in the flash memory storing a plurality of program blocks 41, 42, 43, 44, 45 for realizing the functions D and E, the fourth memory block Before erasing the data of the function 54, the OS of the function C stored in the fourth memory block 54 together with the OS data of the function D
Data of a part 46 of the data (memory area designated as “function C1” in FIG. 1) and a part 47 of the OS data of function E (memory area designated as “function E1” in FIG. 1) are stored in another storage medium. For example, after temporarily evacuating to the work memory of the personal computer 6 or a hard disk, floppy disk, or magneto-optical disk connected to the personal computer 6, erasing the data in the fourth memory block 54, the new function D The save data 46 and 47 are written to the original position of the fourth memory block 54 together with the OS data 48 of the fourth embodiment.

【0021】図1の例は、機能Dの元のOSデータを格
納したプログラムブロック44と、新しい機能DのOS
データ48を格納するプログラムブロックとのサイズが
同じ場合である。パーソナルコンピュータ6は、OSイ
ンストールソフトウェアを実行する周辺装置の一つであ
る。
FIG. 1 shows an example in which a program block 44 storing original OS data of a function D and an OS of a new function D are stored.
This is the case when the size of the program block storing the data 48 is the same. The personal computer 6 is one of peripheral devices that execute OS installation software.

【0022】また、本発明は、図2に示す原理図のよう
に、たとえば、フラッシュメモリに記憶された機能Bの
OSデータを、第2番目のメモリブロック52のサイズ
よりも大きいプログラムサイズのOSデータに更新する
場合、機能C、機能Dおよび機能Eの各OSデータを格
納したプログラムブロック43,44,45の割り付け
位置をずらす必要があるため、それらのプログラムブロ
ック43,44,45のデータを、別の記憶媒体、たと
えば、パーソナルコンピュータ6のワークメモリや、パ
ーソナルコンピュータ6に接続されたハードディスクや
フロッピーディスクや光磁気ディスクなどに一時的に退
避し、それから2番目から第5番目までの各メモリブロ
ック52,53,54,55のデータを消去した後、新
しい機能BのOSデータ49とともに退避データ43,
44,45を順に第2番目のメモリブロック52から書
き込むようにしたものである。
Further, according to the present invention, as shown in the principle diagram of FIG. 2, for example, the OS data of the function B stored in the flash memory is stored in an OS having a program size larger than the size of the second memory block 52. When updating to data, it is necessary to shift the allocation positions of the program blocks 43, 44 and 45 storing the respective OS data of the functions C, D and E. , Temporarily saved to another storage medium, for example, a work memory of the personal computer 6, a hard disk, a floppy disk, or a magneto-optical disk connected to the personal computer 6, and then each of the second to fifth memories After erasing the data of the blocks 52, 53, 54 and 55, the OS of the new function B The saved data 43 along with the over data 49,
44 and 45 are sequentially written from the second memory block 52.

【0023】なお、図1および図2において、第1番目
のメモリブロック51に「機能情報ブロック」が設けら
れているが、これについては後述する。
In FIG. 1 and FIG. 2, a "function information block" is provided in the first memory block 51, which will be described later.

【0024】図3は、本発明によるOSのデータ構成と
それを記憶したフラッシュメモリのメモリマップを説明
するための模式図である。OSのデータ構成120は、
機能A、機能B、機能C、・・・、機能nという複数の
機能を実行するための複数のプログラムブロック12
1,122,123,124に分割されており、フラッ
シュメモリ125に、それぞれ独立して書き込むことも
できるし、従来通り一括して書き込むこともできる。
FIG. 3 is a schematic diagram for explaining a data structure of an OS according to the present invention and a memory map of a flash memory storing the data structure. The data structure 120 of the OS is as follows:
A plurality of program blocks 12 for executing a plurality of functions such as function A, function B, function C,.
1, 122, 123, and 124, and can be independently written into the flash memory 125, or can be collectively written as before.

【0025】そして、部分的に書き込んでも、一括して
書き込んでも、フラッシュメモリ125のメモリ空間
は、各機能のプログラムサイズに応じた複数のプログラ
ムブロック126,127,128,129に分割され
る。なお従来は、図21に関連して説明した通り、各プ
ログラムブロック(図21の符号26,27,28,2
9)は、分割可能にはなっていない。
The memory space of the flash memory 125 is divided into a plurality of program blocks 126, 127, 128, and 129 according to the program size of each function, whether partially or collectively. Conventionally, as described with reference to FIG. 21, each program block (reference numerals 26, 27, 28, 2 in FIG. 21) is used.
9) is not splittable.

【0026】また、本発明は、フラッシュメモリ125
のデータ構成を、図4に示すように、各機能A,B,
C,nのOSデータ群131とともに、各機能A,B,
C,nに関する情報134を集約した管理テーブル13
3を格納する機能情報ブロック132を含む構成とした
ものである。各機能A,B,C,nに関する情報134
は、たとえば、機能の識別子(機能No.)、その機能
のOSデータが格納されているメモリ領域の先頭アドレ
ス、データサイズおよびその他の付加情報で構成され
る。この管理テーブル133によって、各機能A,B,
C,D,nのOSデータのサイズや先頭アドレスを確認
することができる。
The present invention also relates to a flash memory 125
The data structure of each function A, B,
Along with the OS data group 131 of C and n, each function A, B,
Management table 13 in which information 134 about C and n is aggregated
3 is included. Information 134 about each function A, B, C, n
Is composed of, for example, a function identifier (function No.), a start address of a memory area in which OS data of the function is stored, a data size, and other additional information. According to the management table 133, each function A, B,
It is possible to confirm the size and the start address of the OS data of C, D, and n.

【0027】また、本発明は、フラッシュメモリ125
に書き込まれるOSのデータ構成120を、図5に示す
ように、OSの実データ136とともに、前記機能に関
する情報134に対応した機能情報137を含む構成と
したものである。従ってこの機能情報137は、たとえ
ば、機能の識別子(機能No.)、その実データ136
が格納されるフラッシュメモリ125のメモリ領域の先
頭アドレス、データサイズおよびその他の付加情報で構
成される。なおこの実データ136が、ある機能のOS
データを更新するものである場合には、機能情報137
の先頭アドレスの値は、フラッシュメモリ125におけ
る、更新前の該当する機能のOSデータの先頭アドレス
値である。
The present invention also relates to a flash memory 125
As shown in FIG. 5, the OS data structure 120 written into the OS includes actual OS data 136 and function information 137 corresponding to the information 134 on the function. Therefore, the function information 137 includes, for example, a function identifier (function No.) and its actual data 136.
Is stored at the start address of the memory area of the flash memory 125, the data size, and other additional information. The actual data 136 is stored in the OS of a certain function.
If the data is to be updated, the function information 137
Is the start address value of the OS data of the corresponding function in the flash memory 125 before the update.

【0028】この機能情報137によって、各機能A,
B,C,D,nのOSデータがフラッシュメモリ125
のどのメモリブロックに属するか、あるいは実際に属し
ているのかということを知ることができる。
According to the function information 137, each function A,
The OS data of B, C, D, and n are stored in the flash memory 125.
To which memory block it belongs, or whether it actually belongs.

【0029】以上原理説明したように、本発明は、複数
のメモリブロックからなり、かつメモリブロック単位で
一括消去および書き込みが可能なROMに記憶された、
複数のプログラムブロックからなるプログラムデータの
一部のプログラムブロックを更新する装置であって、任
意にデータの書き込みおよび読み出しが可能な記憶媒体
と、更新対象とされた旧プログラムブロックの一部また
は全部とともに同一のメモリブロック内に格納された、
更新対象以外のプログラムデータを、前記記憶媒体に複
写する複写手段と、前記ROM内の、更新対象とされた
旧プログラムブロックの一部または全部を少なくとも一
部に含むメモリブロックの記憶内容、および前記ROM
内の、前記記憶媒体への複写対象となったプログラムデ
ータを少なくとも一部に含むメモリブロックの記憶内容
を消去する消去手段と、新たに前記ROMに書き込むプ
ログラムブロックのデータを、前記記憶媒体に記憶され
た複写データとともに前記ROMに書き込む書き込み手
段と、を具備するものである。
As described above, according to the present invention, the present invention is composed of a plurality of memory blocks, and is stored in a ROM capable of collectively erasing and writing in units of memory blocks.
An apparatus for updating a part of program blocks of program data composed of a plurality of program blocks, the storage medium being capable of arbitrarily writing and reading data, and a part or all of old program blocks to be updated. Stored in the same memory block,
Copying means for copying program data other than the update target to the storage medium; storage contents of a memory block in the ROM including at least a part or all of an old program block to be updated; ROM
Erasing means for erasing the storage contents of a memory block including at least a part of the program data to be copied to the storage medium, and storing the program block data newly written in the ROM in the storage medium. And writing means for writing the copied data in the ROM.

【0030】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに記憶された、複数のプログラム
ブロックからなるプログラムデータの一部のプログラム
ブロックを更新する装置によって、更新対象とされた旧
プログラムブロックの一部または全部とともに同一のメ
モリブロック内に格納された、更新対象以外のプログラ
ムデータが、任意にデータの書き込みおよび読み出しが
可能な記憶媒体に複写され、その後に、前記ROM内
の、更新対象とされた旧プログラムブロックの一部また
は全部を少なくとも一部に含むメモリブロックの記憶内
容、および前記ROM内の、前記記憶媒体への複写対象
となったプログラムデータを少なくとも一部に含むメモ
リブロックの記憶内容が消去され、そして新たに前記R
OMに書き込むプログラムブロックのデータが、前記記
憶媒体に記憶された複写データとともに前記ROMに書
き込まれる。
According to the present invention, a part of program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, is updated. Device, the non-update target program data stored in the same memory block together with part or all of the old program block to be updated is copied to a storage medium on which data can be freely written and read. After that, the storage contents of the memory block including at least a part or all of the old program block to be updated in the ROM and the copy target to the storage medium in the ROM In the memory block containing at least a part of the program data There is erased, and newly wherein R
The data of the program block to be written to the OM is written to the ROM together with the copy data stored in the storage medium.

【0031】また、本発明は、複数のメモリブロックか
らなり、かつメモリブロック単位で一括消去および書き
込みが可能なROMに記憶された、複数のプログラムブ
ロックからなるプログラムデータの一部のプログラムブ
ロックを更新する装置であって、任意にデータの書き込
みおよび読み出しが可能な記憶媒体と、更新対象とされ
た旧プログラムブロックよりもデータサイズの大きいプ
ログラムブロックの更新により前記ROM内の格納位置
にずれが生じ得る、更新対象以外のプログラムデータ
を、前記記憶媒体に複写する複写手段と、前記ROM内
の、更新対象とされた旧プログラムブロックの一部また
は全部を少なくとも一部に含むメモリブロックの記憶内
容、および前記ROM内の、前記記憶媒体への複写対象
となったプログラムデータを少なくとも一部に含むメモ
リブロックの記憶内容を消去する消去手段と、新たに前
記ROMに書き込むプログラムブロックのデータを、前
記記憶媒体に記憶された複写データとともに前記ROM
に書き込む書き込み手段と、を具備するものである。
Further, according to the present invention, a part of program data of a plurality of program blocks stored in a ROM comprising a plurality of memory blocks and capable of being collectively erased and written in memory block units is updated. A storage medium in which data can be arbitrarily written and read and a program block having a larger data size than an old program block to be updated can cause a shift in a storage position in the ROM. Copy means for copying program data other than the update target to the storage medium, and storage contents of a memory block in the ROM including at least a part or all of the old program block to be updated, and The program in the ROM that has been copied to the storage medium And erasing means for erasing the storage contents of the memory block containing at least in part over data, the data of the program block to be written to the new the ROM, together with the stored copy data in the storage medium ROM
Writing means for writing to

【0032】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに記憶された、複数のプログラム
ブロックからなるプログラムデータの一部のプログラム
ブロックを更新する装置によって、更新対象とされた旧
プログラムブロックよりもデータサイズの大きいプログ
ラムブロックの更新により前記ROM内の格納位置にず
れが生じ得る、更新対象以外のプログラムデータが、任
意にデータの書き込みおよび読み出しが可能な記憶媒体
に複写され、その後に、前記ROM内の、更新対象とさ
れた旧プログラムブロックの一部または全部を少なくと
も一部に含むメモリブロックの記憶内容、および前記R
OM内の、前記記憶媒体への複写対象となったプログラ
ムデータを少なくとも一部に含むメモリブロックの記憶
内容が消去され、そして新たに前記ROMに書き込むプ
ログラムブロックのデータが、前記記憶媒体に記憶され
た複写データとともに前記ROMに書き込まれる。
According to the present invention, a part of program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, is updated. The program data other than the update target may be arbitrarily written and read by a device that performs update of a program block having a data size larger than that of the old program block to be updated. Is copied to a storage medium capable of storing the old program block to be updated, and the storage contents of a memory block including at least a part or all of the old program block to be updated;
The storage contents of the memory block including at least a part of the program data to be copied to the storage medium in the OM are erased, and the data of the program block newly written in the ROM is stored in the storage medium. The data is written into the ROM together with the copied data.

【0033】この発明において、前記ROMは、前記各
プログラムブロックの格納場所の先頭アドレスおよびそ
れぞれのデータサイズも記憶する。
In the present invention, the ROM also stores a starting address of a storage location of each of the program blocks and a data size of each.

【0034】この発明によれば、前記ROMに、前記各
プログラムブロックの格納場所の先頭アドレスおよびそ
れぞれのデータサイズも記憶される。
According to the present invention, the head address of the storage location of each program block and the data size of each are also stored in the ROM.

【0035】この発明において、前記書き込み手段は、
新たに前記ROMに書き込むプログラムブロックのデー
タとともに、前記ROM内における当該データの格納場
所の先頭アドレスおよびデータサイズも書き込む構成と
なっている。
In the present invention, the writing means includes:
In addition to the program block data to be newly written in the ROM, the head address and the data size of the storage location of the data in the ROM are written.

【0036】この発明によれば、前記ROMに、新たに
前記ROMに書き込むプログラムブロックのデータとと
もに、前記ROM内における当該データの格納場所の先
頭アドレスおよびデータサイズも書き込まれる。
According to this invention, the head address and the data size of the storage location of the data in the ROM are written into the ROM along with the data of the program block to be newly written in the ROM.

【0037】また、本発明は、複数のメモリブロックか
らなり、かつメモリブロック単位で一括消去および書き
込みが可能なROMに対して、複数のプログラムブロッ
クからなるプログラムデータの書き込みを行う装置であ
って、各プログラムブロックのデータとともに、前記R
OM内における前記各データの格納場所の先頭アドレス
およびデータサイズを書き込む構成となっている。
Further, the present invention is an apparatus for writing program data comprising a plurality of program blocks to a ROM comprising a plurality of memory blocks and capable of collectively erasing and writing in units of memory blocks, Along with the data of each program block,
The head address and the data size of the storage location of each data in the OM are written.

【0038】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに対して、複数のプログラムブロ
ックからなるプログラムデータの書き込みを行う装置に
よって、各プログラムブロックのデータとともに、前記
ROM内における前記各データの格納場所の先頭アドレ
スおよびデータサイズも書き込まれる。
According to the present invention, each program is written by a device for writing program data consisting of a plurality of program blocks to a ROM consisting of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks. Along with the block data, a start address and a data size of a storage location of each data in the ROM are also written.

【0039】また、本発明は、複数のメモリブロックか
らなり、かつメモリブロック単位で一括消去および書き
込みが可能なROMに記憶された、複数のプログラムブ
ロックからなるプログラムデータの一部のプログラムブ
ロックを更新するにあたって、更新対象とされた旧プロ
グラムブロックの一部または全部とともに同一のメモリ
ブロック内に格納された、更新対象以外のプログラムデ
ータを、任意にデータの書き込みおよび読み出しが可能
な記憶媒体に複写する複写工程と、前記ROM内の、更
新対象とされた旧プログラムブロックの一部または全部
を少なくとも一部に含むメモリブロックの記憶内容、お
よび前記ROM内の、前記記憶媒体への複写対象となっ
たプログラムデータを少なくとも一部に含むメモリブロ
ックの記憶内容を消去する消去工程と、新たに前記RO
Mに書き込むプログラムブロックのデータを、前記記憶
媒体に記憶された複写データとともに前記ROMに書き
込む書き込み工程と、を含むものである。
According to the present invention, a part of program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, is updated. In doing so, the program data other than the update target, which is stored in the same memory block together with part or all of the old program block to be updated, is copied to a storage medium in which data can be arbitrarily written and read. The copying step, the storage contents of the memory block including at least a part or all of the old program block to be updated in the ROM, and the copy target to the storage medium in the ROM Store the contents of the memory block that contains the program data at least in part. An erasing step of removed by, newly the RO
Writing the data of the program block to be written into M together with the copy data stored in the storage medium into the ROM.

【0040】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに記憶された、複数のプログラム
ブロックからなるプログラムデータの一部のプログラム
ブロックを更新するにあたって、更新対象とされた旧プ
ログラムブロックの一部または全部とともに同一のメモ
リブロック内に格納された、更新対象以外のプログラム
データを、任意にデータの書き込みおよび読み出しが可
能な記憶媒体に複写し、その後、前記ROM内の、更新
対象とされた旧プログラムブロックの一部または全部を
少なくとも一部に含むメモリブロックの記憶内容、およ
び前記ROM内の、前記記憶媒体への複写対象となった
プログラムデータを少なくとも一部に含むメモリブロッ
クの記憶内容を消去し、そして新たに前記ROMに書き
込むプログラムブロックのデータを、前記記憶媒体に記
憶された複写データとともに前記ROMに書き込む。
According to the present invention, a part of program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in memory block units, is updated. In doing so, the program data other than the update target stored in the same memory block together with part or all of the old program block to be updated is copied to a storage medium on which data can be written and read arbitrarily. Then, the storage contents of a memory block including at least a part or all of the old program block to be updated in the ROM, and the program to be copied to the storage medium in the ROM Erase the memory contents of the memory block containing data at least partially And, and the data of the program block to be written to the new the ROM, writes with the stored copy data in the storage medium in the ROM.

【0041】また、本発明は、複数のメモリブロックか
らなり、かつメモリブロック単位で一括消去および書き
込みが可能なROMに記憶された、複数のプログラムブ
ロックからなるプログラムデータの一部のプログラムブ
ロックを更新するにあたって、更新対象とされた旧プロ
グラムブロックよりもデータサイズの大きいプログラム
ブロックの更新により前記ROM内の格納位置にずれが
生じ得る、更新対象以外のプログラムデータを、任意に
データの書き込みおよび読み出しが可能な記憶媒体に複
写する複写工程と、前記ROM内の、更新対象とされた
旧プログラムブロックの一部または全部を少なくとも一
部に含むメモリブロックの記憶内容、および前記ROM
内の、前記記憶媒体への複写対象となったプログラムデ
ータを少なくとも一部に含むメモリブロックの記憶内容
を消去する消去工程と、新たに前記ROMに書き込むプ
ログラムブロックのデータを、前記記憶媒体に記憶され
た複写データとともに前記ROMに書き込む書き込み工
程と、を含むものである。
Further, according to the present invention, a part of program data of a plurality of program blocks stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks is updated. In doing so, it is possible to arbitrarily write and read program data other than the update target, which may cause a shift in the storage position in the ROM due to the update of the program block having a data size larger than the old program block to be updated. A copying step of copying to a possible storage medium, storage contents of a memory block in the ROM including at least a part or all of an old program block to be updated, and the ROM
An erasing step of erasing storage contents of a memory block including at least a part of program data to be copied to the storage medium, and storing the program block data newly written in the ROM in the storage medium. And writing the data to the ROM together with the copied data.

【0042】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに記憶された、複数のプログラム
ブロックからなるプログラムデータの一部のプログラム
ブロックを更新するにあたって、更新対象とされた旧プ
ログラムブロックの一部または全部とともに同一のメモ
リブロック内に格納された、更新対象以外のプログラム
データ、または更新対象とされた旧プログラムブロック
よりもデータサイズの大きいプログラムブロックの更新
により前記ROM内の格納位置にずれが生じ得る、更新
対象以外のプログラムデータを、任意にデータの書き込
みおよび読み出しが可能な記憶媒体に複写し、その後、
前記ROM内の、更新対象とされた旧プログラムブロッ
クの一部または全部を少なくとも一部に含むメモリブロ
ックの記憶内容、および前記ROM内の、前記記憶媒体
への複写対象となったプログラムデータを少なくとも一
部に含むメモリブロックの記憶内容を消去し、そして新
たに前記ROMに書き込むプログラムブロックのデータ
を、前記記憶媒体に記憶された複写データとともに前記
ROMに書き込む。
According to the present invention, a part of program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in memory block units, is updated. In doing so, the program data that is stored in the same memory block together with part or all of the old program block to be updated, is not the update target, or has a larger data size than the old program block to be updated. The program data other than the update target may be copied to a storage medium in which the data can be written and read arbitrarily.
In the ROM, the storage contents of a memory block including at least a part or all of the old program block to be updated and the program data in the ROM to be copied to the storage medium are at least stored. The contents of a memory block included in a part of the program are erased, and data of a program block to be newly written to the ROM is written to the ROM together with copy data stored in the storage medium.

【0043】また、本発明は、複数のメモリブロックか
らなり、かつメモリブロック単位で一括消去および書き
込みが可能なROMに対して、複数のプログラムブロッ
クからなるプログラムデータの書き込みを行うにあたっ
て、各プログラムブロックのデータとともに、前記RO
M内における前記各データの格納場所の先頭アドレスお
よびデータサイズを書き込む工程を含むものである。
Further, according to the present invention, when writing program data consisting of a plurality of program blocks into a ROM comprising a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, Together with the data of RO
And a step of writing a start address and a data size of the storage location of each of the data in M.

【0044】この発明によれば、複数のメモリブロック
からなり、かつメモリブロック単位で一括消去および書
き込みが可能なROMに対して、複数のプログラムブロ
ックからなるプログラムデータの書き込みを行うにあた
って、各プログラムブロックのデータとともに、前記R
OM内における前記各データの格納場所の先頭アドレス
およびデータサイズを書き込む。
According to the present invention, when writing program data consisting of a plurality of program blocks to a ROM consisting of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, Together with the data of R
The head address and data size of the storage location of each data in the OM are written.

【0045】[0045]

【発明の実施の形態】以下、この発明にかかるプログラ
ム更新装置およびプログラム更新方法の実施の形態を図
面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a program updating apparatus and a program updating method according to the present invention will be described in detail with reference to the drawings.

【0046】実施の形態1.図6は、本発明の実施の形
態1により制御ユニット内のフラッシュメモリにOSを
書き込むためのPCシステムの構成を示す外観図であ
る。電源ユニット71、制御ユニット72および特殊ユ
ニット73は、べースユニット75内の外部バス(図示
省略)を介して相互に接続されている。OSインストー
ルソフトウェアが動作する周辺機器である、たとえば、
パーソナルコンピュータ6は、通信ケーブル60を介し
て、たとえば、制御ユニット72に設けられた通信ポー
ト76に接続されている。
Embodiment 1 FIG. 6 is an external view showing a configuration of a PC system for writing an OS in a flash memory in a control unit according to the first embodiment of the present invention. The power supply unit 71, the control unit 72, and the special unit 73 are mutually connected via an external bus (not shown) in the base unit 75. Peripheral device on which OS installation software operates, for example,
The personal computer 6 is connected via a communication cable 60 to, for example, a communication port 76 provided in the control unit 72.

【0047】パーソナルコンピュータ6は、フロッピー
ディスク装置やハードディスク装置や光磁気ディスク装
置やテープ装置などの記憶装置を内蔵しているか、また
は特に図示していないが、それらの記憶装置に接続され
ており、フロッピーディスクやハードディスクや光磁気
ディスクに記憶されたOSインストールソフトウェアを
実行し、たとえば、フロッピーディスクに記憶された制
御ユニット用のOSを通信ケーブル60を介して制御ユ
ニット72に送り、インストールを行う。従ってパーソ
ナルコンピュータ6は、プログラム更新装置としての機
能を有している。このパーソナルコンピュータ6は、O
Sのインストール終了後に通信ケーブル60とともに取
り外される。
The personal computer 6 has built-in storage devices such as a floppy disk device, a hard disk device, a magneto-optical disk device, and a tape device, or is connected to these storage devices (not shown). By executing OS installation software stored on a floppy disk, a hard disk, or a magneto-optical disk, for example, an OS for a control unit stored on a floppy disk is sent to the control unit 72 via the communication cable 60 to perform installation. Therefore, the personal computer 6 has a function as a program updating device. This personal computer 6
After the installation of S is completed, it is removed together with the communication cable 60.

【0048】制御ユニット72にOSをインストールす
る際には、特殊ユニット73は必ずしも必要ではない。
なお電源ユニット71、制御ユニット72、特殊ユニッ
ト73およびべースユニット75は、それぞれ従来同様
のユニットであるため、それらについての説明を省略す
る。
When the OS is installed in the control unit 72, the special unit 73 is not always necessary.
Note that the power supply unit 71, the control unit 72, the special unit 73, and the base unit 75 are the same units as those in the related art, and a description thereof will be omitted.

【0049】図7は、制御ユニット72に対してOSの
書き込み処理を行うシステムの構成を示すブロック図で
ある。制御ユニット72は、マイクロコンピュータより
なる中央処理装置であるCPU721、OSを格納する
ためのフラッシュメモリ722、前記通信ポート76、
ワークメモリ等を提供するRAM(ランダムアクセスメ
モリ)723、およびべースユニット75内の外部バス
751と接続するための外部バスインタフェース724
を備えている。
FIG. 7 is a block diagram showing the configuration of a system for performing an OS write process on the control unit 72. The control unit 72 includes a CPU 721 as a central processing unit including a microcomputer, a flash memory 722 for storing an OS, the communication port 76,
RAM (random access memory) 723 for providing a work memory or the like, and an external bus interface 724 for connecting to an external bus 751 in the base unit 75
It has.

【0050】CPU721、フラッシュメモリ722、
通信ポート76、RAM723および外部バスインタフ
ェース724は、内部バス725を介して相互に接続さ
れる。一方パーソナルコンピュータ6は、中央処理装置
であるCPU61、ROM62、RAM63および通信
ポート64を備えており、それらは内部バス65を介し
て相互に接続される。通信ポート64は、制御ユニット
72に接続された通信ケーブル60を接続するポートで
ある。なお図示省略したが、制御ユニット用のOSを記
憶したフロッピーディスクは、図示省略したフロッピー
ディスク装置を介してパーソナルコンピュータ6の内部
バス65に接続される。
CPU 721, flash memory 722,
The communication port 76, the RAM 723, and the external bus interface 724 are mutually connected via an internal bus 725. On the other hand, the personal computer 6 includes a CPU 61 as a central processing unit, a ROM 62, a RAM 63, and a communication port 64, which are mutually connected via an internal bus 65. The communication port 64 is a port for connecting the communication cable 60 connected to the control unit 72. Although not shown, the floppy disk storing the OS for the control unit is connected to the internal bus 65 of the personal computer 6 via a floppy disk device not shown.

【0051】図8は、フラッシュメモリ722のデータ
構成を示す模式図である。フラッシュメモリ722は、
機能A、機能B、機能C、・・・、機能nという複数の
機能を実行するためのOSデータを、各機能毎に分割し
て複数のプログラムブロック701,702,703,
704に格納する。
FIG. 8 is a schematic diagram showing the data structure of the flash memory 722. The flash memory 722 is
OS data for executing a plurality of functions such as function A, function B, function C,..., Function n are divided for each function into a plurality of program blocks 701, 702, 703,
704.

【0052】また、フラッシュメモリ722は、プログ
ラムブロック701,702,703,704のたとえ
ば、先頭に、各機能A,B,C,nに関する情報(以
下、機能情報とする)707を集約した管理テーブル7
06を格納する機能情報ブロック(これを機能Oとして
もよい)705を有している。機能情報ブロック705
の格納位置のアドレスおよび機能情報ブロック705の
データサイズは、固定である。
The flash memory 722 has, for example, a management table in which information (hereinafter referred to as function information) 707 relating to functions A, B, C, and n is collected at the head of the program blocks 701, 702, 703, and 704. 7
A function information block 705 (which may be referred to as a function O) 705 for storing the information 06 is provided. Function information block 705
Is fixed, and the data size of the function information block 705 is fixed.

【0053】機能情報707は、たとえば、機能の識別
子(機能No.)707a、16ワード等で構成される
機能名称707b、その機能のOSデータがインストー
ルされた時のインストール元のフロッピーディスク番号
(FD No.)707c、その機能のOSデータのバ
ージョン707d、その機能のOSデータをインストー
ルした日付707e、その機能のOSデータが格納され
ているメモリ領域の先頭アドレス707f、およびデー
タサイズ707gで構成される。機能情報ブロック70
5は、たとえば、機能No.を「0」とする。
The function information 707 includes, for example, a function identifier (function No.) 707a, a function name 707b composed of 16 words, etc., and an installation source floppy disk number (FD) when OS data of the function is installed. No.) 707c, a version 707d of the OS data of the function, a date 707e when the OS data of the function was installed, a start address 707f of a memory area storing the OS data of the function, and a data size 707g. . Function information block 70
5 is, for example, a function No. Is set to “0”.

【0054】図9は、更新のためにフロッピーディスク
からフラッシュメモリ722にインストールされるOS
データのデータ構成を示す模式図である。図示例では新
しい機能Bのデータについて例示されているが、他の機
能についても同様である。
FIG. 9 shows an OS installed in a flash memory 722 from a floppy disk for updating.
It is a schematic diagram which shows the data structure of data. In the illustrated example, the data of the new function B is illustrated, but the same applies to other functions.

【0055】新機能BのOSデータ(以下、新データと
する)は、実データ(以下、新実データとする)711
と、前記機能情報707に対応した機能情報(以下、新
機能情報とする)712とからなる。すなわち新機能情
報712は、たとえば、機能の識別子(機能No.)7
12a、16ワード等で構成される機能名称712b、
フロッピーディスク番号(FD No.)712c、バ
ージョン712d、インストールの日付712e、イン
ストール先の先頭アドレス712f、およびデータサイ
ズ712gで構成される。
The OS data of the new function B (hereinafter, referred to as new data) is actual data (hereinafter, referred to as new actual data) 711.
And function information (hereinafter referred to as new function information) 712 corresponding to the function information 707. That is, the new function information 712 includes, for example, a function identifier (function No.) 7
A function name 712b composed of 12a, 16 words, etc.
It is composed of a floppy disk number (FD No.) 712c, version 712d, installation date 712e, installation start address 712f, and data size 712g.

【0056】つぎに、動作中の制御ユニット72に対す
るOSデータの更新処理について、図10を参照しなが
ら説明する。なお図中、6aはパーソナルコンピュータ
6で実行されるOSインストールソフトウェア(S/
W)の処理工程を示し、72aは制御ユニット72で実
行されるソフトウェア(S/W)の処理工程を示す。
Next, a process of updating the OS data to the operating control unit 72 will be described with reference to FIG. In the figure, reference numeral 6a denotes OS installation software (S / S) executed on the personal computer 6.
W) shows a processing step, and 72a shows a processing step of software (S / W) executed by the control unit 72.

【0057】通常の動作中の制御ユニット72に通信ケ
ーブル60を介してパーソナルコンピュータ6を接続
し、そのパーソナルコンピュータ6に、所定のデータ構
成(図9参照)の新データを記憶したフロッピーディス
ク等を装着し、制御ユニット72に対してOSデータの
更新を開始すると、まずパーソナルコンピュータ6は、
通信ケーブル60を経由して制御ユニット72に、OS
データの書き込み処理の開始を通知する(ステップA
1)。
The personal computer 6 is connected to the control unit 72 in normal operation via the communication cable 60, and a floppy disk or the like storing new data of a predetermined data configuration (see FIG. 9) is connected to the personal computer 6. When the personal computer 6 is attached and starts updating OS data to the control unit 72, first, the personal computer 6
The OS is sent to the control unit 72 via the communication cable 60.
Notify the start of the data writing process (step A
1).

【0058】制御ユニット72は、その通知を受け取る
と、制御およびシステムを停止状態にし、OSデータを
書き込むための準備処理としてシステムデータの退避を
行う。そして制御ユニット72は、OSの書き込み処理
を実行し得る状態になったという結果をパーソナルコン
ピュータ6に応答する(ステップB1)。パーソナルコ
ンピュータ6は、その結果を受け取ると、新データのう
ちの新実データ711のデータサイズ、およびその新実
データ711の、フラッシュメモリ722における格納
先のアドレスなどの情報を制御ユニット72に通知する
(ステップA2)。以下、この通知を退避OS機能情報
読出要求とする。
Upon receiving the notification, the control unit 72 stops the control and the system, and saves the system data as a preparation process for writing the OS data. Then, the control unit 72 responds to the personal computer 6 with a result indicating that the OS writing process can be executed (step B1). When receiving the result, the personal computer 6 notifies the control unit 72 of information such as the data size of the new real data 711 of the new data and the address of the storage location of the new real data 711 in the flash memory 722. (Step A2). Hereinafter, this notification is referred to as a save OS function information read request.

【0059】制御ユニット72は、退避OS機能情報読
出要求を受け取ると、新実データ711の先頭アドレス
712fおよびそのデータサイズ712gと、フラッシ
ュメモリ722に既に記憶されている機能情報707の
中の先頭アドレス707fおよびデータサイズ707g
とを、各機能について比較することによって、データの
退避が必要となる機能のOSデータ(以下、退避データ
とする)の先頭アドレスおよびデータサイズを算出し、
退避データの先頭アドレスおよびデータサイズをパーソ
ナルコンピュータ6に応答する(ステップB2)。
When the control unit 72 receives the save OS function information read request, the start address 712 f of the new real data 711 and its data size 712 g and the start address in the function information 707 already stored in the flash memory 722 are obtained. 707f and data size 707g
Is calculated for each function to calculate the start address and data size of OS data (hereinafter referred to as “save data”) of a function that requires data saving,
The head address and data size of the save data are returned to the personal computer 6 (step B2).

【0060】パーソナルコンピュータ6は、退避データ
の先頭アドレスとサイズを受け取ると、それらに基づい
て制御ユニット72に退避データの読み出し要求を通知
し、それに応答して制御ユニット72から送られてきた
退避データを、たとえば、ハードディスクにファイルと
して記憶することによってデータの退避を行う(ステッ
プA3)。
When the personal computer 6 receives the head address and the size of the save data, it notifies the control unit 72 of a request to read the save data based on the received address and the size of the save data. Is saved as a file on the hard disk, for example, to save the data (step A3).

【0061】ステップA3に応答して、制御ユニット7
2は、フラッシュメモリ722から退避データを読み出
し、それをパーソナルコンピュータ6へ送る(ステップ
B3)。続いてパーソナルコンピュータ6は、制御ユニ
ット72に、フラッシュメモリ722の、退避データが
記憶されているメモリブロックの削除要求を通知し、そ
れに応答する削除完了結果を制御ユニット72から受け
取る(ステップA4)。ステップA4に応答して、制御
ユニット72は該当するメモリブロックの削除を行う
(ステップB4)。
In response to step A3, the control unit 7
2 reads the save data from the flash memory 722 and sends it to the personal computer 6 (step B3). Subsequently, the personal computer 6 notifies the control unit 72 of a request to delete the memory block in the flash memory 722 in which the saved data is stored, and receives a deletion completion result in response to the request from the control unit 72 (step A4). In response to Step A4, the control unit 72 deletes the corresponding memory block (Step B4).

【0062】続いてパーソナルコンピュータ6は、ハー
ドディスクに退避した退避データと新実データ711と
をアドレスの昇順に並びかえ、そしてその並べ替えたデ
ータをすべてフラッシュメモリ722に書き込むまで、
逐次制御ユニット72にOS書き込み実行要求とともに
メモリブロック単位で書き込みデータを出力し、すべて
の書き込みが終了した時点で制御ユニット72から書き
込み完了結果とOS照合実行要求を受け取る(ステップ
A5)。ステップA5に応答して、制御ユニット72は
フラッシュメモリ722にデータを書き込む(ステップ
B5)。
Subsequently, the personal computer 6 rearranges the saved data saved on the hard disk and the new real data 711 in the ascending order of the addresses, and until all the rearranged data is written to the flash memory 722.
The write data is output to the sequential control unit 72 in units of memory blocks together with the OS write execution request, and when all writing is completed, a write completion result and an OS verification execution request are received from the control unit 72 (step A5). In response to step A5, control unit 72 writes data to flash memory 722 (step B5).

【0063】続いてパーソナルコンピュータ6は、制御
ユニット72に、フラッシュメモリ722に実際に書き
込まれたデータの読み出し要求を通知し、それに応答し
て制御ユニット72から送られてきたデータを受け取
り、フラッシュメモリ722に実際に書き込まれたデー
タと正しいデータとの照合を行い、それらの整合性を調
べる(ステップA6)。すなわちフラッシュメモリ72
2に正しく書き込まれたか否かのチェックを行う。ステ
ップA6に応答して、制御ユニット72は、フラッシュ
メモリ722から実際に書き込まれたデータを読み出す
(ステップB6)。
Subsequently, the personal computer 6 notifies the control unit 72 of a request for reading the data actually written in the flash memory 722, receives the data sent from the control unit 72 in response thereto, and The data actually written in 722 is compared with the correct data, and their consistency is checked (step A6). That is, the flash memory 72
A check is made as to whether the data has been correctly written to the second. In response to Step A6, the control unit 72 reads the actually written data from the flash memory 722 (Step B6).

【0064】フラッシュメモリ722にデータが正しく
書き込まれていない場合には、正しいデータが書き込ま
れるまで、該当するメモリブロックの削除、該当データ
の書き込みおよび照合を行う。フラッシュメモリ722
にデータが正しく書き込まれたら、パーソナルコンピュ
ータ6は、制御ユニット72に書き込みが終了したこと
を通知し、それに応答して制御ユニット72から書き込
み終了処理の完了通知を受け取る(ステップA7)。ス
テップA7に応答して、制御ユニット72は、OSデー
タの書き込み終了処理としてシステムデータの復帰など
を行う(ステップB7)。
If the data has not been correctly written to the flash memory 722, the corresponding memory block is deleted, the corresponding data is written and collated until the correct data is written. Flash memory 722
Is written correctly, the personal computer 6 notifies the control unit 72 that the writing has been completed, and receives a notification of the completion of the writing end process from the control unit 72 in response thereto (step A7). In response to step A7, the control unit 72 performs a return of system data or the like as OS data write termination processing (step B7).

【0065】パーソナルコンピュータ6は、書き込み終
了処理の完了通知を受け取ると、制御ユニット72にリ
モートリセット要求を通知し、それに応答して制御ユニ
ット72からリセット完了通知を受け取り、OSデータ
の更新処理を終了する(ステップA8)。ステップA8
に応答して、制御ユニット72は、PCシステム全体を
リセットし、更新したOSデータを立ち上げてPCシス
テムの制御を開始する(ステップB8)。
Upon receiving the write completion processing completion notification, the personal computer 6 notifies the control unit 72 of a remote reset request, receives a reset completion notification from the control unit 72 in response thereto, and ends the OS data update processing. (Step A8). Step A8
, The control unit 72 resets the entire PC system, starts up the updated OS data, and starts control of the PC system (step B8).

【0066】ところで、フラッシュメモリ722に対し
てデータの削除(ステップB4)またはデータの書き込
み(ステップB5)を実行している間は、フラッシュメ
モリ722内にあるOSプログラムを実行することはで
きない。
While the data is being deleted (step B4) or the data is being written (step B5) to the flash memory 722, the OS program in the flash memory 722 cannot be executed.

【0067】そのため本実施の形態では、図11および
図12に示すように、フラッシュメモリ722にアクセ
スする場合は、フラッシュメモリ722内のフラッシュ
メモリ書き込み処理ブロック722aまたはフラッシュ
メモリ削除処理ブロック722bに格納されたプログラ
ムをワークメモリ(RAM723)に複写する。フラッ
シュメモリ書き込み処理ブロック722aおよびフラッ
シュメモリ削除処理ブロック722bは、それぞれフラ
ッシュメモリ722に対してデータの書き込み処理およ
びメモリブロックの消去処理を行うためのプログラムを
格納している。
Therefore, in this embodiment, as shown in FIGS. 11 and 12, when accessing the flash memory 722, the flash memory 722 is stored in the flash memory write processing block 722a or the flash memory deletion processing block 722b. The copied program is copied to a work memory (RAM 723). The flash memory writing processing block 722a and the flash memory deletion processing block 722b store programs for performing data writing processing and memory block erasing processing with respect to the flash memory 722, respectively.

【0068】ワークメモリ(RAM723)にコピーさ
れた処理は、ワークメモリ内で実行され、フラッシュメ
モリ722に対して書き込みや削除の処理を行う。そし
て書き込みや削除の処理が終了した後、プログラムの実
行は元に戻される。
The processing copied to the work memory (RAM 723) is executed in the work memory, and performs writing and deletion processing on the flash memory 722. Then, after the processing of writing and deletion is completed, the execution of the program is returned to the original state.

【0069】なお、図11中、725aおよび725b
は内部バス725を構成し、それぞれデータバスおよび
アドレスバスである。
In FIG. 11, 725a and 725b
Constitutes an internal bus 725, which is a data bus and an address bus, respectively.

【0070】上記実施の形態1によれば、フラッシュメ
モリ722が、各機能のOSデータとともに、各機能の
OSデータを格納したメモリ領域の先頭アドレス707
fおよびそのデータサイズ707gを含む機能情報70
7を記憶するため、制御ユニット72に対して、複数の
プログラムブロック701,702,703,704か
らなるプログラムデータをプログラムブロック毎に分割
して書き込むことができ、またデータ更新時に、新実デ
ータ711の更新とともに、フラッシュメモリ722に
おけるその新実データ711の格納場所の先頭アドレス
およびデータサイズも更新するため、更新対象であるプ
ログラムブロックに対してのみデータの書き換えを行う
ことができる。
According to the first embodiment, the flash memory 722 stores the start address 707 of the memory area storing the OS data of each function together with the OS data of each function.
function information 70 including f and its data size 707g
7, the program data composed of a plurality of program blocks 701, 702, 703, and 704 can be divided and written into the control unit 72 for each program block. Since the start address and the data size of the storage location of the new real data 711 in the flash memory 722 are updated at the same time as the update, the data can be rewritten only for the program block to be updated.

【0071】従って、上記実施の形態1によれば、プロ
グラムデータの更新時に差分データのみを入手すればよ
いので、更新処理を行うデータサイズが小さくて済み、
更新処理が短時間で済み、また更新のための新データを
たとえば、複数枚のフロッピーディスクに分けて記憶さ
せる場合のコストの問題や、取り扱いおよび更新処理の
煩雑さを解消することができる。また、上記実施の形態
1によれば、パーソナルコンピュータ6を制御ユニット
72に接続し、パーソナルコンピュータ6を操作してデ
ータの更新を行うため、専用のOSダウンロード装置が
不要となる。
Therefore, according to the first embodiment, only the difference data needs to be obtained at the time of updating the program data.
The updating process can be completed in a short time, and the problem of cost when storing new data for updating on a plurality of floppy disks, for example, and the complexity of handling and updating processes can be eliminated. According to the first embodiment, since the personal computer 6 is connected to the control unit 72 and the personal computer 6 is operated to update data, a dedicated OS download device is not required.

【0072】実施の形態2.つぎに、本発明の実施の形
態2により特殊ユニット73内のフラッシュメモリ73
1にOSを書き込む場合について説明する。特殊ユニッ
ト73内のフラッシュメモリ731にOSを書き込むた
めのPCシステムは、図6に示す構成と同じである。す
なわち、電源ユニット71、制御ユニット72および特
殊ユニット73が、べースユニット75内の外部バス
(図示省略)を介して相互に接続されており、プログラ
ム更新装置であるたとえば、パーソナルコンピュータ6
が通信ケーブル60を介して、たとえば、制御ユニット
72の通信ポート76に接続されている。
Embodiment 2 Next, the flash memory 73 in the special unit 73 according to the second embodiment of the present invention.
1 will be described. The PC system for writing the OS in the flash memory 731 in the special unit 73 has the same configuration as that shown in FIG. That is, the power supply unit 71, the control unit 72, and the special unit 73 are connected to each other via an external bus (not shown) in the base unit 75.
Are connected to the communication port 76 of the control unit 72 via the communication cable 60, for example.

【0073】図13は、特殊ユニット73に対してOS
の書き込み処理を行うシステムの構成を示すブロック図
である。特殊ユニット73は、マイクロコンピュータよ
りなる中央処理装置であるCPU731、OSを格納す
るためのフラッシュメモリ732、制御ユニット72と
のデータ交換などに用いる2ポートメモリ733、およ
びべースユニット75内の外部バス751と接続するた
めの外部バスインタフェース734を備えている。CP
U731、フラッシュメモリ732、2ポートメモリ7
33および外部バスインタフェース734は、内部バス
735を介して相互に接続される。電源ユニット71、
制御ユニット72およびパーソナルコンピュータ6の説
明は、実施の形態1と重複するので省略する。
FIG. 13 shows that the special unit 73
FIG. 2 is a block diagram illustrating a configuration of a system that performs a writing process of FIG. The special unit 73 includes a CPU 731 as a central processing unit including a microcomputer, a flash memory 732 for storing an OS, a two-port memory 733 used for data exchange with the control unit 72, and an external bus 751 in the base unit 75. An external bus interface 734 is provided for connection with the external bus. CP
U731, flash memory 732, 2-port memory 7
The external bus interface 33 and the external bus interface 734 are connected to each other via an internal bus 735. Power supply unit 71,
The description of the control unit 72 and the personal computer 6 will be omitted because they are the same as in the first embodiment.

【0074】また、フラッシュメモリ732のデータ構
成、および更新のためにフロッピーディスクからフラッ
シュメモリ732にインストールされるOSデータのデ
ータ構成は、それぞれ実施の形態1のフラッシュメモリ
722のデータ構成(図8参照)、および更新のために
フロッピーディスクからフラッシュメモリ722にイン
ストールされるOSデータのデータ構成(図9参照)と
同じである。
The data structure of the flash memory 732 and the data structure of the OS data installed in the flash memory 732 from the floppy disk for updating are the data structure of the flash memory 722 of the first embodiment (see FIG. 8). ), And the data configuration of OS data installed from the floppy disk to the flash memory 722 for updating (see FIG. 9).

【0075】つぎに、動作中の特殊ユニット73に対す
るOSデータの更新処理について、図14を参照しなが
ら説明する。なお図中、6bはパーソナルコンピュータ
6で実行されるOSインストールソフトウェア(S/
W)の処理工程を示し、72bは制御ユニット72で実
行されるソフトウェア(S/W)の処理工程を示し、7
3bは特殊ユニット73で実行されるソフトウェア(S
/W)の処理工程を示す。
Next, a description will be given, with reference to FIG. 14, of an OS data update process for the operating special unit 73. In the figure, reference numeral 6b denotes OS installation software (S / S) executed on the personal computer 6.
W) shows a processing step, and 72b shows a software (S / W) processing step executed by the control unit 72.
3b is software (S) executed by the special unit 73.
/ W).

【0076】通常の動作中の制御ユニット72に通信ケ
ーブル60を介してパーソナルコンピュータ6を接続
し、そのパーソナルコンピュータ6に、所定のデータ構
成(図9参照)の新データを記憶したフロッピーディス
ク等を装着し、特殊ユニット73に対してOSデータの
更新を開始すると、まずパーソナルコンピュータ6は、
通信ケーブル60を経由して制御ユニット72に、OS
データの書き込み処理の開始を通知する(ステップC
1)。
The personal computer 6 is connected to the control unit 72 in normal operation via the communication cable 60, and a floppy disk or the like storing new data of a predetermined data configuration (see FIG. 9) is connected to the personal computer 6. When the personal computer 6 is attached and starts updating the OS data to the special unit 73, first, the personal computer 6
The OS is sent to the control unit 72 via the communication cable 60.
Notify the start of the data writing process (step C
1).

【0077】制御ユニット72は、その通知を受け取る
と、その通知を特殊ユニット73に中継するとともに、
制御およびシステムを停止状態にし、OSデータを書き
込むための準備処理としてシステムデータの退避を行う
(ステップD1)。特殊ユニット73は、中継されたO
Sデータの書き込み開始の通知を受け取ると、OSデー
タを書き込むための準備処理としてシステムデータの退
避を行い、OSの書き込み処理を実行し得る状態になっ
たという結果を制御ユニット72を介してパーソナルコ
ンピュータ6に応答する(ステップE1)。
Upon receiving the notification, the control unit 72 relays the notification to the special unit 73,
The control and system are stopped, and system data is saved as a preparation process for writing OS data (step D1). The special unit 73 is
Upon receiving the notification of the start of writing the S data, the system data is saved as a preparation process for writing the OS data, and the result that the OS writing process can be executed is returned to the personal computer via the control unit 72. 6 (step E1).

【0078】パーソナルコンピュータ6は、その結果を
受け取ると、新データのうちの新実データ711のデー
タサイズ、およびその新実データ711の、フラッシュ
メモリ732における格納先のアドレスなどの情報(退
避OS機能情報読出要求)を制御ユニット72に通知す
る(ステップC2)。制御ユニット72は、退避OS機
能情報読出要求を特殊ユニット73に中継する(ステッ
プD2)。
Upon receiving the result, the personal computer 6 receives information (such as the data size of the new real data 711 of the new data and the address of the storage location of the new real data 711 in the flash memory 732 (the save OS function). An information reading request is notified to the control unit 72 (step C2). The control unit 72 relays the save OS function information read request to the special unit 73 (step D2).

【0079】特殊ユニット73は、退避OS機能情報読
出要求を受け取ると、新実データ711の先頭アドレス
712fおよびそのデータサイズ712gと、フラッシ
ュメモリ732に既に記憶されている機能情報707の
中の先頭アドレス707fおよびデータサイズ707g
とを、各機能について比較することによって、退避デー
タの先頭アドレスおよびデータサイズを算出し、退避デ
ータの先頭アドレスおよびデータサイズを制御ユニット
72を介してパーソナルコンピュータ6に応答する(ス
テップE2)。
Upon receiving the save OS function information read request, the special unit 73 receives the start address 712 f of the new real data 711 and its data size 712 g and the start address in the function information 707 already stored in the flash memory 732. 707f and data size 707g
Is compared for each function to calculate the head address and data size of the save data, and respond to the personal computer 6 via the control unit 72 with the head address and data size of the save data (step E2).

【0080】パーソナルコンピュータ6は、退避データ
の先頭アドレスとサイズを受け取ると、それらに基づい
て制御ユニット72に退避データの読み出し要求を通知
し、それに応答して送られてきた退避データを、たとえ
ば、ハードディスクにファイルとして記憶することによ
ってデータの退避を行う(ステップC3)。制御ユニッ
ト72は、退避データの読み出し要求を特殊ユニット7
3に中継するとともに、退避データをパーソナルコンピ
ュータ6に中継する(ステップD3)。ステップC3に
応答して、特殊ユニット73は、フラッシュメモリ73
2から退避データを読み出し、それを制御ユニット72
を介してパーソナルコンピュータ6へ送る(ステップE
3)。
When the personal computer 6 receives the head address and the size of the save data, it notifies the control unit 72 of a request to read the save data based on the received address and the size of the save data. Data is saved by storing it as a file on the hard disk (step C3). The control unit 72 issues a request to read the save data to the special unit 7.
3 and the saved data to the personal computer 6 (step D3). In response to Step C3, the special unit 73
2, and reads the saved data from the control unit 72.
(Step E)
3).

【0081】続いてパーソナルコンピュータ6は、フラ
ッシュメモリ732の、退避データが記憶されているメ
モリブロックの削除要求を制御ユニット72に通知し、
それに応答する削除完了結果を受け取る(ステップC
4)。制御ユニット72は、削除要求を特殊ユニット7
3に中継するとともに、削除完了結果をパーソナルコン
ピュータ6に中継する(ステップD4)。ステップC4
に応答して、特殊ユニット73は該当するメモリブロッ
クの削除を行う(ステップE4)。
Subsequently, the personal computer 6 notifies the control unit 72 of a request to delete the memory block in the flash memory 732 in which the saved data is stored.
Receive the deletion completion result in response (Step C
4). The control unit 72 sends the deletion request to the special unit 7
3 and the deletion completion result to the personal computer 6 (step D4). Step C4
, The special unit 73 deletes the corresponding memory block (step E4).

【0082】続いてパーソナルコンピュータ6は、ハー
ドディスクに退避した退避データと新実データ711と
をアドレスの昇順に並びかえ、そしてその並べ替えたデ
ータをすべてフラッシュメモリ732に書き込むまで、
逐次制御ユニット72にOS書き込み実行要求とともに
メモリブロック単位で書き込みデータを出力し、すべて
の書き込みが終了した時点で書き込み完了結果とOS照
合実行要求を受け取る(ステップC5)。制御ユニット
72は、OS書き込み実行要求および書き込みデータを
特殊ユニット73に中継するとともに、書き込み完了結
果およびOS照合実行要求をパーソナルコンピュータ6
に中継する(ステップD5)。ステップC5に応答し
て、特殊ユニット73はフラッシュメモリ732にデー
タを書き込む(ステップE5)。
Subsequently, the personal computer 6 rearranges the saved data saved on the hard disk and the new real data 711 in the ascending order of the address, and until all the rearranged data is written to the flash memory 732.
The write data is output to the sequential control unit 72 in units of memory blocks together with the OS write execution request, and when all writing is completed, a write completion result and an OS verification execution request are received (step C5). The control unit 72 relays the OS write execution request and the write data to the special unit 73, and transmits the write completion result and the OS collation execution request to the personal computer 6.
(Step D5). In response to Step C5, the special unit 73 writes data to the flash memory 732 (Step E5).

【0083】続いてパーソナルコンピュータ6は、フラ
ッシュメモリ732に実際に書き込まれたデータの読み
出し要求を制御ユニット72に通知し、それに応答して
送られてきたデータを受け取り、フラッシュメモリ73
2に実際に書き込まれたデータと正しいデータとの照合
を行い、それらの整合性を調べる(ステップC6)。制
御ユニット72は、データの読み出し要求を特殊ユニッ
ト73に中継するとともに、それに応答して読み出され
たデータをパーソナルコンピュータ6に中継する(ステ
ップD6)。
Subsequently, the personal computer 6 notifies the control unit 72 of a read request for data actually written in the flash memory 732, receives the data transmitted in response thereto, and
2 is compared with the data actually written to correct data, and their consistency is checked (step C6). The control unit 72 relays the data read request to the special unit 73, and relays the read data to the personal computer 6 in response to the request (step D6).

【0084】ステップC6に応答して、特殊ユニット7
3は、フラッシュメモリ732から実際に書き込まれた
データを読み出し、それを制御ユニット72を介してパ
ーソナルコンピュータ6へ送る(ステップE6)。フラ
ッシュメモリ732にデータが正しく書き込まれていな
い場合には、正しいデータが書き込まれるまで、該当す
るメモリブロックの削除、該当データの書き込みおよび
照合を行う。
In response to step C6, the special unit 7
3 reads the actually written data from the flash memory 732 and sends it to the personal computer 6 via the control unit 72 (step E6). If the data has not been correctly written to the flash memory 732, the corresponding memory block is deleted, and the corresponding data is written and collated until the correct data is written.

【0085】フラッシュメモリ732にデータが正しく
書き込まれたら、パーソナルコンピュータ6は、書き込
みが終了したことを制御ユニット72に通知し、それに
応答して書き込み終了処理の完了通知を受け取る(ステ
ップC7)。制御ユニット72は、書き込み終了通知を
特殊ユニット73に中継し、かつOSデータの書き込み
終了処理としてシステムデータの復帰などを行うととも
に、書き込み終了処理の完了通知をパーソナルコンピュ
ータ6に中継する(ステップD7)。ステップC7に応
答して、特殊ユニット73は、OSデータの書き込み終
了処理としてシステムデータの復帰などを行う(ステッ
プE7)。
When the data has been correctly written to the flash memory 732, the personal computer 6 notifies the control unit 72 that the writing has been completed, and receives a notification of the completion of the writing end process in response thereto (step C7). The control unit 72 relays the write completion notification to the special unit 73, performs system data restoration as OS data write completion processing, and relays the write completion processing completion notification to the personal computer 6 (step D7). . In response to Step C7, the special unit 73 performs a return of system data or the like as OS data write end processing (Step E7).

【0086】パーソナルコンピュータ6は、書き込み終
了処理の完了通知を受け取ると、制御ユニット72にリ
モートリセット要求を通知し、それに応答して制御ユニ
ット72からリセット完了通知を受け取り、OSデータ
の更新処理を終了する(ステップC8)。ステップC8
に応答して、制御ユニット72は、PCシステム全体を
リセットし、更新したOSデータを立ち上げてPCシス
テムの制御を開始する(ステップD8)。
When the personal computer 6 receives the write completion processing completion notification, it notifies the control unit 72 of a remote reset request. In response, the personal computer 6 receives a reset completion notification from the control unit 72 and ends the OS data update processing. (Step C8). Step C8
, The control unit 72 resets the entire PC system, starts updated OS data, and starts control of the PC system (step D8).

【0087】なお、フラッシュメモリ732に対してデ
ータの削除(ステップE4)またはデータの書き込み
(ステップE5)を実行している間のOSプログラムを
実行方法については、上記実施の形態1において図11
および図12に関連して説明した方法と同じである。
The method of executing the OS program while data is deleted (step E4) or data is written (step E5) in the flash memory 732 is described in the first embodiment with reference to FIG.
And the method described in connection with FIG.

【0088】上記実施の形態2によれば、特殊ユニット
73にプログラムデータをインストールしたり、その一
部のプログラムブロックのデータを更新する場合に、上
記実施の形態1と同様に、プログラムブロック毎に分割
して書き込むことができ、また更新対象であるプログラ
ムブロックに対してのみデータの書き換えを行うことが
でき、従って更新処理時間の短縮化、低コスト化および
更新処理の容易化という効果が得られる。
According to the second embodiment, when installing program data in the special unit 73 or updating data of some of the program blocks, as in the first embodiment, each program block Data can be divided and written, and data can be rewritten only to the program block to be updated. Therefore, the effects of shortening the update processing time, reducing the cost, and facilitating the update processing can be obtained. .

【0089】また、上記実施の形態2によれば、パーソ
ナルコンピュータ6を制御ユニット72に接続し、パー
ソナルコンピュータ6を操作して特殊ユニット73のデ
ータの更新を行うため、専用のOSダウンロード装置が
不要となり、特殊ユニット73のデータ更新を行う場合
でも、また制御ユニット72のデータ更新を行う場合で
も、統一的な操作で行うことができる。
According to the second embodiment, since the personal computer 6 is connected to the control unit 72 and the personal computer 6 is operated to update the data of the special unit 73, a dedicated OS download device is not required. Thus, even when the data of the special unit 73 is updated or when the data of the control unit 72 is updated, the operations can be performed by a unified operation.

【0090】なお、図15に示すように、複数のベース
ユニット75a,75bのそれぞれの外部バスにネット
ワークユニット77a,77bをそれぞれ取り付け、そ
れらネットワークユニット77a,77bをネットワー
クケーブル60aで相互に接続することによりPCシス
テムのネットワークを構築し、一方のベースユニット7
5aに取り付けられた制御ユニット72に、通信ケーブ
ル60を介してプログラム更新装置となるパーソナルコ
ンピュータ6を接続し、もう一方のベースユニット75
bの取り付けられた特殊ユニット73に対してプログラ
ムデータの更新を行うようにしてもよい。
As shown in FIG. 15, network units 77a and 77b are respectively attached to external buses of a plurality of base units 75a and 75b, and these network units 77a and 77b are connected to each other by a network cable 60a. To build a PC system network, and one base unit 7
The personal computer 6 serving as a program updating device is connected to the control unit 72 attached to the control unit 5a via the communication cable 60, and the other base unit 75
The program data may be updated for the special unit 73 to which the “b” is attached.

【0091】この場合、パーソナルコンピュータ6と特
殊ユニット73との間のデータ等のやり取りは、通信ケ
ーブル60、制御ユニット72、ベースユニット75
a、ネットワークユニット77a、ネットワークケーブ
ル60a、ネットワークユニット77b、ベースユニッ
ト75bを経由して行われる。また、複数の制御ユニッ
ト72や特殊ユニット73に対して、OSの書き込みデ
ータをコマンド形式で送信することにより、複数台の制
御ユニット72や特殊ユニット73に対して同時にOS
データの書き込みを実行することができる。
In this case, the exchange of data and the like between the personal computer 6 and the special unit 73 is performed by the communication cable 60, the control unit 72, and the base unit 75.
a, the network unit 77a, the network cable 60a, the network unit 77b, and the base unit 75b. Also, by transmitting the write data of the OS to the plurality of control units 72 and the special units 73 in the form of a command, the OSs can be simultaneously transmitted to the plurality of control units 72 and the special units 73.
Data writing can be performed.

【0092】また、OSの新データの書き込みに使用さ
れるフロッピーディスクに、ユーザーライセンスを管理
するためのシリアル番号を記憶させ、フラッシュメモリ
722,732にOSの新データを書き込もうとする際
に、その書き込みに使用されているフロッピーディスク
の番号と、フラッシュメモリ722,732に記憶され
た機能情報707の中のフロッピーディスク番号707
cとの照合をパーソナルコンピュータ6上で行うように
してもよい。そうすれば、プログラムのユーザーライセ
ンスを管理することができ、不正なインストールを防止
することができる。
Further, a serial number for managing a user license is stored in a floppy disk used for writing new OS data, and when a new OS data is to be written to the flash memories 722 and 732, the serial number is stored. The number of the floppy disk used for writing and the floppy disk number 707 in the function information 707 stored in the flash memories 722 and 732
The collation with c may be performed on the personal computer 6. Then, the user license of the program can be managed, and illegal installation can be prevented.

【0093】また、パーソナルコンピュータ6のOSイ
ンストールソフトウェアの内部に、図16に例示するよ
うな、PCシステムに対する各ユニット72,73の各
機能のバージョンの適合性を管理するためのバージョン
管理テーブル100を設け、フラッシュメモリ722,
732にOSの新データを書き込もうとする際に、フラ
ッシュメモリ722,732に記憶された機能情報70
7の中のバージョン707dと、バージョン管理テーブ
ル100の中の該当するユニット72,73の該当する
機能のバージョンとの照合をパーソナルコンピュータ6
上で行うようにしてもよい。そうすれば、PCシステム
に適合するバージョンのOSを簡単にインストールする
ことができる。
A version management table 100 for managing the compatibility of the versions of the functions of the units 72 and 73 with respect to the PC system as shown in FIG. 16 is provided in the OS installation software of the personal computer 6. Flash memory 722,
When attempting to write new OS data to the 732, the function information 70 stored in the flash memories 722 and 732
7 is compared with the version of the corresponding function of the corresponding unit 72 or 73 in the version management table 100 by the personal computer 6.
The above may be performed. Then, a version of the OS compatible with the PC system can be easily installed.

【0094】この場合のパーソナルコンピュータ6およ
びデータの更新対象であるユニット72,73のそれぞ
れの処理手順を図17および図18に示す。
FIGS. 17 and 18 show the processing procedures of the personal computer 6 and the units 72 and 73 whose data is to be updated in this case.

【0095】OSデータの更新処理を開始すると、まず
パーソナルコンピュータ6は、各ユニット72,73の
フラッシュメモリ722,732に記憶された管理テー
ブル706を読み出し、各ユニット72,73に対して
OSのバージョンを認識し(ステップS1)、それを各
ユニット72,73のバージョン管理テーブル100の
バージョンと照合して整合性を調べ、書き換え可能なO
Sのバーションを認識する(ステップS2)。バージョ
ンが整合していれば、更新対象のユニット72,73に
対してOS書き換えコマンド(OSデータを含む)を発
行し(ステップS3)、一方不整合であれば、ユーザー
にバージョンの不整合を通知し(ステップS4)、たと
えば、違うバージョンのOSの書き換えを促すようにし
てもよい。
When the update process of the OS data is started, the personal computer 6 first reads the management table 706 stored in the flash memories 722 and 732 of each unit 72 and 73, and sends the OS version to each unit 72 and 73. Is recognized (step S1), and it is checked against the version of the version management table 100 of each unit 72, 73 to check the consistency, and the rewritable O is checked.
The version of S is recognized (step S2). If the versions are consistent, an OS rewrite command (including OS data) is issued to the update target units 72 and 73 (step S3). If the versions are not consistent, the user is notified of the version mismatch. Then (step S4), for example, the user may be prompted to rewrite a different version of the OS.

【0096】一方、更新対象のユニット72,73は、
OSデータを含むOS書き換えコマンドを受信すると
(ステップS11)、ユニット72,73内のフラッシ
ュメモリ722,732のデータの書き換えを実行する
(ステップS12)。
On the other hand, the units 72 and 73 to be updated are:
When an OS rewrite command including OS data is received (step S11), the data in the flash memories 722 and 732 in the units 72 and 73 is rewritten (step S12).

【0097】[0097]

【発明の効果】以上、説明したとおり、本発明によれ
ば、複数のメモリブロックからなり、かつメモリブロッ
ク単位で一括消去および書き込みが可能なROMに記憶
された、複数のプログラムブロックからなるプログラム
データの一部のプログラムブロックを更新する装置によ
って、更新対象とされた旧プログラムブロックの一部ま
たは全部とともに同一のメモリブロック内に格納され
た、更新対象以外のプログラムデータが、任意にデータ
の書き込みおよび読み出しが可能な記憶媒体に複写さ
れ、その後に、前記ROM内の、更新対象とされた旧プ
ログラムブロックの一部または全部を少なくとも一部に
含むメモリブロックの記憶内容、および前記ROM内
の、前記記憶媒体への複写対象となったプログラムデー
タを少なくとも一部に含むメモリブロックの記憶内容が
消去され、そして新たに前記ROMに書き込むプログラ
ムブロックのデータが、前記記憶媒体に記憶された複写
データとともに前記ROMに書き込まれるため、更新対
象であるプログラムブロックに対してのみデータの書き
換えを行うことができ、従って更新のための差分データ
のみを入手すればよい。
As described above, according to the present invention, according to the present invention, program data consisting of a plurality of memory blocks, and a plurality of program blocks stored in a ROM capable of being collectively erased and written in memory block units. By means of an apparatus for updating some program blocks, program data other than those to be updated, stored in the same memory block together with some or all of old program blocks to be updated, can be arbitrarily written and written. Copied to a readable storage medium, and then stored in a memory block including at least a part or all of an old program block to be updated in the ROM; and At least part of the program data copied to the storage medium is included The contents of the memory block are erased, and the data of the program block newly written in the ROM is written in the ROM together with the copy data stored in the storage medium. Can be rewritten, so that only the difference data for updating needs to be obtained.

【0098】つぎの発明によれば、複数のメモリブロッ
クからなり、かつメモリブロック単位で一括消去および
書き込みが可能なROMに記憶された、複数のプログラ
ムブロックからなるプログラムデータの一部のプログラ
ムブロックを更新する装置によって、更新対象とされた
旧プログラムブロックよりもデータサイズの大きいプロ
グラムブロックの更新により前記ROM内の格納位置に
ずれが生じ得る、更新対象以外のプログラムデータが、
任意にデータの書き込みおよび読み出しが可能な記憶媒
体に複写され、その後に、前記ROM内の、更新対象と
された旧プログラムブロックの一部または全部を少なく
とも一部に含むメモリブロックの記憶内容、および前記
ROM内の、前記記憶媒体への複写対象となったプログ
ラムデータを少なくとも一部に含むメモリブロックの記
憶内容が消去され、そして新たに前記ROMに書き込む
プログラムブロックのデータが、前記記憶媒体に記憶さ
れた複写データとともに前記ROMに書き込まれるた
め、更新対象であるプログラムブロックに対してのみデ
ータの書き換えを行うことができ、従って更新のための
差分データのみを入手すればよい。
According to the next invention, a part of the program data of the program data consisting of a plurality of memory blocks and stored in a ROM which can be collectively erased and written in units of memory blocks is used. By the device to be updated, the update of a program block having a larger data size than the old program block to be updated may cause a shift in the storage position in the ROM.
The contents of a memory block which is copied to a storage medium from which data can be written and read arbitrarily, and then contains at least a part or all of an old program block to be updated in the ROM, and The storage contents of a memory block including at least a part of the program data to be copied to the storage medium in the ROM are erased, and data of a program block newly written to the ROM is stored in the storage medium. Since the data is written into the ROM together with the copied data, the data can be rewritten only for the program block to be updated. Therefore, only the difference data for updating needs to be obtained.

【0099】つぎの発明によれば、プログラム更新装置
として汎用のパーソナルコンピュータを用いることがで
きるため、専用の装置を用いずに、統一的な操作で容易
にプログラムデータの更新を行うことができる。
According to the next invention, a general-purpose personal computer can be used as the program updating device, so that program data can be easily updated by a unified operation without using a dedicated device.

【0100】つぎの発明によれば、前記ROMに、前記
各プログラムブロックの格納場所の先頭アドレスおよび
それぞれのデータサイズも記憶されるため、更新対象で
あるプログラムブロックのデータサイズやその格納場所
の先頭アドレスを確認することができるので、更新対象
であるプログラムブロックに対してのみデータの書き換
えを行うことができる。
According to the next invention, the head address of the storage location of each of the program blocks and the respective data size are also stored in the ROM, so that the data size of the program block to be updated and the head of the storage location are stored. Since the address can be confirmed, data can be rewritten only in the program block to be updated.

【0101】つぎの発明によれば、前記ROMに、新た
に前記ROMに書き込むプログラムブロックのデータと
ともに、前記ROM内における当該データの格納場所の
先頭アドレスおよびデータサイズも書き込まれるため、
データの更新とともに、そのデータの格納場所の先頭ア
ドレスおよびデータサイズも更新することができる。
According to the next invention, the head address and the data size of the storage location of the data in the ROM are written in the ROM together with the data of the program block to be newly written in the ROM.
Along with updating the data, the head address and data size of the storage location of the data can be updated.

【0102】つぎの発明によれば、複数のメモリブロッ
クからなり、かつメモリブロック単位で一括消去および
書き込みが可能なROMに対して、複数のプログラムブ
ロックからなるプログラムデータの書き込みを行う装置
によって、各プログラムブロックのデータとともに、前
記ROM内における前記各データの格納場所の先頭アド
レスおよびデータサイズも書き込まれるため、複数のプ
ログラムブロックからなるプログラムデータをプログラ
ムブロック毎に分割して書き込むことができる。
According to the next invention, each device for writing program data comprising a plurality of program blocks to a ROM comprising a plurality of memory blocks and capable of collectively erasing and writing in units of memory blocks, Since the start address and the data size of the storage location of each data in the ROM are written together with the data of the program block, the program data composed of a plurality of program blocks can be divided and written for each program block.

【0103】つぎの発明によれば、複数のメモリブロッ
クからなり、かつメモリブロック単位で一括消去および
書き込みが可能なROMに記憶された、複数のプログラ
ムブロックからなるプログラムデータの一部のプログラ
ムブロックを更新するにあたって、更新対象とされた旧
プログラムブロックの一部または全部とともに同一のメ
モリブロック内に格納された、更新対象以外のプログラ
ムデータを、任意にデータの書き込みおよび読み出しが
可能な記憶媒体に複写し、その後、前記ROM内の、更
新対象とされた旧プログラムブロックの一部または全部
を少なくとも一部に含むメモリブロックの記憶内容、お
よび前記ROM内の、前記記憶媒体への複写対象となっ
たプログラムデータを少なくとも一部に含むメモリブロ
ックの記憶内容を消去し、そして新たに前記ROMに書
き込むプログラムブロックのデータを、前記記憶媒体に
記憶された複写データとともに前記ROMに書き込むた
め、更新対象であるプログラムブロックに対してのみデ
ータの書き換えを行うことができる。
According to the next invention, a part of the program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, is used. When updating, the program data other than the update target, which is stored in the same memory block together with part or all of the old program block to be updated, is copied to a storage medium on which data can be written and read arbitrarily. After that, the storage contents of the memory block including at least a part or all of the old program block to be updated in the ROM and the copy target to the storage medium in the ROM Store the contents of the memory block that contains the program data at least in part. Then, since the data of the program block to be newly written to the ROM is written to the ROM together with the copy data stored in the storage medium, the data can be rewritten only to the program block to be updated. .

【0104】つぎの発明によれば、複数のメモリブロッ
クからなり、かつメモリブロック単位で一括消去および
書き込みが可能なROMに記憶された、複数のプログラ
ムブロックからなるプログラムデータの一部のプログラ
ムブロックを更新するにあたって、更新対象とされた旧
プログラムブロックよりもデータサイズの大きいプログ
ラムブロックの更新により前記ROM内の格納位置にず
れが生じ得る、更新対象以外のプログラムデータを、任
意にデータの書き込みおよび読み出しが可能な記憶媒体
に複写し、その後、前記ROM内の、更新対象とされた
旧プログラムブロックの一部または全部を少なくとも一
部に含むメモリブロックの記憶内容、および前記ROM
内の、前記記憶媒体への複写対象となったプログラムデ
ータを少なくとも一部に含むメモリブロックの記憶内容
を消去し、そして新たに前記ROMに書き込むプログラ
ムブロックのデータを、前記記憶媒体に記憶された複写
データとともに前記ROMに書き込むため、更新対象で
あるプログラムブロックに対してのみデータの書き換え
を行うことができる。
According to the next invention, a part of the program data of a plurality of program blocks, which is stored in a ROM composed of a plurality of memory blocks and capable of being collectively erased and written in memory block units, is used. In updating, arbitrarily writing and reading of program data other than the update target, which may cause a shift in the storage position in the ROM due to the update of a program block having a data size larger than the old program block to be updated. And the storage contents of a memory block including at least a part or all of an old program block to be updated in the ROM, and the ROM
Of the memory block including at least a portion of the program data to be copied to the storage medium, and erasing the storage contents of the memory block, and newly writing the program block data to the ROM, storing the program data in the storage medium. Since the data is written in the ROM together with the copy data, the data can be rewritten only for the program block to be updated.

【0105】つぎの発明によれば、複数のメモリブロッ
クからなり、かつメモリブロック単位で一括消去および
書き込みが可能なROMに対して、複数のプログラムブ
ロックからなるプログラムデータの書き込みを行うにあ
たって、各プログラムブロックのデータとともに、前記
ROM内における前記各データの格納場所の先頭アドレ
スおよびデータサイズを書き込むため、複数のプログラ
ムブロックからなるプログラムデータをプログラムブロ
ック毎に分割して書き込むことができる。
According to the next invention, when writing program data comprising a plurality of program blocks to a ROM comprising a plurality of memory blocks and capable of being collectively erased and written in units of memory blocks, Since the start address and the data size of the storage location of each data in the ROM are written together with the block data, the program data including a plurality of program blocks can be divided and written for each program block.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の原理を模式的に示す概略図である。FIG. 1 is a schematic diagram schematically showing the principle of the present invention.

【図2】 本発明の原理を模式的に示す概略図である。FIG. 2 is a schematic diagram schematically showing the principle of the present invention.

【図3】 本発明に係るOSのデータ構成とフラッシュ
メモリのメモリマップとの対応関係を説明するための模
式図である。
FIG. 3 is a schematic diagram for explaining a correspondence relationship between a data configuration of an OS according to the present invention and a memory map of a flash memory.

【図4】 本発明に係るフラッシュメモリのデータ構成
の一例を示す模式図である。
FIG. 4 is a schematic diagram showing an example of a data configuration of a flash memory according to the present invention.

【図5】 本発明に係るOSのデータ構成の一例を示す
模式図である。
FIG. 5 is a schematic diagram illustrating an example of a data configuration of an OS according to the present invention.

【図6】 フラッシュメモリにOSを書き込むためのP
Cシステムの実施の形態1の構成を示す外観図である。
FIG. 6 shows a P for writing an OS to the flash memory.
1 is an external view illustrating a configuration of a first embodiment of a C system.

【図7】 そのOSの書き込み処理を行うシステムの構
成を示すブロック図である。
FIG. 7 is a block diagram illustrating a configuration of a system that performs a writing process of the OS.

【図8】 実施の形態1のフラッシュメモリのデータ構
成を示す模式図である。
FIG. 8 is a schematic diagram illustrating a data configuration of the flash memory according to the first embodiment;

【図9】 実施の形態1のOSデータのデータ構成を示
す模式図である。
FIG. 9 is a schematic diagram illustrating a data configuration of OS data according to the first embodiment;

【図10】 実施の形態1によるOSデータの更新処理
の流れを示すフローチャートである。
FIG. 10 is a flowchart illustrating a flow of an OS data update process according to the first embodiment;

【図11】 フラッシュメモリに対してデータの書き込
み処理およびメモリブロックの消去処理を行う方法を説
明するための模式図である。
FIG. 11 is a schematic diagram for explaining a method of performing a data write process and a memory block erase process on a flash memory.

【図12】 フラッシュメモリに対してデータの書き込
み処理およびメモリブロックの消去処理を行う方法を説
明するための模式図である。
FIG. 12 is a schematic diagram for explaining a method of performing a data write process and a memory block erase process on a flash memory.

【図13】 実施の形態2によりフラッシュメモリに対
してOSの書き込み処理を行うシステムの構成を示すブ
ロック図である。
FIG. 13 is a block diagram illustrating a configuration of a system that performs an OS write process on a flash memory according to a second embodiment;

【図14】 実施の形態2によるOSデータの更新処理
の流れを示すフローチャートである。
FIG. 14 is a flowchart illustrating a flow of an OS data update process according to the second embodiment;

【図15】 PCシステムのネットワークを利用した場
合の構成例を示す外観図である。
FIG. 15 is an external view showing a configuration example when a network of a PC system is used.

【図16】 バージョンの整合性を調べるように構成さ
れたOSインストールソフトウェア内のバージョン管理
テーブルの一例を示す図表である。
FIG. 16 is a table showing an example of a version management table in OS installation software configured to check version consistency.

【図17】 バージョンの整合性を調べるように構成さ
れたOSインストールソフトウェアの処理手順を示すフ
ローチャートである。
FIG. 17 is a flowchart illustrating a processing procedure of OS installation software configured to check version consistency;

【図18】 バージョンの整合性を調べる場合の更新対
象ユニットの処理手順を示すフローチャートである。
FIG. 18 is a flowchart illustrating a processing procedure of an update target unit when checking version consistency.

【図19】 フラッシュメモリにOSを書き込むための
従来のPCシステムの構成を示す外観図である。
FIG. 19 is an external view showing a configuration of a conventional PC system for writing an OS in a flash memory.

【図20】 そのOS書き込み処理を行うシステムの構
成を示すブロック図である。
FIG. 20 is a block diagram illustrating a configuration of a system that performs the OS writing process.

【図21】 OSのデータ構成とそれを記憶したフラッ
シュメモリの従来のメモリマップを説明するための模式
図である。
FIG. 21 is a schematic diagram for explaining a data configuration of an OS and a conventional memory map of a flash memory storing the data configuration.

【図22】 OSデータを記憶したフラッシュメモリの
従来のメモリマップを示す模式図である。
FIG. 22 is a schematic diagram showing a conventional memory map of a flash memory storing OS data.

【符号の説明】[Explanation of symbols]

6 パーソナルコンピュータ(記憶媒体、複写手段、消
去手段および書き込み手段を具備するプログラム更新装
置)、51,52,53,54,55 メモリブロック
41,42,43,44,45 プログラムブロッ
ク、722,732 フラッシュメモリ(一括消去およ
び書き込みが可能なROM)。
6. Personal computer (program updating apparatus including storage medium, copying means, erasing means and writing means), 51, 52, 53, 54, 55 memory blocks 41, 42, 43, 44, 45 program blocks, 722, 732 flash Memory (ROM capable of batch erasing and writing).

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに記憶された、複数のプログラムブロックからなる
プログラムデータの一部のプログラムブロックを更新す
る装置であって、 任意にデータの書き込みおよび読み出しが可能な記憶媒
体と、 更新対象とされた旧プログラムブロックの一部または全
部とともに同一のメモリブロック内に格納された、更新
対象以外のプログラムデータを、前記記憶媒体に複写す
る複写手段と、 前記ROM内の、更新対象とされた旧プログラムブロッ
クの一部または全部を少なくとも一部に含むメモリブロ
ックの記憶内容、および前記ROM内の、前記記憶媒体
への複写対象となったプログラムデータを少なくとも一
部に含むメモリブロックの記憶内容を消去する消去手段
と、 新たに前記ROMに書き込むプログラムブロックのデー
タを、前記記憶媒体に記憶された複写データとともに前
記ROMに書き込む書き込み手段と、 を具備することを特徴とするプログラム更新装置。
1. An R comprising a plurality of memory blocks and capable of batch erasing and writing in units of memory blocks.
An apparatus for updating a part of program data of a plurality of program blocks stored in an OM, comprising: a storage medium on which data can be arbitrarily written and read; and an old program block to be updated Copying means for copying program data other than the update target stored in the same memory block together with part or all of the above to the storage medium; and a part of the old program block to be updated in the ROM Or erasing means for erasing the storage content of a memory block including at least a part of all the memory block, and erasing the storage content of a memory block including at least a part of program data to be copied to the storage medium in the ROM, The program block data newly written to the ROM is stored in the storage medium. Writing means for writing the copied data together with the copied data into the ROM.
【請求項2】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに記憶された、複数のプログラムブロックからなる
プログラムデータの一部のプログラムブロックを更新す
る装置であって、 任意にデータの書き込みおよび読み出しが可能な記憶媒
体と、 更新対象とされた旧プログラムブロックよりもデータサ
イズの大きいプログラムブロックの更新により前記RO
M内の格納位置にずれが生じ得る、更新対象以外のプロ
グラムデータを、前記記憶媒体に複写する複写手段と、 前記ROM内の、更新対象とされた旧プログラムブロッ
クの一部または全部を少なくとも一部に含むメモリブロ
ックの記憶内容、および前記ROM内の、前記記憶媒体
への複写対象となったプログラムデータを少なくとも一
部に含むメモリブロックの記憶内容を消去する消去手段
と、 新たに前記ROMに書き込むプログラムブロックのデー
タを、前記記憶媒体に記憶された複写データとともに前
記ROMに書き込む書き込み手段と、 を具備することを特徴とするプログラム更新装置。
2. An R comprising a plurality of memory blocks and capable of batch erasing and writing in units of memory blocks.
An apparatus for updating a part of program data of a plurality of program blocks stored in an OM, comprising: a storage medium on which data can be arbitrarily written and read; and an old program block to be updated By updating a program block with a larger data size than the RO
A copy unit that copies program data other than the update target, which may cause a shift in the storage position in M, to the storage medium; and at least one part or all of the old program block to be updated in the ROM. Erasing means for erasing the storage content of the memory block included in the memory section and the storage content of the memory block at least partially including the program data to be copied to the storage medium in the ROM; Writing means for writing the data of the program block to be written to the ROM together with the copy data stored in the storage medium.
【請求項3】 前記ROMは、前記各プログラムブロッ
クの格納場所の先頭アドレスおよびそれぞれのデータサ
イズを記憶していることを特徴とする請求項1または2
に記載のプログラム更新装置。
3. The ROM according to claim 1, wherein the ROM stores a start address of a storage location of each of the program blocks and a data size of each of the program blocks.
A program updating device according to claim 1.
【請求項4】 前記書き込み手段は、新たに前記ROM
に書き込むプログラムブロックのデータとともに、前記
ROM内における当該データの格納場所の先頭アドレス
およびデータサイズを書き込むことを特徴とする請求項
3に記載のプログラム更新装置。
4. The ROM according to claim 4, wherein the writing unit newly stores the ROM.
4. The program updating apparatus according to claim 3, wherein a start address and a data size of a storage location of the data in the ROM are written together with data of a program block to be written in the ROM.
【請求項5】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに対して、複数のプログラムブロックからなるプロ
グラムデータの書き込みを行う装置であって、 各プログラムブロックのデータとともに、前記ROM内
における前記各データの格納場所の先頭アドレスおよび
データサイズを書き込むことを特徴とするプログラム更
新装置。
5. An R comprising a plurality of memory blocks and capable of batch erasing and writing in units of memory blocks.
An apparatus for writing program data including a plurality of program blocks to an OM, comprising writing a start address and a data size of a storage location of each of the data in the ROM along with data of each of the program blocks. Program updating device.
【請求項6】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに記憶された、複数のプログラムブロックからなる
プログラムデータの一部のプログラムブロックを更新す
るにあたって、 更新対象とされた旧プログラムブロックの一部または全
部とともに同一のメモリブロック内に格納された、更新
対象以外のプログラムデータを、任意にデータの書き込
みおよび読み出しが可能な記憶媒体に複写する複写工程
と、 前記ROM内の、更新対象とされた旧プログラムブロッ
クの一部または全部を少なくとも一部に含むメモリブロ
ックの記憶内容、および前記ROM内の、前記記憶媒体
への複写対象となったプログラムデータを少なくとも一
部に含むメモリブロックの記憶内容を消去する消去工程
と、 新たに前記ROMに書き込むプログラムブロックのデー
タを、前記記憶媒体に記憶された複写データとともに前
記ROMに書き込む書き込み工程と、 を含むことを特徴とするプログラム更新方法。
6. An R comprising a plurality of memory blocks and capable of collectively erasing and writing in units of memory blocks.
When updating some program blocks of the program data composed of a plurality of program blocks stored in the OM, the update stored in the same memory block together with some or all of the old program blocks to be updated A copying step of copying program data other than the target to a storage medium on which data can be arbitrarily written and read; and at least a part or all of the old program block to be updated in the ROM An erasing step of erasing the storage contents of the memory block and the storage contents of the memory block at least partially including the program data to be copied to the storage medium in the ROM; and a program block to be newly written to the ROM. And the copy data stored in the storage medium. Program update method characterized by including: a writing step of writing to said ROM also.
【請求項7】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに記憶された、複数のプログラムブロックからなる
プログラムデータの一部のプログラムブロックを更新す
るにあたって、 更新対象とされた旧プログラムブロックよりもデータサ
イズの大きいプログラムブロックの更新により前記RO
M内の格納位置にずれが生じ得る、更新対象以外のプロ
グラムデータを、任意にデータの書き込みおよび読み出
しが可能な記憶媒体に複写する複写工程と、 前記ROM内の、更新対象とされた旧プログラムブロッ
クの一部または全部を少なくとも一部に含むメモリブロ
ックの記憶内容、および前記ROM内の、前記記憶媒体
への複写対象となったプログラムデータを少なくとも一
部に含むメモリブロックの記憶内容を消去する消去工程
と、 新たに前記ROMに書き込むプログラムブロックのデー
タを、前記記憶媒体に記憶された複写データとともに前
記ROMに書き込む書き込み工程と、 を含むことを特徴とするプログラム更新方法。
7. An R comprising a plurality of memory blocks and capable of batch erasing and writing in units of memory blocks.
When updating a part of program data of a plurality of program blocks stored in the OM, the program block having a larger data size than the old program block to be updated is updated by updating the RO.
A copy step of copying program data other than the update target, which may cause a shift in the storage position in M, to a storage medium that can arbitrarily write and read the data, and an old program to be updated in the ROM Erasing the storage contents of the memory block including at least a part or all of the block and the storage contents of the memory block including at least a part of the program data to be copied to the storage medium in the ROM A program updating method, comprising: an erasing step; and a writing step of writing data of a program block newly written in the ROM to the ROM together with copy data stored in the storage medium.
【請求項8】 複数のメモリブロックからなり、かつメ
モリブロック単位で一括消去および書き込みが可能なR
OMに対して、複数のプログラムブロックからなるプロ
グラムデータの書き込みを行うにあたって、 各プログラムブロックのデータとともに、前記ROM内
における前記各データの格納場所の先頭アドレスおよび
データサイズを書き込む工程を含むことを特徴とするプ
ログラム更新方法。
8. An R comprising a plurality of memory blocks and capable of batch erasing and writing in units of memory blocks.
When writing program data composed of a plurality of program blocks to the OM, the method includes a step of writing, together with the data of each program block, a start address and a data size of a storage location of each data in the ROM. How to update the program.
JP04714199A 1999-02-24 1999-02-24 Program update apparatus and program update method Expired - Lifetime JP3649932B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04714199A JP3649932B2 (en) 1999-02-24 1999-02-24 Program update apparatus and program update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04714199A JP3649932B2 (en) 1999-02-24 1999-02-24 Program update apparatus and program update method

Publications (2)

Publication Number Publication Date
JP2000242487A true JP2000242487A (en) 2000-09-08
JP3649932B2 JP3649932B2 (en) 2005-05-18

Family

ID=12766844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04714199A Expired - Lifetime JP3649932B2 (en) 1999-02-24 1999-02-24 Program update apparatus and program update method

Country Status (1)

Country Link
JP (1) JP3649932B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002149430A (en) * 2000-11-07 2002-05-24 Matsushita Electric Ind Co Ltd Method for updating program of digital broadcasting receiver
JP2002297390A (en) * 2001-03-30 2002-10-11 Matsushita Electric Ind Co Ltd Information processor, center device, terminal equipment and remote program down loading system
JP2009510544A (en) * 2005-06-30 2009-03-12 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Decompression technology for generating software images
KR100947727B1 (en) * 2003-01-21 2010-03-16 엘지전자 주식회사 Rom image composing and updating method for flash memory
JP2013218388A (en) * 2012-04-05 2013-10-24 Sharp Corp Program update device, method, program, and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002149430A (en) * 2000-11-07 2002-05-24 Matsushita Electric Ind Co Ltd Method for updating program of digital broadcasting receiver
JP2002297390A (en) * 2001-03-30 2002-10-11 Matsushita Electric Ind Co Ltd Information processor, center device, terminal equipment and remote program down loading system
KR100947727B1 (en) * 2003-01-21 2010-03-16 엘지전자 주식회사 Rom image composing and updating method for flash memory
JP2009510544A (en) * 2005-06-30 2009-03-12 アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド Decompression technology for generating software images
JP2013218388A (en) * 2012-04-05 2013-10-24 Sharp Corp Program update device, method, program, and recording medium

Also Published As

Publication number Publication date
JP3649932B2 (en) 2005-05-18

Similar Documents

Publication Publication Date Title
US6795912B1 (en) Method for controlling computer, computer, and storage medium
US6594723B1 (en) Method and apparatus for updating data in nonvolatile memory
TW454147B (en) Recoverable software installation process and apparatus for a computer system
US6480932B1 (en) Computer system having a host computer coupled to a disk drive with a drive-selected-application partition for storing data for execution by the host computer in response to drive-determined conditions
JP3509285B2 (en) Compressed data management method
CN100458699C (en) Method and system for updating fastener
JP2000148465A (en) Firmware changing method
JP2003316595A (en) Installation method, file updating method, its program and computer system
US20040015941A1 (en) Information-processing apparatus equipped with nonvolatile memory device and firmware-updating method for use in the apparatus
EP1035472A2 (en) Loading configuration data
JP2002526828A (en) Protecting boot block code when allowing write access to the boot block
JP4527348B2 (en) Interface device, method of updating firmware in interface device, and program thereof
US20180095693A1 (en) Information processing apparatus, information processing system, and method for controlling information processing apparatus
JP5126686B2 (en) Information processing apparatus, operation method of information processing apparatus, and program thereof
JPH09282103A (en) Information processor
JP3649932B2 (en) Program update apparatus and program update method
TWI493341B (en) Memory storage device and repairing method thereof
CN108664275A (en) Method, system and the storage medium of backup configuration parameter
JP2002366501A (en) Peripheral device, computer system and installer program
JP3448407B2 (en) File control unit support system
CN112732309B (en) Flash memory updating method and device and electronic equipment
JP5161989B2 (en) Information recording apparatus, information recording method, and information recording program
JP2935312B2 (en) Software implementation method
JP2024015747A (en) Information processing device, bios log management program and bios log management method
JP4575112B2 (en) Firmware rewriting method, disk drive device, and information processing system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050216

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080225

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090225

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100225

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120225

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130225

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140225

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term