JP2003067212A - Memory rewriting control system and memory rewriting method thereof - Google Patents

Memory rewriting control system and memory rewriting method thereof

Info

Publication number
JP2003067212A
JP2003067212A JP2001255899A JP2001255899A JP2003067212A JP 2003067212 A JP2003067212 A JP 2003067212A JP 2001255899 A JP2001255899 A JP 2001255899A JP 2001255899 A JP2001255899 A JP 2001255899A JP 2003067212 A JP2003067212 A JP 2003067212A
Authority
JP
Japan
Prior art keywords
rewriting
rom
program
communication
data transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001255899A
Other languages
Japanese (ja)
Inventor
Akiko Sugano
明子 菅野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2001255899A priority Critical patent/JP2003067212A/en
Publication of JP2003067212A publication Critical patent/JP2003067212A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a memory rewriting control system and the control method capable of notifying the outside about the completion of rewriting even not provided with an exclusive region for holding and saving a communication program in a device wherein a communication program used in a communication with a data transmitting party is installed in a ROM to be rewritten and only a rewriting program is installed in other ROM. SOLUTION: In a device wherein a communication program used in a communicating with a data transmitting party is installed in the ROM to be rewritten and only a rewriting program is installed in other ROM, completion of rewriting is notified to the data transferring party by starting to operate an interface communication line connected to the data transferring party after completing the rewriting, while the transferring party performs recovery of a communication by recognizing that rewriting to the ROM is completed when the above operation by a signal is detected.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、書換可能な不揮発
性メモリ(フラッシュROM等)に、ファームウェアを
搭載し、通信によって、ROMの内容を受信し、この受
信した内容を書き換えることによって、バージョンアッ
プを行う機器のメモリ書換制御システムおよびその制御
方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention has a rewritable non-volatile memory (flash ROM or the like) equipped with firmware, receives the contents of the ROM by communication, and rewrites the received contents to upgrade the version. The present invention relates to a memory rewriting control system for a device that performs the above and a control method thereof.

【0002】[0002]

【従来の技術】従来、書換可能な不揮発性メモリである
ROMを用いた機器において、上記ROMを書き換え
て、ファームウェアをバージョンアップする場合、次の
(1)、(2)、(3)の方法で、ファームウェアのバ
ージョンアップを実行している。
2. Description of the Related Art Conventionally, in a device using a ROM which is a rewritable non-volatile memory, when the ROM is rewritten to update the firmware, the following methods (1), (2) and (3) are used. Then, the firmware version is being updated.

【0003】(1)データ転送元との間で通信する通信
プログラムと、ROM書換プログラムとを、書き換える
べきROM以外のメモリに搭載し、上記通信プログラム
を実行し、上記転送元からデータを受け取り、上記RO
Mの内容を変更する。
(1) A communication program for communicating with a data transfer source and a ROM rewriting program are installed in a memory other than the ROM to be rewritten, the communication program is executed, data is received from the transfer source, RO above
Change the contents of M.

【0004】(2)データ転送元との間で通信する通信
プログラムと、ROM書換プログラムとを、書き換える
べきROM自身に搭載し、ROMを書き換える場合、上
記通信プログラムを実行し、ROM書換プログラムを、
ROM以外のメモリに転送してから、実行し、外部から
のデータを受け取り、ROMの内容を変更する。
(2) The communication program for communicating with the data transfer source and the ROM rewriting program are installed in the ROM itself to be rewritten, and when rewriting the ROM, the communication program is executed to execute the ROM rewriting program.
Transfers to a memory other than ROM, executes it, receives data from the outside, and changes the contents of ROM.

【0005】(3)データ転送元との間で通信する通信
プログラムを、書き換えるべきROM自身に搭載し、R
OM書換制御プログラムのみを、他のメモリに搭載す
る。そして、ROMを書き換える場合、書き換えるべき
ROMに搭載されている通信プログラムを実行し、RO
Mデータを受け取ってから、ROM書換制御プログラム
を実行し、ROM内容を変更する。
(3) A communication program for communicating with the data transfer source is mounted on the ROM itself to be rewritten, and R
Only the OM rewrite control program is installed in another memory. When rewriting the ROM, the communication program installed in the ROM to be rewritten is executed to
After receiving the M data, the ROM rewrite control program is executed to change the ROM contents.

【0006】上記従来例(1)、(2)では、通信を行
うプログラムを搭載するために、比較的容量の大きい専
用のメモリ領域を必要とするので、上記従来例(3)を
実行することによって、ハードウェア資源を節約してい
る。
In the above-mentioned conventional examples (1) and (2), since a dedicated memory area having a relatively large capacity is required to install a program for communication, the above-mentioned conventional example (3) should be executed. Saves hardware resources.

【0007】[0007]

【発明が解決しようとする課題】しかし、上記従来例
(3)では、転送が終了し、ROMの書換を開始する
と、データ転送元と通信することができない。したがっ
て、書換が終了したことを、外部に通知することができ
ないという問題がある。
However, in the above-mentioned conventional example (3), when the transfer is completed and the rewriting of the ROM is started, it is impossible to communicate with the data transfer source. Therefore, there is a problem that it is not possible to notify the outside that the rewriting is completed.

【0008】この場合、書き換え中に、ユーザが電源を
切ると、ROM内容が壊れ、復旧できなくなるので、何
らかの方法で、書換終了を外部に通知する必要がある。
In this case, if the user turns off the power during rewriting, the contents of the ROM are damaged and cannot be restored. Therefore, it is necessary to notify the end of rewriting to the outside by some method.

【0009】本発明は、データ転送元との通信プログラ
ムを、書換対象ROMに搭載し、書換用プログラムのみ
を、他のROMに搭載している機器において、通信プロ
グラムを保持したり退避したりする専用の領域を持たな
くても、書き換え終了を外部に通知できるメモリ書換制
御システムおよびその制御方法を提供することを目的と
するものである。
According to the present invention, a communication program for communicating with a data transfer source is installed in a rewriting target ROM, and only a rewriting program is installed in another ROM, and the communication program is held or saved. It is an object of the present invention to provide a memory rewrite control system and a control method therefor that can notify the end of rewriting to the outside without having a dedicated area.

【0010】[0010]

【課題を解決するための手段】本発明は、データ転送元
との通信プログラムを、書換対象ROMに搭載し、書換
用プログラムのみを、他のROMに搭載している機器に
おいて、書換終了後に、データ転送元との間に接続され
ているインタフェース通信線を動作させることによっ
て、書換終了を上記データ転送元に通知し、転送元で
は、上記信号動作を検知すると、ROM書換が終了した
ものとして通信の復帰を行う装置である。
According to the present invention, in a device in which a communication program with a data transfer source is installed in a rewriting target ROM and only a rewriting program is installed in another ROM, after rewriting, By activating the interface communication line connected to the data transfer source, the data transfer source is notified of the end of rewriting, and when the transfer source detects the signal operation, the ROM rewriting is regarded as completed. It is a device for restoring the

【0011】[0011]

【発明の実施の形態および実施例】[第1の実施例]図
1は、本発明の第1の実施例であるメモリ書換制御シス
テムCS1を搭載した装置のブロック図を示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] FIG. 1 is a block diagram of an apparatus equipped with a memory rewriting control system CS1 according to a first embodiment of the present invention.

【0012】メモリ書換制御システムCS1は、書換を
行うROM12を搭載しているボード10と、書き換え
るデータを、ボード10に転送する本体装置20とを有
する。
The memory rewrite control system CS1 has a board 10 having a ROM 12 for rewriting, and a main body device 20 for transferring rewriting data to the board 10.

【0013】つまり、メモリ書換制御システムCS1
は、ファームウェアの更新を行うボード10と、更新用
のプログラムをボード10に転送する本体装置20と、
ユーザがファームウェア更新を制御するためのソフトウ
ェアを搭載しているパーソナルコンピュータ30とを有
する。
That is, the memory rewrite control system CS1
Is a board 10 that updates the firmware, a main body device 20 that transfers the update program to the board 10,
A personal computer 30 equipped with software for the user to control the firmware update.

【0014】ボード10は、ボードの動作制御を行うC
PU11と、ROM12と、フラッシュROM13と、
RAM14と、インタフェース部15とを有する。
The board 10 is a C for controlling the operation of the board.
PU11, ROM12, flash ROM13,
It has a RAM 14 and an interface unit 15.

【0015】ROM12、フラッシュROM13のどち
らも、CPU11を動作させるプログラムを格納してい
る。フラッシュROM13は、書換可能である。
Both the ROM 12 and the flash ROM 13 store programs for operating the CPU 11. The flash ROM 13 is rewritable.

【0016】RAM14は、ROM12、フラッシュR
OM13に格納されているプログラムを、CPU11が
実行するメモリ領域である。
The RAM 14 includes a ROM 12 and a flash R.
This is a memory area in which the CPU 11 executes the programs stored in the OM 13.

【0017】インタフェース部15は、本体装置20と
の通信を行うインタフェース部であり、上記実施例で
は、IEEE1284インタフェースを使用し、コマン
ドやデータを転送する。
The interface unit 15 is an interface unit for communicating with the main body device 20, and in the above embodiment, it uses the IEEE1284 interface to transfer commands and data.

【0018】図2は、上記実施例における本体装置20
とボード10との間における通信に使われるIEEE1
284インタフェースの信号線動作の一例を示す図であ
る。
FIG. 2 shows the main unit 20 in the above embodiment.
IEEE1 used for communication between the board and the board 10
It is a figure which shows an example of the signal line operation | movement of 284 interface.

【0019】ここで、本体装置20が、IEEE128
4のホストとして動作し、ボード10側が、ペリフェラ
ルとしてECPモードで動作する。この基本動作は、I
EEE1284の規格であるので、その説明を省略する
が、上記実施例で実行する部分の信号動作は、以下の動
作である。
Here, the main unit 20 is an IEEE128
4 operates as a host, and the board 10 side operates as a peripheral in the ECP mode. This basic operation is I
Since the standard is EEE1284, its description is omitted, but the signal operation of the part executed in the above-described embodiment is the following operation.

【0020】まず、初期化(COMPATIBLE)に
ついて説明する。
First, the initialization (COMPABLE) will be described.

【0021】お互いにリセットした状態から開始し、本
体装置20からネゴシエーションを行い、ボード10が
これに応答し、これによって、双方向モードで通信する
ことができる。リセット状態では、ボード10が出力す
るSelect信号は、Lowになり、本体装置20か
らのネゴシエーションが来た時点で、Highに変化す
る。このHigh状態は、ECPモードで通信が続いて
いる限り、Lowになることはない。
Starting from a state where they are reset to each other, negotiation is performed from the main body device 20, and the board 10 responds to this, whereby communication can be performed in the bidirectional mode. In the reset state, the Select signal output by the board 10 becomes Low, and changes to High when the negotiation from the main body device 20 comes. This High state does not become Low as long as communication is continued in the ECP mode.

【0022】次に、本体装置20からボード10への通
信(ECP Forward)について説明する。
Next, communication (ECP Forward) from the main unit 20 to the board 10 will be described.

【0023】ネゴシエーションが終了すると、通常は、
本体装置20からボード10への通信モードになり、本
体装置20からのデータを、ボード10に転送すること
ができる。
When the negotiation is completed, normally,
The communication mode from the main body device 20 to the board 10 is set, and the data from the main body device 20 can be transferred to the board 10.

【0024】次に、ボード10から本体装置20への通
信(ECP reverse)について説明する。
Next, communication (ECP reverse) from the board 10 to the main body device 20 will be described.

【0025】ボード10からのデータを、本体装置20
に転送する場合、ボード10は、nFault信号を、
Lowに変化させ、本体装置20への方向変換要求を行
う。
The data from the board 10 is transferred to the main unit 20.
Board 10, the board 10 sends the nFault signal to
It is changed to Low and a direction change request to the main body device 20 is issued.

【0026】本体装置20側では、nFaultがLo
wになったことを検出すると、nInitをLowに変
化させ、通信方向を切り替え、ボード10は、nIni
tの変化を検出し、データの転送を開始する。転送が終
了すると、ボード10は、nFaultをHighに戻
し、nFaultがHighに戻されたことを、本体装
置20が検出し、nInitをHighに戻すととも
に、通信方向を、本体装置20からボード10の向きに
戻す。以後、お互いに通信するデータがない場合は、図
2中、event33のForward Idle状態
で、信号が停止する。
On the main unit 20 side, nFault is Lo
When it detects that it has become w, it changes nInit to Low, switches the communication direction, and the board 10
A change in t is detected and data transfer is started. When the transfer is completed, the board 10 returns nFault to High, the main unit 20 detects that nFault has been returned to High, and returns nInit to High, and the communication direction is changed from the main unit 20 to that of the board 10. Turn it back. Thereafter, when there is no data to communicate with each other, the signal is stopped in the Forward Idle state of the event 33 in FIG.

【0027】データ転送を終了した後に、Forwar
d Idle状態を保持したまま、ボード10のフラッ
シュROM13を書き換え、ボード10の初期化によっ
て、一旦、Select信号をLowにし、これによっ
て、ROM書換終了を本体装置20に示す。
After the data transfer is completed, Forward
The flash ROM 13 of the board 10 is rewritten while the d Idle state is held, and the Select signal is once set to Low by the initialization of the board 10, thereby indicating to the main body device 20 that the ROM rewriting is completed.

【0028】図3は、上記実施例において、ボード10
のファームウェアをバージョンアップするときに、本体
装置20とボード10との間における通信シーケンスの
一例を示す図である。
FIG. 3 shows the board 10 in the above embodiment.
It is a figure which shows an example of the communication sequence between the main body apparatus 20 and the board 10 when upgrading the firmware of.

【0029】まず、ボード10のフラッシュROM13
に、今回書き込む予定のデータを、PC30から本体装
置20に転送し、本体装置20では、受け取ったデータ
を、RAM24に一旦格納する。
First, the flash ROM 13 of the board 10
Then, the data to be written this time is transferred from the PC 30 to the main body device 20, and the main body device 20 temporarily stores the received data in the RAM 24.

【0030】次に、IEEE1284を介して、本体装
置20がボード10と通信し、ダウンロード開始要求の
コマンドを送出する。ボード10側では、処理中の作業
等があれば、ダウンロードNGの確認を、本体装置20
に返し、処理中の作業等がなければ、ダウンロードOK
の確認を本体装置20に返す。
Next, the main body device 20 communicates with the board 10 through the IEEE1284, and sends a download start request command. On the board 10 side, if there is work in progress, etc., the confirmation of download NG is confirmed by the main unit 20.
Return to and if there is no work in progress, download is OK
Is returned to the main body device 20.

【0031】図4は、上記実施例において、フラッシュ
ROM13のメモリマップを示す図である。
FIG. 4 is a diagram showing a memory map of the flash ROM 13 in the above embodiment.

【0032】図5は、上記実施例において、ボード10
におけるダウンロード制御動作を示すフローチャートで
ある。
FIG. 5 shows the board 10 in the above embodiment.
5 is a flowchart showing a download control operation in FIG.

【0033】図6は、同じ動作の本体装置20における
ダウンロード制御動作を示すフローチャートである。
FIG. 6 is a flowchart showing the download control operation in the main body device 20 having the same operation.

【0034】ここで、図4に示すように、これらのコマ
ンド、レスポンスの制御、IEEE1284のドライバ
等は、ROM13に格納されている。ROM12には、
リセット時に最初に起動するブートプログラムと、フラ
ッシュROM13の書換制御プログラムとが格納されて
いる。ROM13には、その他のプログラムが格納さ
れ、つまり、本体装置20との通信プログラムを含むボ
ード10機能を実行するプログラムが、ROM13に格
納される。
Here, as shown in FIG. 4, the control of these commands and responses, the driver of IEEE1284, etc. are stored in the ROM 13. In ROM12,
A boot program that is first activated at reset and a rewrite control program for the flash ROM 13 are stored. Other programs are stored in the ROM 13, that is, the programs that execute the functions of the board 10 including the communication program with the main body device 20 are stored in the ROM 13.

【0035】以下、ボード10から見た動作を説明す
る。なお、本体装置20においてボード10に対応する
動作を行う。
The operation viewed from the board 10 will be described below. The main body device 20 performs an operation corresponding to the board 10.

【0036】ボード10が本体装置20からダウンロー
ド開始要求コマンドを受信し(S1、S23)、そのと
きにダウンロードが可能である場合、ダウンロード開始
確認OKのレスポンスを本体装置20に返し(S3、S
24)、データ転送に入る。ボード10からダウンロー
ド通知コマンドで転送するデータブロックの相対アドレ
スを通知し(S5、S27)、本体装置20から、受け
取ったアドレスに応じたブロックのデータをダウンロー
ド応答レスポンスと共に受信する(S6、S29)。受
信したデータはチェックサム加算されてRAM14に格
納される(S8)。
When the board 10 receives the download start request command from the main body device 20 (S1, S23) and the download is possible at that time, a response to the download start confirmation OK is returned to the main body device 20 (S3, S23).
24) The data transfer starts. The board 10 notifies the relative address of the data block to be transferred by the download notification command (S5, S27), and receives the data of the block corresponding to the received address together with the download response response from the main body device 20 (S6, S29). The received data is added with the checksum and stored in the RAM 14 (S8).

【0037】本体装置20側がデータを全て転送する
と、最後に、データサイズ=0のデータを転送し(S3
0)、これを受け取ったボード10は(S7)、データ
受け取り完了と見なし、受け取った全データをチェック
サムするとともに、ダウンロード終了通知コマンドを、
本体装置20に送出する(S9、S31)。
When the main device 20 has transferred all the data, finally, the data of data size = 0 is transferred (S3
0), the board 10 that has received this (S7) considers that the data reception has been completed, checks all the received data, and sends a download end notification command.
It is sent to the main body device 20 (S9, S31).

【0038】ボード10では、データ転送プログラムを
含むプログラムの実行を全て終了し、つまり、フラッシ
ュROM13に格納されているプログラムの実行を全て
終了し(S9)、ROM12に格納されたROM書換プ
ログラムの実行を開始する(S10)。これ以降、本体
装置20とボード10との間の通信プログラムと、ボー
ド10のフラッシュROM13に格納されたプログラム
とを、使用することができない。
On the board 10, execution of all programs including the data transfer program is completed, that is, execution of all programs stored in the flash ROM 13 is completed (S9), and execution of the ROM rewriting program stored in the ROM 12 is completed. Is started (S10). After that, the communication program between the main body device 20 and the board 10 and the program stored in the flash ROM 13 of the board 10 cannot be used.

【0039】フラッシュROM13の書換が無事終了し
たら(S11)、ボード10が再起動し、書換後のフラ
ッシュROM13に格納された初期化プログラムを実行
する(S12)。このときに、IEEE1284も初期
化され、それまでForward Idle状態で止ま
っていたが、一旦リセット状態になり、Select信
号がLowに変化する。
When the rewriting of the flash ROM 13 is completed successfully (S11), the board 10 is restarted and the initialization program stored in the rewritten flash ROM 13 is executed (S12). At this time, the IEEE1284 is also initialized and has been stopped in the Forward Idle state until then, but once it is reset, the Select signal changes to Low.

【0040】図7は、本体装置20のメモリマップを示
す図である。
FIG. 7 is a diagram showing a memory map of the main body device 20.

【0041】この例では、ボード10と同様に、ブート
部分を、別のROM22が持っているが、ROM22以
外の部分に、ブート部分を持つようにしてもよい。
In this example, as in the case of the board 10, another ROM 22 has a boot portion, but a portion other than the ROM 22 may have a boot portion.

【0042】本体装置20では、ダウンロード終了通知
コマンドを受け取った(S31)後に、ボード10の通
信を行わないようにし(IEEE1284がForwa
rdIdle状態を保つようにし)、図8の本体装置2
0のRAM24メモリマップに示すようにRAM領域に
定義した書換待ちフラグをONにし、ボード10のRO
Mを書き換え中であるので、電源オフをしない旨を、操
作/表示部26に表示する(S32)。
In the main body device 20, after the download end notification command is received (S31), the communication of the board 10 is stopped (IEEE1284 is Forward
rdIdle state) and the main unit 2 of FIG.
As shown in the RAM 24 memory map of 0, the rewriting wait flag defined in the RAM area is turned on, and the RO of the board 10
Since M is being rewritten, the fact that the power is not turned off is displayed on the operation / display unit 26 (S32).

【0043】書換待ちフラグがONであり、しかも、S
elect信号がLowに変化したことを検出すると
(S33)、本体装置20では、ボード10がROM書
換を終了したものとして、ダウンロードプロセス終了
を、PC30に通知し、これと同時に、操作/表示部2
6を、通常の待機状態に復帰させる(S35)。所定の
時間、待っても、信号が動かなければ(S34)、書換
が正常に終了しなかったものとみなし、エラー信号を返
信する。
The rewriting wait flag is ON, and S
When detecting that the select signal has changed to Low (S33), the main body device 20 notifies the PC 30 of the end of the download process, assuming that the board 10 has completed the ROM rewriting, and at the same time, the operation / display unit 2
6 is returned to the normal standby state (S35). If the signal does not move even after waiting for a predetermined time (S34), it is considered that the rewriting is not normally completed, and an error signal is returned.

【0044】上記実施例では、本体装置20は、データ
をPC30から全部受け取ってから、ボード10への転
送を開始しているが、本体装置20のRAMに余裕がな
い場合等、適当な大きさのブロックを、PC30から受
け取る毎に、ボード10に転送するようにしてもよい。
In the above embodiment, the main body device 20 starts to transfer the data to the board 10 after receiving all the data from the PC 30. However, if the RAM of the main body device 20 does not have enough space, an appropriate size is obtained. The block may be transferred to the board 10 each time it is received from the PC 30.

【0045】本体装置20が信号線を検出する場合、C
PU割込みを使ってもよく、また、本体装置20の制御
プログラムで、定期的にポーリングし、状態検出するよ
うにしてもよい。
When the main unit 20 detects a signal line, C
The PU interrupt may be used, or the control program of the main body device 20 may periodically poll to detect the state.

【0046】上記実施例によれば、信号線の変化を検出
することによって、ROM書換の終了を判断するので、
本体装置20とボード10との間における通信に要する
通信プログラムとして、大きいプログラムを格納しなく
ても、ボード10から外部に、ROM書き換え終了を、
確実に通知することができる。
According to the above embodiment, the end of ROM rewriting is judged by detecting the change in the signal line.
As a communication program required for communication between the main body device 20 and the board 10, the ROM rewriting is completed from the board 10 to the outside without storing a large program.
You can be sure to notify.

【0047】[第2の実施例]本発明の第2の実施例
は、ボード10がSelect信号をLowに変化させ
たことを検出した時点で、本体装置20が一旦、通信を
初期化し、書き換え後の通信プログラムを動作させ、R
OMを書き込んだ際の結果ステータス等を、通信によっ
て返し、上記結果ステータス等を見て、本体装置20で
正常終了であるか否かを判断する実施例である。
[Second Embodiment] In the second embodiment of the present invention, at the time when the board 10 detects that the Select signal is changed to Low, the main unit 20 once initializes communication and rewrites. Operate the subsequent communication program, R
This is an embodiment in which the result status etc. when the OM is written is returned by communication and the main body device 20 judges whether or not the main device 20 is normally completed by looking at the result status etc.

【0048】図9は、第2の実施例において、本体装置
20の動作を示すフローチャートである。
FIG. 9 is a flow chart showing the operation of the main body device 20 in the second embodiment.

【0049】図10は、第2の実施例において、ボード
10の動作を示すフローチャートである。
FIG. 10 is a flow chart showing the operation of the board 10 in the second embodiment.

【0050】図11は、第2の実施例において、ボード
10のRAM14におけるメモリマップを示す図であ
る。
FIG. 11 is a diagram showing a memory map in the RAM 14 of the board 10 in the second embodiment.

【0051】図11に示すように、ボード10は、現在
データ書き換え中であるか否かを表わすデータ書換フラ
グを、電源ON/OFFに関らず、RAM14のバック
アップされた領域に設定する。通常時は、データ書換フ
ラグが、OFFに設定されている。
As shown in FIG. 11, the board 10 sets the data rewriting flag indicating whether or not the data is being rewritten at present in the backed up area of the RAM 14 regardless of the power ON / OFF. Normally, the data rewriting flag is set to OFF.

【0052】ボード10は、本体装置20からのデータ
転送が終了した後に(S87、S60)、まだ、ダウン
ロード終了通知コマンドを返さずに、データ書換フラグ
をONにし、フラッシュROM13の書換動作に入る
(S89)。
After the data transfer from the main unit 20 is completed (S87, S60), the board 10 does not return the download end notification command, turns on the data rewriting flag, and enters the rewriting operation of the flash ROM 13 ( S89).

【0053】書換終了後(S90)、フラッシュROM
13の内部データのチェックサムを計算し、この計算さ
れた値を、RAM14に保持してから、ブートプログラ
ムによる起動を行う(S91)。この起動動作によっ
て、第1の実施例と同様に、本体装置20でSelec
t信号の変化を検知し、通信を復活させた後に、ボード
10において、データ書換フラグがONであれば(デー
タ書換直後の起動であれば)(S92)、本体装置20
に保持してあるチェックサム値と、フラッシュROM1
3を書き換えたときにおけるステータスとを、ダウンロ
ード終了通知コマンドのパラメータとして返し、データ
書換フラグをOFFする(S93)。
After rewriting (S90), flash ROM
The checksum of the internal data of 13 is calculated, the calculated value is held in the RAM 14, and then the boot program is activated (S91). By this start-up operation, as in the first embodiment, the main unit 20 is
After the change in the t signal is detected and the communication is restored, if the data rewriting flag is ON in the board 10 (if the data rewriting is started immediately after the data rewriting) (S92), the main unit 20
Checksum value stored in the flash ROM1
The status at the time of rewriting 3 is returned as a parameter of the download end notification command, and the data rewriting flag is turned off (S93).

【0054】本体装置20では、通信復活後に、ダウン
ロード終了通知を受け取り(S74)、チェックサム値
を、データ転送時のチェックサム値と比較し(S7
5)、この比較結果が異なる場合には、異常終了をPC
30に通知し、上記比較結果が同じである場合には、正
常終了をPC30に通知し、操作/表示部26を、通常
状態に復帰し、ダウンロードモードを終了する(S7
6)。
After the communication is restored, the main body device 20 receives the download end notification (S74) and compares the checksum value with the checksum value at the time of data transfer (S7).
5) If this comparison result is different, terminate abnormally with PC
If the comparison result is the same, the normal end is notified to the PC 30, the operation / display unit 26 is returned to the normal state, and the download mode is ended (S7).
6).

【0055】上記のような制御を行うことによって、ボ
ード10でのROM書換が正常に終了したか否かを、よ
り正確にチェックすることができる。
By performing the control as described above, it is possible to more accurately check whether or not the ROM rewriting on the board 10 is normally completed.

【0056】[0056]

【発明の効果】本発明によれば、信号線の変化を検出し
て終了通知とすることによって、本体装置とボードとの
間で通信する大きいプログラムを退避したり、別に持っ
たりすることなく、メモリ書換終了を通知し、電源オフ
等の処理を安全に実行することができるという効果を奏
する。
According to the present invention, by detecting a change in the signal line and issuing an end notification, it is possible to save a large program that communicates between the main body device and the board without having to separately carry it. There is an effect that the completion of memory rewriting is notified and processing such as power-off can be safely executed.

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

【図1】本発明の第1の実施例であるメモリ書換制御シ
ステムCS1を搭載した装置のブロック図を示す。
FIG. 1 is a block diagram of an apparatus equipped with a memory rewrite control system CS1 according to a first embodiment of the present invention.

【図2】本体装置20とボード10との間における通信
に使われるIEEE1284インタフェースの信号線動
作の一例を示す図である。
FIG. 2 is a diagram showing an example of a signal line operation of an IEEE1284 interface used for communication between the main body device 20 and the board 10.

【図3】ボード10のファームウェアをバージョンアッ
プするときに、本体装置20とボード10との間におけ
る通信シーケンスの一例を示す図である。
3 is a diagram showing an example of a communication sequence between the main body device 20 and the board 10 when upgrading the firmware of the board 10. FIG.

【図4】フラッシュROM13のメモリマップを示す図
である。
FIG. 4 is a diagram showing a memory map of a flash ROM 13.

【図5】ボード10におけるダウンロード制御動作を示
すフローチャートである。
5 is a flowchart showing a download control operation on the board 10. FIG.

【図6】本体装置20におけるダウンロード制御動作を
示すフローチャートである。
FIG. 6 is a flowchart showing a download control operation in the main body device 20.

【図7】本体装置20のメモリマップを示す図である。7 is a diagram showing a memory map of the main body device 20. FIG.

【図8】本体装置20のRAM24におけるメモリマッ
プを示す図である。
8 is a diagram showing a memory map in a RAM 24 of the main body device 20. FIG.

【図9】第2の実施例において、本体装置20の動作を
示すフローチャートである。
FIG. 9 is a flowchart showing an operation of the main body device 20 in the second embodiment.

【図10】第2の実施例において、ボード10の動作を
示すフローチャートである。
FIG. 10 is a flowchart showing the operation of the board 10 in the second embodiment.

【図11】第2の実施例において、ボード10のRAM
14におけるメモリマップを示す図である。
FIG. 11 is a RAM of the board 10 in the second embodiment.
It is a figure which shows the memory map in 14.

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

10……ボード、 11……CPU、 12……ROM、 13……フラッシュROM、 14……RAM、 20……本体装置、 21……CPU、 22……ROM、 23……フラッシュROM、 24……RAM、 25……IEEE1284インタフェース部、 26……操作/表示部、 27……PCインタフェース、 30……パーソナルコンピュータ。 10 …… Board, 11 ... CPU, 12 ... ROM, 13 ... Flash ROM, 14 …… RAM, 20 …… Main unit, 21 ... CPU, 22 ... ROM, 23 ... Flash ROM, 24 …… RAM, 25 ... IEEE1284 interface section, 26: Operation / display section, 27 ... PC interface, 30 ... Personal computer.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、上記データ転送元との間に接続さ
れているインタフェース通信線を動作させることによっ
て、上記書換の終了を通知する書換終了通知手段と;上
記データ転送元では、上記インタフェース通信線におけ
る信号動作を検知すると、ROM書換が終了したものと
して、通信を復帰する通信復帰手段と;を有することを
特徴とするメモリ書換制御システム。
1. A rewriting target RO, wherein a communication program for communicating with a data transfer source is installed in a rewriting target ROM.
In a device in which a rewriting program is installed in another ROM that is a ROM other than M, by operating the interface communication line connected to the data transfer source after the rewriting is completed, Rewriting end notifying means for notifying the end of rewriting; and the data transfer source, if the signal operation on the interface communication line is detected, it is determined that the ROM rewriting is finished, and the communication restoring means for returning the communication. Characteristic memory rewrite control system.
【請求項2】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、上記データ転送元との間に接続さ
れているインタフェース通信線を動作させることによっ
て、上記書換の終了を通知する書換終了通知手段を有す
ることを特徴とするメモリ書換制御システムにおける書
換用プログラムを搭載している機器。
2. A rewriting target ROM is mounted with a communication program for communicating with a data transfer source, and the rewriting target RO is provided.
In a device in which a rewriting program is installed in another ROM that is a ROM other than M, by operating the interface communication line connected to the data transfer source after the rewriting is completed, A device equipped with a rewriting program in a memory rewriting control system, which has a rewriting end notifying means for notifying the end of rewriting.
【請求項3】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、書換用プログラムを搭載している
機器との間に接続されているインタフェース通信線にお
ける信号動作を検知すると、ROM書換が終了したもの
として、通信を復帰する通信復帰手段を有することを特
徴とするメモリ書換制御システムにおけるデータ転送元
装置。
3. A rewriting target ROM, wherein a communication program for communicating with a data transfer source is mounted on a rewriting target ROM.
In a device that has a rewriting program installed in another ROM that is a ROM other than M, a signal on the interface communication line connected to the device that has the rewriting program installed after the rewriting is completed. A data transfer source device in a memory rewriting control system, characterized in that it has a communication resuming means for resuming communication, assuming that ROM rewriting is completed when an operation is detected.
【請求項4】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、上記データ転送元との間に接続さ
れているインタフェース通信線を動作させることによっ
て、上記書換の終了を通知する段階と;上記データ転送
元では、上記インタフェース通信線における信号動作を
検知すると、ROM書換が終了したものとして、通信を
復帰する段階と;を有することを特徴とするメモリ書換
制御システムにおけるメモリ書換方法。
4. The rewriting target RO is equipped with a communication program for communicating with a data transfer source in a rewriting target ROM.
In a device in which a rewriting program is installed in another ROM that is a ROM other than M, by operating the interface communication line connected to the data transfer source after the rewriting is completed, Rewriting the end of rewriting; when the data transfer source detects a signal operation on the interface communication line, it is determined that the ROM rewriting is completed, and communication is restored. Memory rewriting method in control system.
【請求項5】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、上記データ転送元との間に接続さ
れているインタフェース通信線を動作させることによっ
て、上記書換の終了を通知することを特徴とするメモリ
書換制御システムにおけるメモリ書換方法。
5. The rewriting target RO is provided with a communication program for communicating with a data transfer source mounted on a rewriting target ROM.
In a device in which a rewriting program is installed in another ROM that is a ROM other than M, by operating the interface communication line connected to the data transfer source after the rewriting is completed, A memory rewriting method in a memory rewriting control system characterized by notifying the end of rewriting.
【請求項6】 データ転送元との間で通信する通信プロ
グラムを、書換対象ROMに搭載し、上記書換対象RO
M以外のROMである他のROMに、書換用プログラム
を搭載している機器において、 書換が終了した後に、書換用プログラムを搭載している
機器との間に接続されているインタフェース通信線にお
ける信号動作を検知すると、ROM書換が終了したもの
として、通信を復帰することを特徴とするメモリ書換制
御システムにおけるメモリ書換方法。
6. A rewriting target RO, wherein a communication program for communicating with a data transfer source is mounted on a rewriting target ROM.
In a device that has a rewriting program installed in another ROM that is a ROM other than M, a signal on the interface communication line connected to the device that has the rewriting program installed after the rewriting is completed. A memory rewriting method in a memory rewriting control system, characterized in that when the operation is detected, the ROM rewriting is considered to be completed and communication is restored.
JP2001255899A 2001-08-27 2001-08-27 Memory rewriting control system and memory rewriting method thereof Pending JP2003067212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001255899A JP2003067212A (en) 2001-08-27 2001-08-27 Memory rewriting control system and memory rewriting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001255899A JP2003067212A (en) 2001-08-27 2001-08-27 Memory rewriting control system and memory rewriting method thereof

Publications (1)

Publication Number Publication Date
JP2003067212A true JP2003067212A (en) 2003-03-07

Family

ID=19083797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001255899A Pending JP2003067212A (en) 2001-08-27 2001-08-27 Memory rewriting control system and memory rewriting method thereof

Country Status (1)

Country Link
JP (1) JP2003067212A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005115920A (en) * 2003-09-16 2005-04-28 Ricoh Co Ltd Electronic device, network apparatus, management method, software update method, management program, software update program, and recording medium
JP2015168185A (en) * 2014-03-07 2015-09-28 セイコーエプソン株式会社 Recording apparatus and recording method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005115920A (en) * 2003-09-16 2005-04-28 Ricoh Co Ltd Electronic device, network apparatus, management method, software update method, management program, software update program, and recording medium
JP4698182B2 (en) * 2003-09-16 2011-06-08 株式会社リコー Electronic device, network device, management method, software update method, management program, software update program, and recording medium
JP2015168185A (en) * 2014-03-07 2015-09-28 セイコーエプソン株式会社 Recording apparatus and recording method

Similar Documents

Publication Publication Date Title
JP4768237B2 (en) Portable electronic device and method for controlling portable electronic device
WO2016202088A1 (en) Bootstrap program upgrade method, embedded device, control device and embedded system
US20040015941A1 (en) Information-processing apparatus equipped with nonvolatile memory device and firmware-updating method for use in the apparatus
WO2006075397A1 (en) Installing method, program, peripheral device and system
EP2799952B1 (en) Information processing system, information processing apparatus and start up control method
CN110908733B (en) Working mode determining method and device, and control method and device
US20080231868A1 (en) Information processing apparatus and driver control method
JP2003067212A (en) Memory rewriting control system and memory rewriting method thereof
JP2003263323A (en) Downloader and download method
US7075518B2 (en) Method for updating a keyboard controller in a notebook computer
JP2001051844A (en) Computer peripheral equipment and firmware updating method
JP2827594B2 (en) Firmware online update method for microprocessor device and update method thereof
JP3856341B2 (en) Interface control method
JPH11232183A (en) Printer control information managing device and recording medium for recording control information management program
JP4265104B2 (en) Information terminal device, system off processing method thereof, and program thereof
JP2002067449A (en) Imaging apparatus having backup means
KR100538204B1 (en) Method for upgrade in a printer
JP2003067088A (en) Memory management system and its control method
JP3815907B2 (en) Energy saving standby image forming apparatus
JP2001209551A (en) Operating system control unit, operating system control method and recording medium
JPH1083358A (en) Program rewriting method and controller provided with program rewriting function
JP2005128615A (en) Information processing apparatus, power saving method for apparatus, power saving program, and recording medium with program recorded thereon
JPH06119262A (en) Computer terminal system
JPH0955853A (en) Picture processor
JP2005078336A (en) Image forming apparatus and program rewriting method for image forming apparatus