JP2005085039A - Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium - Google Patents

Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium Download PDF

Info

Publication number
JP2005085039A
JP2005085039A JP2003317366A JP2003317366A JP2005085039A JP 2005085039 A JP2005085039 A JP 2005085039A JP 2003317366 A JP2003317366 A JP 2003317366A JP 2003317366 A JP2003317366 A JP 2003317366A JP 2005085039 A JP2005085039 A JP 2005085039A
Authority
JP
Japan
Prior art keywords
program
memory
rewriting
firmware
stored
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
JP2003317366A
Other languages
Japanese (ja)
Inventor
Kazutaka Yamamoto
和孝 山本
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2003317366A priority Critical patent/JP2005085039A/en
Publication of JP2005085039A publication Critical patent/JP2005085039A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To certainly execute a rewriting program performing a process for rewriting firmware. <P>SOLUTION: A system controller decides whether receiving a rewriting instruction of the firmware from a host PC in S1, reads the rewriting program stored in a program memory to move it to a buffer memory in S2 when receiving the rewriting instruction, executes the rewriting program on the buffer memory in S3, receives a program of a new master from the host PC to store it into the buffer memory in S4, erases a program area of a master of the program memory to erase the program of the master stored in the program memory in S5, reads the program of the new master stored in the buffer memory to write it into the program memory in S6, and writes a writing completion flag into the program memory in S7. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、記録媒体に対して情報を記録再生するディスク装置等の記録再生装置と記録再生装置のファームウェア書き換え方法とプログラムとコンピュータ読み取り可能な記録媒体とに関する。   The present invention relates to a recording / reproducing apparatus such as a disk apparatus for recording / reproducing information on / from a recording medium, a firmware rewriting method of the recording / reproducing apparatus, a program, and a computer-readable recording medium.

記録再生装置の一例であるディスク装置にはCPUが内蔵されており、そのCPUが実行するプログラムをファームウェア(ファームウェアプログラム)と言う。
最近のディスク装置はファームウェアの規模が大きく製品発売後も改善ファームウェアがリリースされることが珍しくない。これは不具合の修正であったり性能の向上であったり新規仕様の追加であったりする。そのため、多くのディスク装置はファームウェアを更新(アップデート)する手段を用意している。
A disk device, which is an example of a recording / reproducing device, has a built-in CPU, and a program executed by the CPU is called firmware (firmware program).
Recent disk devices have a large firmware scale, and it is not uncommon for improved firmware to be released after the product is released. This may be a bug fix, performance improvement, or the addition of a new specification. Therefore, many disk devices provide means for updating (updating) firmware.

通常、ディスク装置におけるファームウェアは不揮発性メモリに記憶するが、以前はその不揮発性メモリにチップの製造段階でプログラムを入れるマスクロムや、一回だけプログラムを書き込めるワンタイムロムや、紫外線消去によって複数回プログラムを書き込めるEPロムなどを使用していたので、ディスク装置内のファームウェアを簡単に書き換えることができなかった。
しかし、近年フラッシュロムといわれる電気的に消去可能な不揮発性メモリが提供されたことにより、プログラムメモリを記憶する用途だけではなく、デジタルカメラやMP3等の音楽再生装置のデータ記憶用として市場が急拡大し、半導体プロセスの微細化も手伝ってとても安価になったため、そのフラッシュロムを使用することでファームウェアの書き換えが可能になった。
Normally, the firmware in a disk unit is stored in a non-volatile memory. Previously, it was possible to store a program in the non-volatile memory at a chip manufacturing stage, a one-time ROM in which a program can be written only once, or a program multiple times by UV erasure. Since the EP ROM that can write is used, the firmware in the disk device could not be rewritten easily.
However, due to the recent provision of electrically erasable non-volatile memory called flash ROM, the market has been rapidly used not only for storing program memory but also for storing data in music playback devices such as digital cameras and MP3s. Since it was expanded and helped with miniaturization of the semiconductor process, it became very cheap, so it was possible to rewrite the firmware by using the flash ROM.

フラッシュロムはデータを書き込んでいる最中に他のデータを読み出せるものと読み出せないものがある。また、全体を一括消去しなければならないもの、数分割した領域毎に消去するもの、消去せず小さな単位でオーバーライトするものなどいろいろある。
例えば、ファームウェアを記憶するプログラムメモリに、データを書き込んでいる最中に他のデータを読み出せないフラッシュロムまたは全体を一括消去しなければならないフラッシュロムを用いた場合、ファームウェア書き換えを行うための書き換えプログラムをフラッシュロム以外のメモリ上で実行する必要がある。
また、書き換えプログラムをマスクロムに持つこともできるが、メモリの種類が増えコストアップになる。
Some flash ROMs can read other data while data is being written, while others cannot. In addition, there are various types such as those that must be erased collectively, those that are erased in several divided areas, and those that are overwritten in small units without being erased.
For example, if you use Flash ROM that cannot read other data while writing data, or Flash ROM that must erase the entire data in the program memory that stores the firmware, rewriting to perform firmware rewriting The program must be executed on a memory other than Flash ROM.
The rewrite program can also be stored in mass chrome, but the type of memory increases and the cost increases.

通常、CPUはスタックや変数を格納するためのワークメモリを持っている。そのワークメモリは揮発性のメモリで電源を切ると内容が消えてしまうが、ここにプログラムデータを配置すればプログラムメモリと同様にプログラムを実行できる。ただし、ワークメモリの容量は小さいことが多い。
しかし、フラッシュロム以外のメモリ上の書き換えプログラムを、フラッシュロムを消去したりワードデータを書き込む部分だけに限定すればそのプログラムサイズを小さくでき、容量の小さなワークメモリでも実行できる。
Normally, the CPU has a work memory for storing a stack and variables. The work memory is a volatile memory that loses its contents when the power is turned off. If program data is placed here, the program can be executed in the same way as the program memory. However, the capacity of the work memory is often small.
However, if the rewriting program on the memory other than the flash ROM is limited to only the portion where the flash ROM is erased or the word data is written, the program size can be reduced and the program can be executed even with a small work memory.

そこで従来、ファームウェアの実行時にスタックや変数のメモリ領域として使用していたワークメモリ領域にプログラムメモリからファームウェアの書き換えプログラムをコピーして実行するファームウェア書き換え方法があった(例えば、特許文献1,特許文献2参照)。
特開平07−078077号公報 特開2000−207131
Therefore, there has conventionally been a firmware rewriting method in which a firmware rewriting program is copied from a program memory to a work memory area used as a memory area for stacks and variables during execution of the firmware (for example, Patent Document 1, Patent Document) 2).
Japanese Patent Application Laid-Open No. 07-077807 JP 2000-207131 A

しかしながら、上述した従来のファームウェア書き換え方法では、書き換えプログラムがワークメモリへ入り切らなくなった場合に実行できなくなるという問題があった。
近年、プログラムの書き換え用途はユーザによるファームウェアのアップデートでありこれはホストコンピュータに接続された状態で行われる。
工場で専用機を使って行う場合はインタフェースを簡素化できるが、ホストコンピュータのオペレーティングシステムへの応答処理を組み込まなければならない現状では、書き換えプログラムの規模はとても大きなものになっている。
However, the conventional firmware rewriting method described above has a problem in that it cannot be executed when the rewriting program cannot enter the work memory.
In recent years, a program rewrite is a firmware update by a user, which is performed while connected to a host computer.
When using a dedicated machine in the factory, the interface can be simplified, but the scale of the rewriting program is very large at present when the response processing to the operating system of the host computer must be incorporated.

つまり、書き換えプログラムの規模の増大に伴ってスタックや変数に使用するメモリ量が増え、ワークメモリ上に書き換えプログラムを実行するための領域が無くなってしまったのである。
この発明は上記の点に鑑みてなされたものであり、ファームウェアを書き換える処理を行う書き換えプログラムを確実に実行できるようにすることを目的とする。
That is, as the size of the rewrite program increases, the amount of memory used for the stack and variables increases, and there is no longer an area for executing the rewrite program on the work memory.
The present invention has been made in view of the above points, and it is an object of the present invention to reliably execute a rewrite program for performing a process of rewriting firmware.

この発明は上記の目的を達成するため、次の(1)〜(4)の記録再生装置を提供する。
(1)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムとそのファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、上記プログラムメモリに記憶された書き換えプログラムを上記バッファメモリに移動する手段と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段を備えた記録再生装置。
In order to achieve the above object, the present invention provides the following recording / reproducing apparatus (1) to (4).
(1) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information reproduced from the recording medium or the recording medium A buffer memory for temporarily storing information; means for moving the rewrite program stored in the program memory to the buffer memory; and executing a rewrite program stored in the buffer memory to receive a new firmware program from outside The received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, and the new firmware program stored in the buffer memory is deleted. The recording and reproducing apparatus having a means for rewriting the write in firmware program stored in the program memory in the program memory.

(2)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、外部から上記ファームウェアプログラムを書き換える書き換えプログラムを受信し、その受信した書き換えプログラムを上記バッファメモリに記憶する手段と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段を備えた記録再生装置。 (2) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium, and a buffer memory for temporarily storing information recorded on the recording medium or information reproduced from the recording medium Receiving a rewrite program for rewriting the firmware program from outside, storing the received rewrite program in the buffer memory, and executing the rewrite program stored in the buffer memory to receive a new firmware program from the outside The received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, and the new firmware program stored in the buffer memory is updated. It is written in the program memory recording and reproducing apparatus having a means for rewriting the firmware program stored in the program memory.

(3)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムとそのファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、各種の処理の実行時のスタックと変数とを記憶するワークメモリと、上記プログラムメモリに記憶された書き換えプログラムを上記ワークメモリに移動する手段と、上記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段を備えた記録再生装置。 (3) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on the recording medium and a rewriting program for rewriting the firmware program, and information reproduced from the recording medium or the recording medium A buffer memory for temporarily storing information; a work memory for storing stacks and variables at the time of execution of various processes; means for moving a rewrite program stored in the program memory to the work memory; Execute the rewriting program stored in the memory to receive a new firmware program from the outside, store the received new firmware program in the buffer memory, erase the firmware program stored in the program memory, Serial recording reproducing apparatus of the new firmware program stored in the buffer memory comprises means for rewriting the firmware program stored in the program memory is written into the program memory.

(4)上記(1)乃至(3)のいずれかの記録再生装置において、上記書き換えプログラムが正常か否かを判断する手段と、その手段によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる手段を設けた記録再生装置。 (4) In the recording / reproducing apparatus according to any one of the above (1) to (3), means for determining whether or not the rewriting program is normal, and an external rewriting program when the means determines that the rewriting program is abnormal Recording / reproducing apparatus provided with a means for receiving and executing.

また、次の(5)〜(8)の記録再生装置のファームウェア書き換え方法も提供する。
(5)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムとそのファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリを備えた記録再生装置のファームウェア書き換え方法であって、上記プログラムメモリに記憶された書き換えプログラムを上記バッファメモリに移動する工程と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなる記録再生装置のファームウェア書き換え方法。
Also provided is a firmware rewriting method for the following recording / reproducing apparatuses (5) to (8).
(5) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information reproduced from the recording medium or reproduced from the recording medium A method for rewriting a firmware of a recording / reproducing apparatus having a buffer memory for temporarily storing information, the step of moving a rewriting program stored in the program memory to the buffer memory, and a rewriting stored in the buffer memory Execute the program to receive a new firmware program from the outside, store the received new firmware program in the buffer memory, erase the firmware program stored in the program memory, Recording reproducing apparatus firmware rewriting method of the new firmware program stored and a step for rewriting the firmware program stored in the program memory is written in the program memory in Ffamemori.

(6)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリを備えた記録再生装置のファームウェア書き換え方法であって、外部から上記ファームウェアプログラムを書き換える書き換えプログラムを受信し、その受信した書き換えプログラムを上記バッファメモリに記憶する工程と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなる記録再生装置のファームウェア書き換え方法。 (6) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on the recording medium, and a buffer memory for temporarily storing information recorded on the recording medium or information reproduced from the recording medium A method for rewriting a firmware of a recording / reproducing apparatus comprising: a step of receiving a rewrite program for rewriting the firmware program from the outside and storing the received rewrite program in the buffer memory; and a rewrite stored in the buffer memory The program is executed to receive a new firmware program from the outside, the received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, and the buffer is stored. Firmware Rewriting of the recording and reproducing apparatus comprising the new firmware program stored in the memory and a step of rewriting the firmware program stored in the program memory is written into the program memory.

(7)記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムとそのファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、各種の処理の実行時のスタックと変数とを記憶するワークメモリを備えた記録再生装置のファームウェア書き換え方法であって、上記プログラムメモリに記憶された書き換えプログラムを上記ワークメモリに移動する工程と、上記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなる記録再生装置のファームウェア書き換え方法。 (7) A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on the recording medium and a rewriting program for rewriting the firmware program, and information reproduced from the recording medium or the recording medium A method for rewriting a firmware of a recording / reproducing apparatus having a buffer memory for temporarily storing information and a work memory for storing a stack and variables at the time of executing various processes, the rewriting program stored in the program memory Moving the program to the work memory, executing a rewrite program stored in the work memory, receiving a new firmware program from the outside, storing the received new firmware program in the buffer memory, and storing the program A firmware rewriting method for a recording / reproducing apparatus, comprising: erasing a firmware program stored in the memory, writing a new firmware program stored in the buffer memory into the program memory, and rewriting the firmware program stored in the program memory .

(8)上記(5)乃至(7)のいずれかの記録再生装置のファームウェア書き換え方法において、上記書き換えプログラムが正常か否かを判断する工程と、その工程によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる工程を設けた記録再生装置のファームウェア書き換え方法。 (8) In the firmware rewriting method of the recording / reproducing apparatus according to any one of (5) to (7), a step of determining whether or not the rewriting program is normal, and an external process when the step is determined to be abnormal A firmware rewriting method for a recording / reproducing apparatus, comprising a step of receiving and executing an alternative rewriting program.

さらに、次の(9)〜(12)のプログラムも提供する。
(9)コンピュータに、プログラムメモリに記憶された記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに移動する手順と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順を実行させるためのプログラム。
Furthermore, the following programs (9) to (12) are also provided.
(9) A rewriting program for rewriting a firmware program for performing control processing for recording or reproducing information on the recording medium stored in the program memory is temporarily stored in the computer, or information recorded on the recording medium or information reproduced from the recording medium The procedure for moving to the buffer memory to be stored and the rewrite program stored in the buffer memory are executed to receive a new firmware program from the outside, and the received new firmware program is stored in the buffer memory and stored in the program memory. Erase the stored firmware program and rewrite the firmware program stored in the program memory by writing the new firmware program stored in the buffer memory into the program memory. Program for executing the order.

(10)コンピュータに、外部から記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを受信し、その受信した書き換えプログラムを上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに記憶する手順と、上記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記バッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順を実行させるためのプログラム。 (10) A rewrite program for rewriting a firmware program for performing control processing for recording or reproducing information on the recording medium is received from a computer, and the received rewriting program is reproduced from the information recorded on the recording medium or the recording medium A procedure for storing information in a buffer memory for temporarily storing information, a rewriting program stored in the buffer memory is executed, a new firmware program is received from the outside, and the received new firmware program is stored in the buffer memory. Firmware stored in the program memory by erasing the firmware program stored in the program memory and writing a new firmware program stored in the buffer memory to the program memory Program for executing a procedure for rewriting the program.

(11)コンピュータに、プログラムメモリに記憶された記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを各種の処理の実行時のスタックと変数とを記憶するワークメモリに移動する手順と、上記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、その受信した新しいファームウェアプログラムを上記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに記憶し、上記プログラムメモリに記憶されたファームウェアプログラムを消去し、上記バッファメモリに記憶された新しいファームウェアプログラムを上記プログラムメモリに書き込んで上記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順を実行させるためのプログラム。 (11) Move a rewrite program for rewriting a firmware program for performing control processing for recording or reproducing information to / from a recording medium stored in the program memory to a work memory for storing a stack and variables at the time of executing various processes. To execute a rewriting program stored in the work memory, receive a new firmware program from the outside, temporarily record the received new firmware program on the recording medium or information reproduced from the recording medium Stored in the buffer memory, erase the firmware program stored in the program memory, write a new firmware program stored in the buffer memory to the program memory, and store it in the program memory. Program for executing a procedure for rewriting the firmware program.

(12)上記(9)乃至(11)のいずれかのプログラムにおいて、上記書き換えプログラムが正常か否かを判断する手順と、その手順によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる手順を実行させるためのプログラム。
さらにまた、次の(13)のコンピュータ読み取り可能な記録媒体も提供する。
(13)上記(5)乃至(11)のいずれかのプログラムを記録したコンピュータ読み取り可能な記録媒体。
(12) In any one of the programs (9) to (11), a procedure for determining whether or not the rewriting program is normal and a replacement rewriting program received from the outside when it is determined that the procedure is abnormal A program to execute the procedure to be executed.
Furthermore, the following (13) computer-readable recording medium is also provided.
(13) A computer-readable recording medium recording the program according to any one of (5) to (11).

この発明による記録再生装置と記録再生装置のファームウェア書き換え方法とプログラムとコンピュータ読み取り可能な記録媒体は、ファームウェアを書き換える処理を行う書き換えプログラムを確実に実行することができる。   The recording / reproducing apparatus, the firmware rewriting method of the recording / reproducing apparatus, the program, and the computer-readable recording medium according to the present invention can reliably execute the rewriting program for performing the process of rewriting the firmware.

以下、この発明を実施するための最良の形態を図面に基づいて具体的に説明する。
図1は、この発明の一実施形態のドライブ装置の構成を示すブロック図である。
このドライブ装置は、DVDドライブ装置等の記録再生装置であり、スピンドルモータ1によって光ディスク19を回転駆動して光ディスク19に対する情報の記録及び再生を行う。スピンドルモータ1は、モータドライバ4とサーボ処理部8によって線速度又は角速度が一定になるように制御される。その線速度又は角速度は段階的に変更が可能である。
Hereinafter, the best mode for carrying out the present invention will be specifically described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a drive apparatus according to an embodiment of the present invention.
This drive apparatus is a recording / reproducing apparatus such as a DVD drive apparatus, and performs recording and reproduction of information with respect to the optical disk 19 by rotationally driving the optical disk 19 by the spindle motor 1. The spindle motor 1 is controlled by the motor driver 4 and the servo processing unit 8 so that the linear velocity or the angular velocity is constant. The linear velocity or angular velocity can be changed in stages.

光ピックアップ2は、公知なので図示を省略した半導体レーザ,光学系,フォーカスアクチュエータ,トラックアクチュエータ,受光素子及びポジションセンサを内蔵したものであり、レーザ光を光ディスク19に照射する。また、光ピックアップ2は同じく図示を省略したシークモータによって移動可能である。
上記フォーカスアクチュエータ,トラックアクチュエータ、シークモータは、受光素子,ポジションセンサから得られた信号に基づいてモータドライバ4とサーボ処理部8によってレーザ光のスポットが光ディスク19上の目的の場所(書込位置又は読み出し位置)に位置するように制御される。
The optical pickup 2 includes a semiconductor laser, an optical system, a focus actuator, a track actuator, a light receiving element, and a position sensor, which are not shown because they are known, and irradiates the optical disk 19 with laser light. The optical pickup 2 can be moved by a seek motor (not shown).
The focus actuator, the track actuator, and the seek motor are configured such that the laser driver spot and the servo processing unit 8 cause a laser beam spot on the optical disc 19 based on a signal obtained from the light receiving element and the position sensor (write position or write position). (Reading position).

光ディスク19に記録された情報を再生(読み出し:リード)する場合、光ピックアップ2で得られた再生信号はリードアンプ5で増幅されて2値化された後、CDデコーダ6に入力されてデインターリーブとエラー訂正の処理を受ける。続いてこのデータはCD−ROMデコーダ・CD−ROMエンコーダ・サブコードコントローラ10のCD−ROMデコーダに入力されてさらにデータの信頼性を高めるためにエラー訂正の処理を受ける。
その後、そのデータはバッファマネージャ14によって一旦バッファメモリ15に蓄えられ、セクタデータとして揃ったところでATAPI又はSCSIインタフェース等のホストインタフェース(I/F)16を通してホストへPC(ホストコンピュータ)17へ一気に送られる。
When reproducing (reading: reading) information recorded on the optical disc 19, the reproduction signal obtained by the optical pickup 2 is amplified by the read amplifier 5 and binarized, and then input to the CD decoder 6 for deinterleaving. And receive error correction. Subsequently, this data is input to the CD-ROM decoder of the CD-ROM decoder / CD-ROM encoder / subcode controller 10 and is subjected to error correction processing to further improve the reliability of the data.
Thereafter, the data is temporarily stored in the buffer memory 15 by the buffer manager 14 and sent to the host (PC) 17 to the host through the host interface (I / F) 16 such as ATAPI or SCSI interface when the data is prepared as sector data. .

光ディスク19に情報を記録(書き込み:ライト)する場合、ホストI/F16を通してホストPC17から送られてきたデータはバッファマネージャ14によって一旦バッファメモリ15に蓄えられる。
バッファメモリ15にある程度の量のデータが貯まったところでライトを開始するが、その前にレーザ光のスポットを書き込み開始地点に位置させなければならない。その開始地点はトラックの蛇行によって予め光ディスク19に刻まれているウォブル信号から求められる。ウォブル信号にはATIPと呼ばれる絶対時間情報が含まれており、ATIPデコーダ9によってその絶対時間情報が取り出せる。
また、ATIPデコーダが生成する同期信号はCDエンコーダに入力され正確な位置でのデータの書き出しを可能にしている。
When recording (writing: writing) information on the optical disk 19, data sent from the host PC 17 through the host I / F 16 is temporarily stored in the buffer memory 15 by the buffer manager 14.
Writing starts when a certain amount of data is stored in the buffer memory 15, but before that, the laser beam spot must be positioned at the writing start point. The starting point is obtained from a wobble signal preliminarily engraved on the optical disk 19 by meandering of the track. The wobble signal includes absolute time information called ATIP, and the ATIP decoder 9 can extract the absolute time information.
Further, the synchronization signal generated by the ATIP decoder is input to the CD encoder so that data can be written at an accurate position.

バッファメモリ15のデータは、CD−ROMデコーダ・CD−ROMエンコーダ・サブコードコントローラ10のCD−ROMエンコーダやCDエンコーダ7でエラー訂正コードの付加やインターリーブが行われてLDドライバ(レーザコントロール回路)3,光ピックアップ2を介して光ディスク19に記録される。
上記一連の制御処理は、マイクロコンピュータであるシステムコントローラ(CPU)11が行っている。
システムコントローラ11のバス18には、ワークメモリ12,プログラムメモリ13が接続されている。
Data in the buffer memory 15 is added with an error correction code and interleaved by a CD-ROM decoder, a CD-ROM encoder, a CD-ROM encoder of the sub-code controller 10 and a CD encoder 7, and an LD driver (laser control circuit) 3 , Recorded on the optical disk 19 via the optical pickup 2.
The series of control processes is performed by a system controller (CPU) 11 that is a microcomputer.
A work memory 12 and a program memory 13 are connected to the bus 18 of the system controller 11.

プログラムメモリ13は、主にシステムコントローラ用プログラムの記憶用であり、記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムである主のプログラムと、その主のプログラム(ファームウェアプログラム)を書き換える(ファームウェアをアップデートする)書き換えプログラムを記憶し、後述のこの発明に係る処理で書き込み完了フラグも記憶する。
このプログラムメモリ13は書き換え可能な不揮発性メモリであり、例えば、512Kバイトの記憶容量のフラッシュロムである。
The program memory 13 is mainly for storing a system controller program, and rewrites the main program, which is a firmware program for performing control processing for recording or reproducing information on the recording medium, and the main program (firmware program) ( A rewrite program for updating the firmware is stored, and a write completion flag is also stored in the process according to the present invention described later.
The program memory 13 is a rewritable nonvolatile memory, for example, a flash ROM having a storage capacity of 512 Kbytes.

ワークメモリ12は、各種のプログラムの実行時に各種のスタック(スタック情報)や変数を記憶し、後述のこの発明に係る処理で書き換えプログラムも記憶する。このワークメモリ12は揮発性メモリであり、例えば、8Kバイトの記憶容量のスタティックラムである。
バッファメモリ15は、光ディスク19に記録する情報であるライトデータと、光ディスク19から再生した情報であるリードデータを一時的に記憶し、後述のこの発明に係る処理で書き換えプログラム及び主のプログラム(ファームウェアプログラム)も記憶する。このバッファメモリ15は揮発性メモリであり、例えば、2Mバイトの記憶容量のダイナミックラムである。
The work memory 12 stores various stacks (stack information) and variables when various programs are executed, and also stores a rewrite program by processing according to the present invention described later. The work memory 12 is a volatile memory, for example, a static ram having a storage capacity of 8 Kbytes.
The buffer memory 15 temporarily stores write data, which is information to be recorded on the optical disc 19, and read data, which is information reproduced from the optical disc 19, and a rewrite program and a main program (firmware) by processing according to the present invention described later. Program). The buffer memory 15 is a volatile memory, for example, a dynamic ram having a storage capacity of 2 Mbytes.

システムコントローラ11は、バッファマネージャ14を介してバッファメモリ15をランダムにアクセスすることができ、ヘッダ情報やCD−ROMデコーダ・CD−ROMエンコーダ・サブコードコントローラ10のサブコードコントローラによってサブコード情報を取得したり付加したりすることができる。
そして、このシステムコントローラ11が、この発明に係るファームウェア書き換えのプログラムを実行することにより、この発明に係る記録再生装置のファームウェア書き換え方法の処理を実行する。すなわち、システムコントローラ11がこの発明に係る記録再生装置の各手段の機能を果たす。
この発明に係るファームウェア書き換えのプログラムは、直接プログラムメモリ13に格納するようにしても良いし、上述した光ディスク等のコンピュータ読み取り可能な記録媒体に記録し、その記録媒体を介してプログラムメモリ13にシステムコントローラ11が実行可能にインストールして格納してもよい。
The system controller 11 can randomly access the buffer memory 15 via the buffer manager 14, and obtains the subcode information by the header information and the subcode controller of the CD-ROM decoder / CD-ROM encoder / subcode controller 10. And can be added.
The system controller 11 executes the firmware rewriting program according to the present invention to execute the firmware rewriting method for the recording / reproducing apparatus according to the present invention. That is, the system controller 11 functions as each unit of the recording / reproducing apparatus according to the present invention.
The firmware rewriting program according to the present invention may be directly stored in the program memory 13, or may be recorded on a computer-readable recording medium such as the optical disk described above, and the system is stored in the program memory 13 via the recording medium. The controller 11 may be installed and stored so as to be executable.

図2は、図1に示したワークメモリ12,プログラムメモリ13,バッファメモリ15のメモリマップを示す図である。
システムコントローラ11は、バッファメモリ15を第1バッファウインドウ20又は第2バッファウインドウ21に投影される形でアクセス可能であり、それぞれのウィンドウサイズは64Kバイトと4Kバイトである。
システムコントローラ11は、レジスタ設定によって上記第1バッファウインドウ20と第2バッファウインドウ21をバッファメモリ15のどこへでも配置できるため、バッファメモリ全域をランダムにアクセス可能である。
FIG. 2 is a diagram showing a memory map of the work memory 12, the program memory 13, and the buffer memory 15 shown in FIG.
The system controller 11 can access the buffer memory 15 by projecting it onto the first buffer window 20 or the second buffer window 21, and the window sizes are 64K bytes and 4K bytes, respectively.
Since the system controller 11 can arrange the first buffer window 20 and the second buffer window 21 anywhere in the buffer memory 15 by register setting, the entire buffer memory can be accessed at random.

前記バッファメモリ内の情報をランダムにアクセスする手段と、書き換えプログラムを実行して前記プログラムメモリのファームウェアをアップデートする手段と、書き換えプログラムをプログラムメモリからバッファメモリへ移し、そのプログラムを実行することによりファームウェアのアップデートを行なうことを特徴としたディスク装置。 Means for randomly accessing information in the buffer memory; means for executing a rewrite program to update the firmware of the program memory; and transferring the rewrite program from the program memory to the buffer memory and executing the program to update the firmware. A disk device characterized by performing update.

次に、この実施形態のディスク装置における第1のファームウェア書き換え処理について説明する。
図3は、図1に示したディスク装置における第1のファームウェア書き換え処理の説明図である。
まず、プログラムメモリ13には、書き換えプログラム22と主のプログラム23が記憶されている。
通常、システムコントローラ11は、プログラムメモリ13の主のプログラム23を実行して光ディスク19のリードライトを行っている。
Next, the first firmware rewriting process in the disk device of this embodiment will be described.
FIG. 3 is an explanatory diagram of the first firmware rewriting process in the disk device shown in FIG.
First, the program memory 13 stores a rewrite program 22 and a main program 23.
Normally, the system controller 11 executes the main program 23 in the program memory 13 to read / write the optical disc 19.

システムコントローラ11は、ホストPC17からファームウェアのアップデートを行うための書き換え命令を受信すると、第1バッファウインドウ20をバッファメモリ15の先頭に設定してプログラムメモリ13の書き換えプログラム22を読み出してバッファメモリ15へ書き込んで移す。その移される書き換えプログラムは予め移されることを考慮したアドレッシングになっていて書き換えプログラム全体であっても一部であってもよい。また、プログラムメモリ13上で実行できるプログラムのアドレッシングを変換しながら移す方法も考えられる。   When the system controller 11 receives a rewrite command for updating the firmware from the host PC 17, the system controller 11 sets the first buffer window 20 at the head of the buffer memory 15, reads the rewrite program 22 in the program memory 13, and enters the buffer memory 15. Write and transfer. The rewriting program to be transferred is addressed in consideration of being transferred in advance, and may be the entire rewriting program or a part thereof. A method of transferring the program addressable on the program memory 13 while converting it is also conceivable.

システムコントローラ11は、書き換えプログラム22をバッファメモリ15に移動したら、その書き換えプログラム22を実行するが、移動した書き換えプログラムが書き換えプログラムの一部であるなら、その一部の書き換えプログラムを実行してから残りの書き換えプログラムを移動しても良い。
次に、システムコントローラ11は、ホストPC17から新しい主のプログラム24を受信し、バッファメモリ15上の書き換えプログラム22に重ならないようにその新しい主のプログラム24を書き込んで記憶する。
When the system controller 11 moves the rewrite program 22 to the buffer memory 15, the system controller 11 executes the rewrite program 22. If the moved rewrite program is a part of the rewrite program, the system controller 11 executes the part of the rewrite program. The remaining rewriting program may be moved.
Next, the system controller 11 receives the new main program 24 from the host PC 17 and writes and stores the new main program 24 so as not to overlap the rewrite program 22 on the buffer memory 15.

その後、システムコントローラ11は、プログラムメモリ13の主のプログラム23が記憶された領域を消去し(主のプログラム23を消去し)、第2バッファウインドウ21を通してバッファメモリ15から新しい主のプログラム24を読み出し、バッファメモリ15に記憶された新しい主のプログラム24をプログラムメモリ13に書き込んでファームウェアを書き換える。
第2バッファウインドウ21のサイズは4Kであるが、そのウィンドウをずらせばバッファメモリ15の全ての新しい主のプログラム24を読出し可能である。
そして、システムコントローラ11は、プログラムメモリ13の所定の領域に新しい主のプログラムを書き込んでファームウェアを書き換えたことを示す書き込み完了フラグを書き込む。
Thereafter, the system controller 11 erases the area of the program memory 13 in which the main program 23 is stored (erase the main program 23), and reads a new main program 24 from the buffer memory 15 through the second buffer window 21. The new main program 24 stored in the buffer memory 15 is written in the program memory 13 to rewrite the firmware.
Although the size of the second buffer window 21 is 4K, all new main programs 24 in the buffer memory 15 can be read by shifting the window.
Then, the system controller 11 writes a write completion flag indicating that the new main program has been written into the predetermined area of the program memory 13 and the firmware has been rewritten.

図4は、図1に示したディスク装置のシステムコントローラ11による第1のファームウェア書き換え処理のフローチャート図である。
システムコントローラ11は、ステップ(図中「S」で示す)1でホストPCからファームウェアの書き換え命令を受信したか否かを判断し、受信しなければこの処理を終了し、受信したらステップ2でプログラムメモリに記憶された書き換えプログラムを読み出し、バッファメモリに書き込んで移動する。
ステップ3でバッファメモリ上で書き換えプログラムを実行し、ステップ4でホストPCから新しい主のプログラムを受信し、その新しい主のプログラムをバッファメモリに書き込んで記憶する。ステップ5でプログラムメモリの主のプログラム領域を消去してプログラムメモリに記憶された主のプログラムを消去し、ステップ6でバッファメモリに記憶された新しい主のプログラムを読み出してプログラムメモリに書き込み、ステップ7でプログラムメモリに書き込み完了フラグを書き込んでこの処理を終了する。
FIG. 4 is a flowchart of the first firmware rewriting process by the system controller 11 of the disk device shown in FIG.
The system controller 11 determines whether or not a firmware rewrite command has been received from the host PC in step (indicated by “S” in the figure) 1. If not received, the process is terminated. The rewrite program stored in the memory is read, written to the buffer memory, and moved.
In step 3, the rewrite program is executed on the buffer memory. In step 4, a new main program is received from the host PC, and the new main program is written and stored in the buffer memory. In step 5, the main program area of the program memory is erased and the main program stored in the program memory is erased. In step 6, the new main program stored in the buffer memory is read and written in the program memory. Then, a write completion flag is written in the program memory and this process is terminated.

上述の処理では、バッファメモリがプログラムメモリ(フラッシュメモリ)に対して十分大きいので主のプログラムを一度に受信するが、バッファメモリがプログラムメモリより小さい場合は、新しい主のプログラム受信と書き込み動作を繰り返し行うことも可能である。
このようにして、ディスク装置のバッファメモリにDRAMと呼ばれる安価なメモリを使用すれば、ワークメモリよりかなり大容量であるから、書き換えプログラムをバッファメモリ上で実行することによって高機能で大規模な書き換えプログラムを確実に実行することができる。
また、ワークメモリの内容を壊すことがないのでリセットすること無く制御を主のプログラムへ戻すことができる。
In the above processing, the buffer memory is sufficiently large relative to the program memory (flash memory), so the main program is received at one time. However, if the buffer memory is smaller than the program memory, the new main program reception and writing operations are repeated. It is also possible to do this.
In this way, if an inexpensive memory called DRAM is used for the buffer memory of the disk device, the capacity is considerably larger than that of the work memory. Therefore, by executing the rewrite program on the buffer memory, high-performance and large-scale rewrite is possible. The program can be executed reliably.
In addition, since the contents of the work memory are not destroyed, the control can be returned to the main program without resetting.

次に、ドライブ装置を出荷した時点でプログラム容量がフラッシュロムの容量に迫っていると、変更したファームウェアがフラッシュロムの容量をオーバーしてしまってファームウェアをリリースできない場合がある。
そこで、書き換えプログラムを予めプログラムメモリに持たずにホストPCから転送するようにすれば、その分の容量を主のプログラムに割り当てられる。
次に、この実施形態のディスク装置における第2のファームウェア書き換え処理について説明する。
図5は、図1に示したディスク装置における第2のファームウェア書き換え処理の説明図である。
まず、プログラムメモリ13には主のプログラム23が記憶されている。
通常、システムコントローラ11は、プログラムメモリ13の主のプログラム23を実行して光ディスク19のリードライトを行っている。
Next, if the program capacity approaches the capacity of the flash ROM when the drive device is shipped, the changed firmware may exceed the capacity of the flash ROM and the firmware may not be released.
Therefore, if the rewrite program is transferred from the host PC without having the program memory in advance, the capacity can be allocated to the main program.
Next, the second firmware rewriting process in the disk device of this embodiment will be described.
FIG. 5 is an explanatory diagram of the second firmware rewriting process in the disk device shown in FIG.
First, a main program 23 is stored in the program memory 13.
Normally, the system controller 11 executes the main program 23 in the program memory 13 to read / write the optical disc 19.

システムコントローラ11は、ホストPC17からファームウェアのアップデートを行うための書き換え命令を受信すると、第1バッファウインドウ20をバッファメモリ15の先頭に設定し、ホストPC17から書き換えプログラム22を受信し、バッファメモリ15に書き込んで記憶する。
システムコントローラ11は、書き換えプログラム22をバッファメモリ15に記憶したら、その書き換えプログラム22を実行する。
次に、システムコントローラ11は、ホストPC17から新しい主のプログラム24を受信し、バッファメモリ15上の書き換えプログラム22に重ならないようにその新しい主のプログラム24を書き込んで記憶する。
When the system controller 11 receives a rewrite command for updating the firmware from the host PC 17, the system controller 11 sets the first buffer window 20 at the head of the buffer memory 15, receives the rewrite program 22 from the host PC 17, and stores it in the buffer memory 15. Write and store.
After storing the rewrite program 22 in the buffer memory 15, the system controller 11 executes the rewrite program 22.
Next, the system controller 11 receives the new main program 24 from the host PC 17 and writes and stores the new main program 24 so as not to overlap the rewrite program 22 on the buffer memory 15.

その後、システムコントローラ11は、プログラムメモリ13の主のプログラム23が記憶された領域を消去し(主のプログラム23を消去し)、第2バッファウインドウ21を通してバッファメモリ15から新しい主のプログラム24を読み出し、バッファメモリ15に記憶された新しい主のプログラム24をプログラムメモリ13に書き込んでファームウェアを書き換える。
第2バッファウインドウ21のサイズは4Kであるが、そのウィンドウをずらせばバッファメモリ15の全ての新しい主のプログラム24を読出し可能である。
そして、システムコントローラ11は、プログラムメモリ13の所定の領域に新しい主のプログラムを書き込んでファームウェアを書き換えたことを示す書き込み完了フラグを書き込む。
Thereafter, the system controller 11 erases the area of the program memory 13 in which the main program 23 is stored (erase the main program 23), and reads a new main program 24 from the buffer memory 15 through the second buffer window 21. The new main program 24 stored in the buffer memory 15 is written in the program memory 13 to rewrite the firmware.
Although the size of the second buffer window 21 is 4K, all new main programs 24 in the buffer memory 15 can be read by shifting the window.
Then, the system controller 11 writes a write completion flag indicating that the new main program has been written into the predetermined area of the program memory 13 and the firmware has been rewritten.

図6は、図1に示したディスク装置のシステムコントローラ11による第2のファームウェア書き換え処理のフローチャート図である。
システムコントローラ11は、ステップ(図中「S」で示す)11でホストPCからファームウェアの書き換え命令を受信したか否かを判断し、受信しなければこの処理を終了し、受信したらステップ12でホストPCから書き換えプログラムを受信し、バッファメモリに書き込んで記憶する。
ステップ13でバッファメモリ上で書き換えプログラムを実行し、ステップ14でホストPCから新しい主のプログラムを受信し、その新しい主のプログラムをバッファメモリに書き込んで記憶する。ステップ15でプログラムメモリの主のプログラム領域を消去してプログラムメモリに記憶された主のプログラムを消去し、ステップ16でバッファメモリに記憶された新しい主のプログラムを読み出してプログラムメモリに書き込み、ステップ17でプログラムメモリに書き込み完了フラグを書き込んでこの処理を終了する。
FIG. 6 is a flowchart of the second firmware rewriting process by the system controller 11 of the disk device shown in FIG.
The system controller 11 determines whether or not a firmware rewrite command has been received from the host PC at step 11 (indicated by “S” in the figure). If not received, the process is terminated. The rewrite program is received from the PC, and is written and stored in the buffer memory.
In step 13, the rewrite program is executed on the buffer memory. In step 14, a new main program is received from the host PC, and the new main program is written and stored in the buffer memory. In step 15, the main program area of the program memory is erased and the main program stored in the program memory is erased. In step 16, the new main program stored in the buffer memory is read and written in the program memory. Then, a write completion flag is written in the program memory and this process is terminated.

上述の処理で、バッファメモリがプログラムメモリ(フラッシュメモリ)に対して十分大きいので主のプログラムを一度に受信するが、バッファメモリがプログラムメモリより小さい場合は、新しい主のプログラム受信と書き込み動作を繰り返し行うことも可能である。
このようにして、新しい高機能で大規模な書き換えプログラムを簡単に確実に実行することができる。
In the above processing, the buffer memory is sufficiently large relative to the program memory (flash memory), so the main program is received at once. If the buffer memory is smaller than the program memory, the new main program reception and writing operations are repeated. It is also possible to do this.
In this way, a new high-function and large-scale rewrite program can be easily and reliably executed.

次に、ワークメモリが書き換えプログラムを実行するのに不足する場合もあるが、場合によっては十分な容量を持つ場合がある。その場合は書き換えプログラムをワークメモリへ移して主のプログラムを実行している間も常駐させると、主のプログラムを実行中でも不揮発の情報をフラッシュメモリへ書くことがあり、そのためのルーチンを書き換えプログラムと共用することができる。   Next, the work memory may be insufficient to execute the rewriting program, but in some cases, the work memory may have a sufficient capacity. In that case, if the rewrite program is moved to the work memory and made resident while the main program is being executed, nonvolatile information may be written to the flash memory even while the main program is being executed. Can be shared.

次に、この実施形態のディスク装置における第3のファームウェア書き換え処理について説明する。
図7は、図1に示したディスク装置における第3のファームウェア書き換え処理の説明図である。
まず、プログラムメモリ13には、書き換えプログラム22と主のプログラム23が記憶されている。また、システムコントローラ11の処理によってワークメモリ12には変数,スタック26が格納される。
Next, the third firmware rewriting process in the disk device of this embodiment will be described.
FIG. 7 is an explanatory diagram of a third firmware rewriting process in the disk device shown in FIG.
First, the program memory 13 stores a rewrite program 22 and a main program 23. Further, the variable and stack 26 are stored in the work memory 12 by the processing of the system controller 11.

システムコントローラ11は、このディスク装置のドライブシステムがリセットされると、一通りの初期設定を実行し、その初期設定を終えるとプログラムメモリ13に記憶された書き換えプログラム22を読み出し、ワークメモリ12の主のプログラム23で使用されない領域へ書き込んで移す。その移される書き換えプログラム22は予め移されることを考慮したアドレッシングになっていて書き換えプログラム全体であっても一部であってもよい。その後、システムコントローラ11は、プログラムメモリ13の主のプログラム23を実行して光ディスク19のリードライトを行う。
こうして、主のプログラム23の実行中も書き換えプログラム22を常駐させることができる。
When the drive system of the disk device is reset, the system controller 11 executes a series of initial settings. When the initial settings are completed, the system controller 11 reads the rewrite program 22 stored in the program memory 13 and reads the main memory of the work memory 12. The program 23 is written and transferred to an area not used. The rewriting program 22 to be transferred is addressed in consideration of being transferred in advance, and may be the entire rewriting program or a part thereof. Thereafter, the system controller 11 executes the main program 23 in the program memory 13 to read / write the optical disc 19.
In this way, the rewriting program 22 can be made resident while the main program 23 is being executed.

システムコントローラ11は、ホストPC17からファームウェアのアップデートを行うための書き換え命令を受信すると、ワークメモリ12上の書き換えプログラム22を実行し、ホストPC17から新しい主のプログラム24を受信し、バッファメモリ15にその新しい主のプログラム24を書き込んで記憶する。
その後、システムコントローラ11は、プログラムメモリ13の主のプログラム23が記憶された領域を消去し(主のプログラム23を消去し)、第2バッファウインドウ21を通してバッファメモリ15から新しい主のプログラム24を読み出し、バッファメモリ15に記憶された新しい主のプログラム24をプログラムメモリ13に書き込んでファームウェアを書き換える。
第2バッファウインドウ21のサイズは4Kであるが、そのウィンドウをずらせばバッファメモリ15の全ての新しい主のプログラム24を読出し可能である。
そして、システムコントローラ11は、プログラムメモリ13の所定の領域に新しい主のプログラムを書き込んでファームウェアを書き換えたことを示す書き込み完了フラグを書き込む。
When the system controller 11 receives a rewrite command for updating the firmware from the host PC 17, it executes the rewrite program 22 on the work memory 12, receives a new main program 24 from the host PC 17, and stores it in the buffer memory 15. A new main program 24 is written and stored.
Thereafter, the system controller 11 erases the area of the program memory 13 in which the main program 23 is stored (erase the main program 23), and reads a new main program 24 from the buffer memory 15 through the second buffer window 21. The new main program 24 stored in the buffer memory 15 is written in the program memory 13 to rewrite the firmware.
Although the size of the second buffer window 21 is 4K, all new main programs 24 in the buffer memory 15 can be read by shifting the window.
Then, the system controller 11 writes a write completion flag indicating that the new main program has been written into the predetermined area of the program memory 13 and the firmware has been rewritten.

図8は、図1に示したディスク装置のシステムコントローラ11によるシステムリセット時の処理のフローチャート図である。
システムコントローラ11は、ステップ(図中「S」で示す)21でシステムをリセットすると、ステップ22でプログラムメモリに記憶された書き換えプログラムを読み出してワークメモリに書き込んで移動し、ステップ23でプログラムメモリに記憶された主のプログラムを実行すると、システムリセット時の処理を終了する。
FIG. 8 is a flowchart of processing at the time of system reset by the system controller 11 of the disk device shown in FIG.
When the system controller 11 resets the system in step (indicated by “S” in the figure) 21, it reads the rewrite program stored in the program memory in step 22, writes it in the work memory, moves it, and in step 23 stores it in the program memory. When the stored main program is executed, the processing at the time of system reset is terminated.

図9は、図1に示したディスク装置のシステムコントローラ11による第3のファームウェア書き換え処理のフローチャート図である。
システムコントローラ11は、ステップ(図中「S」で示す)31でホストPCからファームウェアの書き換え命令を受信したか否かを判断し、受信しなければこの処理を終了し、受信したらステップ32でワークメモリ上で書き換えプログラムを実行し、ステップ33でホストPCから新しい主のプログラムを受信し、その新しい主のプログラムをバッファメモリに書き込んで記憶する。ステップ34でプログラムメモリの主のプログラム領域を消去してプログラムメモリに記憶された主のプログラムを消去し、ステップ35でバッファメモリに記憶された新しい主のプログラムを読み出してプログラムメモリに書き込み、ステップ36でプログラムメモリに書き込み完了フラグを書き込んでこの処理を終了する。
FIG. 9 is a flowchart of the third firmware rewriting process by the system controller 11 of the disk apparatus shown in FIG.
The system controller 11 determines whether or not a firmware rewrite command has been received from the host PC at step 31 (indicated by “S” in the figure). If not received, the process is terminated. The rewriting program is executed on the memory, and a new main program is received from the host PC in step 33, and the new main program is written and stored in the buffer memory. In step 34, the main program area of the program memory is erased to erase the main program stored in the program memory. In step 35, the new main program stored in the buffer memory is read out and written into the program memory. Then, a write completion flag is written in the program memory and this process is terminated.

上述の処理で、バッファメモリがプログラムメモリ(フラッシュメモリ)に対して十分大きいので主のプログラムを一度に受信するが、バッファメモリがプログラムメモリより小さい場合は、新しい主のプログラム受信と書き込み動作を繰り返し行うことも可能である。
このようにして、ワークメモリを有効に活用して書き換えプログラムを簡単に確実に実行することができる。
In the above processing, the buffer memory is sufficiently large relative to the program memory (flash memory), so the main program is received at once. If the buffer memory is smaller than the program memory, the new main program reception and writing operations are repeated. It is also possible to do this.
In this way, the rewriting program can be easily and reliably executed by effectively utilizing the work memory.

次に、ファームウェアのアップデート中に電源が落ちるとそのプログラムを失い、もう二度と起動できなくなる危険性がある。
そこで、書き換えプログラムと主のプログラムを独立に実行できるように構成し、ファームウェアのアップデートは主のプログラムのみを書き換えることにより、事故で主のプログラムを失っても再度主のプログラムを書き込めるようにするとよい。
また、時には書き換えプログラムをアップデートする場合もある。この時事故が発生して書き換えプログラムを失っても復帰させるようにするとよい。
Next, if the power goes down during the firmware update, the program will be lost, and there is a risk that it will not be able to start again.
Therefore, it is recommended that the rewrite program and the main program can be executed independently, and the firmware update can be performed by rewriting only the main program so that the main program can be written again even if the main program is lost due to an accident. .
Also, sometimes the rewriting program is updated. Even if an accident occurs at this time and the rewriting program is lost, it is recommended to restore it.

上記第2のファームウェア書き換え処理の際、ホストPC17から受信した書き換えプログラムが正常か否かを判断し、正常なら上述の処理を実行するが、異常ならホストPC17から正常な書き換えプログラムを受信して実行する。
また、上記第1又は第3のファームウェア書き換え処理の場合は、次の図10のフローチャートに示す処理を実行する。
At the time of the second firmware rewriting process, it is determined whether or not the rewriting program received from the host PC 17 is normal. If the rewriting program is normal, the above-described process is executed. If abnormal, the normal rewriting program is received from the host PC 17 and executed. To do.
In the case of the first or third firmware rewriting process, the process shown in the flowchart of FIG. 10 is executed.

図10は、図1に示したディスク装置のシステムコントローラ11による書き換えプログラムと主のプログラムを書き換える処理のフローチャート図である。
システムコントローラ11は、ステップ(図中「S」で示す)41でホストPCからファームウェアのアップデートを行うための書き換え命令を受信したか否かを判断し、受信しなければこの処理を終了し、受信したらステップ42で書き換えプログラムが正常か否かを判断する。この判断は書き込み完了フラグや書き換えプログラムのチェックサムを計算することによって確認できる。
FIG. 10 is a flowchart of processing for rewriting the main program and the rewriting program by the system controller 11 of the disk device shown in FIG.
The system controller 11 determines in step (indicated by “S” in the figure) 41 whether or not a rewrite command for updating the firmware has been received from the host PC. If not received, the process is terminated. Then, in step 42, it is determined whether or not the rewriting program is normal. This determination can be confirmed by calculating a write completion flag or a checksum of the rewrite program.

ステップ42の判断で書き換えプログラムが正常でなく異常だった場合、ステップ52で第1バッファウインドウをバッファメモリの先頭に設定して書き換えプログラムをホストPCから受信し、その書き換えプログラムをバッファメモリ又はワークメモリに記憶し、ステップ53でその書き換えプログラムを実行する。
一方、ステップ42の判断で書き換えプログラムが正常だった場合、ステップ43で第1バッファウインドウをバッファメモリの先頭に設定して書き換えプログラムをバッファメモリへ移す処理(あるいは、書き換えプログラムをワークメモリへ移す処理)を実行し、ステップ44でその書き換えプログラムを実行する。
If it is determined in step 42 that the rewrite program is not normal but abnormal, in step 52 the first buffer window is set at the head of the buffer memory, the rewrite program is received from the host PC, and the rewrite program is received from the buffer memory or work memory. In step 53, the rewriting program is executed.
On the other hand, if the rewrite program is normal as determined in step 42, the process of setting the first buffer window at the head of the buffer memory and moving the rewrite program to the buffer memory in step 43 (or the process of moving the rewrite program to the work memory) ) And the rewriting program is executed in step 44.

次に、ステップ45でホストPCから新しい主のプログラムと新しい書き換えプログラムとを受信し、バッファメモリ上の書き換えプログラムに重ならないようにバッファメモリに新しい主のプログラムと新しい書き換えプログラムを書き込んで記憶する。
ステップ46でプログラムメモリの主のプログラム領域を消去してプログラムメモリに記憶された主のプログラムを消去し、ステップ47でバッファメモリに記憶された新しい主のプログラムを読み出してプログラムメモリに書き込み、主のプログラムを書き換え、ステップ48でプログラムメモリに書き込み完了フラグを書き込む。
Next, in step 45, a new main program and a new rewrite program are received from the host PC, and the new main program and the new rewrite program are written and stored in the buffer memory so as not to overlap the rewrite program on the buffer memory.
In step 46, the main program area of the program memory is erased and the main program stored in the program memory is erased. In step 47, the new main program stored in the buffer memory is read out and written into the program memory. The program is rewritten, and a write completion flag is written in the program memory in step 48.

さらに、ステップ49でプログラムメモリの書き換えプログラム領域を消去してプログラムメモリに記憶された書き換えプログラムを消去し、ステップ50でバッファメモリに記憶された新しい書き換えプログラムを読み出してプログラムメモリに書き込み、書き換えプログラムを書き換え、ステップ51でプログラムメモリに書き込み完了フラグを書き込む。
第2バッファウインドウ21を通してバッファメモリ15から新しい主のプログラム24を読み出す。第2バッファウインドウ21のサイズは4Kであるが、そのウィンドウをずらせばバッファメモリ15の全ての新しい主のプログラム24を読出し可能である。
Further, in step 49, the rewrite program area of the program memory is erased to erase the rewrite program stored in the program memory. In step 50, the new rewrite program stored in the buffer memory is read and written to the program memory. In step 51, the write completion flag is written in the program memory.
A new main program 24 is read from the buffer memory 15 through the second buffer window 21. Although the size of the second buffer window 21 is 4K, all new main programs 24 in the buffer memory 15 can be read by shifting the window.

上述の処理で、バッファメモリがプログラムメモリ(フラッシュメモリ)に対して十分大きいので主のプログラムを一度に受信するが、バッファメモリがプログラムメモリより小さい場合は、新しい主のプログラム受信と書き込み動作を繰り返し行うことも可能である。
このようにして、ファームウェアアップデートの安全性を向上させることができる。
In the above processing, the buffer memory is sufficiently large relative to the program memory (flash memory), so the main program is received at once. If the buffer memory is smaller than the program memory, the new main program reception and writing operations are repeated. It is also possible to do this.
In this way, the safety of firmware update can be improved.

この発明による記録再生装置と記録再生装置のファームウェア書き換え方法とプログラムとコンピュータ読み取り可能な記録媒体は、CD−ROMディスク装置,CD−Rディスク装置,CD−RWディスク装置,DVD−ROMディスク装置,DVD−Rディスク装置,DVD+Rディスク装置,DVD−RWディスク装置,DVD+RWディスク装置等の光ディスクドライブ装置、光磁気ディスク装置、MD装置においても適用することができる。   The recording / reproducing device, the firmware rewriting method of the recording / reproducing device, the program, and the computer-readable recording medium according to the present invention are a CD-ROM disc device, a CD-R disc device, a CD-RW disc device, a DVD-ROM disc device, a DVD. The present invention can also be applied to optical disk drive devices such as -R disk devices, DVD + R disk devices, DVD-RW disk devices, DVD + RW disk devices, magneto-optical disk devices, and MD devices.

この発明の一実施形態のドライブ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the drive device of one Embodiment of this invention. 図1に示すワークメモリ12,プログラムメモリ13,バッファメモリ15のメモリマップを示す図である。It is a figure which shows the memory map of the work memory 12, the program memory 13, and the buffer memory 15 which are shown in FIG. 図1に示すディスク装置における第1のファームウェア書き換え処理の説明図である。FIG. 3 is an explanatory diagram of a first firmware rewriting process in the disk device shown in FIG. 1. 図1に示すディスク装置のシステムコントローラ11による第1のファームウェア書き換え処理のフローチャート図である。FIG. 3 is a flowchart of first firmware rewriting processing by a system controller 11 of the disk device shown in FIG. 1. 図1に示すディスク装置における第2のファームウェア書き換え処理の説明図である。It is explanatory drawing of the 2nd firmware rewriting process in the disk apparatus shown in FIG.

図6は、図1に示したディスク装置のシステムコントローラ11による第2のファームウェア書き換え処理のフローチャート図である。FIG. 6 is a flowchart of the second firmware rewriting process by the system controller 11 of the disk device shown in FIG. 図1に示すディスク装置における第3のファームウェア書き換え処理の説明図である。It is explanatory drawing of the 3rd firmware rewriting process in the disk apparatus shown in FIG. 図1に示すディスク装置のシステムコントローラ11によるシステムリセット時の処理のフローチャート図である。FIG. 3 is a flowchart of processing at the time of system reset by the system controller 11 of the disk device shown in FIG. 1. 図1に示すディスク装置のシステムコントローラ11による第3のファームウェア書き換え処理のフローチャート図である。FIG. 10 is a flowchart of third firmware rewriting processing by the system controller 11 of the disk device shown in FIG. 1. 図1に示すディスク装置のシステムコントローラ11による書き換えプログラムと主のプログラムを書き換える処理のフローチャート図である。It is a flowchart figure of the process which rewrites the rewriting program and the main program by the system controller 11 of the disk apparatus shown in FIG.

符号の説明Explanation of symbols

1:スピンドルモータ 2:光ピックアップ 3:LDドライバ 4:モータドライバ 5:リードアンプ 6:CDデコーダ 7:CDエンコーダ 8:サーボ処理部 9:ATIPデコーダ 10:CD−ROMデコーダ・CD−ROMエンコーダ・サブコードコントローラ 11:システムコントローラ 12:ワークメモリ 13:プログラムメモリ 14:バッファマネージャ 15:バッファメモリ 16:ホストI/F 17:ホストPC 18:バス 19:光ディスク 20:第1バッファウインドウ 21:第2バッファウインドウ 22:書き換えプログラム 23:主のプログラム 24:新しい主のプログラム 25:書き込み完了フラグ 26:変数,スタック 1: Spindle motor 2: Optical pickup 3: LD driver 4: Motor driver 5: Read amplifier 6: CD decoder 7: CD encoder 8: Servo processing unit 9: ATIP decoder 10: CD-ROM decoder / CD-ROM encoder / sub Code controller 11: System controller 12: Work memory 13: Program memory 14: Buffer manager 15: Buffer memory 16: Host I / F 17: Host PC 18: Bus 19: Optical disk 20: First buffer window 21: Second buffer window 22: Rewrite program 23: Main program 24: New main program 25: Write completion flag 26: Variable, stack

Claims (13)

記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムと該ファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、
前記プログラムメモリに記憶された書き換えプログラムを前記バッファメモリに移動する手段と、
前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段とを備えたことを特徴とする記録再生装置。
A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information recorded on the recording medium or information reproduced from the recording medium are temporarily stored Buffer memory to store automatically,
Means for moving the rewrite program stored in the program memory to the buffer memory;
The rewriting program stored in the buffer memory is executed to receive a new firmware program from outside, the received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, A recording / reproducing apparatus comprising: means for writing a new firmware program stored in a buffer memory into the program memory and rewriting the firmware program stored in the program memory.
記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、
外部から前記ファームウェアプログラムを書き換える書き換えプログラムを受信し、該受信した書き換えプログラムを前記バッファメモリに記憶する手段と、
前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段とを備えたことを特徴とする記録再生装置。
A rewritable program memory for storing a firmware program for performing control processing of recording or reproducing information on the recording medium, a buffer memory for temporarily storing information recorded on the recording medium or information reproduced from the recording medium,
Means for receiving a rewrite program for rewriting the firmware program from outside and storing the received rewrite program in the buffer memory;
The rewriting program stored in the buffer memory is executed to receive a new firmware program from outside, the received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, A recording / reproducing apparatus comprising: means for writing a new firmware program stored in a buffer memory into the program memory and rewriting the firmware program stored in the program memory.
記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムと該ファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、各種の処理の実行時のスタックと変数とを記憶するワークメモリと、
前記プログラムメモリに記憶された書き換えプログラムを前記ワークメモリに移動する手段と、
前記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手段とを備えたことを特徴とする記録再生装置。
A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information recorded on the recording medium or information reproduced from the recording medium are temporarily stored Buffer memory for storing automatically, work memory for storing stacks and variables at the time of execution of various processes,
Means for moving the rewrite program stored in the program memory to the work memory;
The rewriting program stored in the work memory is executed to receive a new firmware program from outside, the received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, A recording / reproducing apparatus comprising: means for writing a new firmware program stored in a buffer memory into the program memory and rewriting the firmware program stored in the program memory.
請求項1乃至3のいずれか一項に記載の記録再生装置において、前記書き換えプログラムが正常か否かを判断する手段と、該手段によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる手段を設けたことを特徴とする記録再生装置。   4. The recording / reproducing apparatus according to claim 1, wherein means for determining whether or not the rewriting program is normal and receiving a rewriting program from the outside when the means determines that the rewriting program is abnormal. And a recording / reproducing apparatus characterized in that a means for executing is provided. 記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムと該ファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリとを備えた記録再生装置のファームウェア書き換え方法であって、
前記プログラムメモリに記憶された書き換えプログラムを前記バッファメモリに移動する工程と、前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなることを特徴とする記録再生装置のファームウェア書き換え方法。
A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information recorded on the recording medium or information reproduced from the recording medium are temporarily stored A method for rewriting firmware of a recording / reproducing apparatus including a buffer memory for storing the data,
Moving the rewrite program stored in the program memory to the buffer memory; executing the rewrite program stored in the buffer memory to receive a new firmware program from outside; and receiving the received new firmware program in the buffer Storing in the memory, erasing the firmware program stored in the program memory, writing a new firmware program stored in the buffer memory into the program memory, and rewriting the firmware program stored in the program memory. A method for rewriting firmware in a recording / reproducing apparatus.
記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリとを備えた記録再生装置のファームウェア書き換え方法であって、
外部から前記ファームウェアプログラムを書き換える書き換えプログラムを受信し、該受信した書き換えプログラムを前記バッファメモリに記憶する工程と、前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなることを特徴とする記録再生装置のファームウェア書き換え方法。
A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium, and a buffer memory for temporarily storing information recorded on the recording medium or information reproduced from the recording medium A method for rewriting the firmware of the recording / reproducing apparatus,
Receiving a rewrite program for rewriting the firmware program from outside, storing the received rewrite program in the buffer memory, and executing a rewrite program stored in the buffer memory to receive a new firmware program from the outside, The received new firmware program is stored in the buffer memory, the firmware program stored in the program memory is erased, and the new firmware program stored in the buffer memory is written into the program memory and stored in the program memory. A method for rewriting firmware of a recording / reproducing apparatus, comprising: rewriting a firmware program.
記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムと該ファームウェアプログラムを書き換える書き換えプログラムとを記憶する書き換え可能なプログラムメモリと、前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリと、各種の処理の実行時のスタックと変数とを記憶するワークメモリとを備えた記録再生装置のファームウェア書き換え方法であって、
前記プログラムメモリに記憶された書き換えプログラムを前記ワークメモリに移動する工程と、前記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える工程とからなることを特徴とする記録再生装置のファームウェア書き換え方法。
A rewritable program memory for storing a firmware program for performing control processing for recording or reproducing information on a recording medium and a rewriting program for rewriting the firmware program, and information recorded on the recording medium or information reproduced from the recording medium are temporarily stored A method for rewriting a firmware of a recording / reproducing apparatus, comprising: a buffer memory for storing data and a work memory for storing a stack and variables at the time of executing various processes,
Moving the rewrite program stored in the program memory to the work memory; executing the rewrite program stored in the work memory to receive a new firmware program from outside; and receiving the received new firmware program in the buffer Storing in the memory, erasing the firmware program stored in the program memory, writing a new firmware program stored in the buffer memory into the program memory, and rewriting the firmware program stored in the program memory. A method for rewriting firmware in a recording / reproducing apparatus.
請求項5乃至7のいずれか一項に記載の記録再生装置のファームウェア書き換え方法において、前記書き換えプログラムが正常か否かを判断する工程と、該工程によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる工程とを設けたことを特徴とする記録再生装置のファームウェア書き換え方法。   The firmware rewriting method for a recording / reproducing apparatus according to any one of claims 5 to 7, wherein a step of determining whether or not the rewriting program is normal, and a replacement from the outside when the step is determined to be abnormal by the step A firmware rewriting method for a recording / reproducing apparatus, comprising: a step of receiving and executing a rewriting program. コンピュータに、プログラムメモリに記憶された記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに移動する手順と、前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順とを実行させるためのプログラム。   A buffer for temporarily storing information recorded on the recording medium or information reproduced from the recording medium, in a computer, a rewriting program for rewriting a firmware program for performing control processing for recording or reproducing information on the recording medium stored in the program memory The procedure for moving to the memory and the rewriting program stored in the buffer memory are executed to receive a new firmware program from the outside, and the received new firmware program is stored in the buffer memory and stored in the program memory. Erasing the firmware program, writing a new firmware program stored in the buffer memory to the program memory, and rewriting the firmware program stored in the program memory. Program for causing a row. コンピュータに、外部から記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを受信し、該受信した書き換えプログラムを前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに記憶する手順と、前記バッファメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記バッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順とを実行させるためのプログラム。   A computer receives a rewriting program for rewriting a firmware program for performing control processing for recording or reproducing information on the recording medium from outside, and temporarily stores the received rewriting program on the recording medium or information reproduced from the recording medium. A procedure for storing in the buffer memory, and a rewriting program stored in the buffer memory is executed to receive a new firmware program from the outside, and the received new firmware program is stored in the buffer memory. A firmware program stored in the memory is erased, a new firmware program stored in the buffer memory is written into the program memory, and a firmware program stored in the program memory is deleted. Program for executing the procedure to change come. コンピュータに、プログラムメモリに記憶された記録媒体に対する情報の記録又は再生の制御処理を行うファームウェアプログラムを書き換える書き換えプログラムを各種の処理の実行時のスタックと変数とを記憶するワークメモリに移動する手順と、前記ワークメモリに記憶された書き換えプログラムを実行して外部から新しいファームウェアプログラムを受信し、該受信した新しいファームウェアプログラムを前記記録媒体に記録する情報又は記録媒体から再生した情報を一時的に記憶するバッファメモリに記憶し、前記プログラムメモリに記憶されたファームウェアプログラムを消去し、前記バッファメモリに記憶された新しいファームウェアプログラムを前記プログラムメモリに書き込んで前記プログラムメモリに記憶されたファームウェアプログラムを書き換える手順とを実行させるためのプログラム。   A procedure for moving a rewriting program for rewriting a firmware program for performing control processing for recording or reproducing information to / from a recording medium stored in a program memory to a work memory for storing a stack and variables at the time of execution of various types of processing; , Executing a rewriting program stored in the work memory to receive a new firmware program from outside, and temporarily storing the received new firmware program on the recording medium or information reproduced from the recording medium Store in the buffer memory, erase the firmware program stored in the program memory, write a new firmware program stored in the buffer memory to the program memory, and store the firmware program stored in the program memory. Program for executing a procedure for rewriting the wear program. 請求項9乃至11のいずれか一項に記載のプログラムにおいて、前記書き換えプログラムが正常か否かを判断する手順と、該手順によって異常と判断されたときに外部から代わりの書き換えプログラムを受信して実行させる手順とを実行させるためのプログラム。   The program according to any one of claims 9 to 11, wherein a procedure for determining whether or not the rewriting program is normal and a replacement rewriting program received from the outside when determined to be abnormal by the procedure. A program for executing the procedure to be executed. 請求項5乃至11のいずれか一項に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   The computer-readable recording medium which recorded the program as described in any one of Claims 5 thru | or 11.
JP2003317366A 2003-09-09 2003-09-09 Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium Pending JP2005085039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003317366A JP2005085039A (en) 2003-09-09 2003-09-09 Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003317366A JP2005085039A (en) 2003-09-09 2003-09-09 Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium

Publications (1)

Publication Number Publication Date
JP2005085039A true JP2005085039A (en) 2005-03-31

Family

ID=34416975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003317366A Pending JP2005085039A (en) 2003-09-09 2003-09-09 Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP2005085039A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058775A (en) * 2005-08-26 2007-03-08 Toyota Motor Corp Method for manufacturing unit control apparatus, and unit control apparatus
GB2433619A (en) * 2005-12-19 2007-06-27 Realtek Semiconductor Corp Method and system for programming a controller chip
JP2011150383A (en) * 2010-01-19 2011-08-04 Hitachi Medical Corp Firmware writing method
CN114995863A (en) * 2022-08-03 2022-09-02 中国重汽集团济南动力有限公司 Software reprogramming system and software reprogramming method based on reprogramming system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058775A (en) * 2005-08-26 2007-03-08 Toyota Motor Corp Method for manufacturing unit control apparatus, and unit control apparatus
GB2433619A (en) * 2005-12-19 2007-06-27 Realtek Semiconductor Corp Method and system for programming a controller chip
GB2433619B (en) * 2005-12-19 2008-07-16 Realtek Semiconductor Corp Method for programming display controller chip and related apparatus thereof
US7831751B2 (en) 2005-12-19 2010-11-09 Realtek Semiconductor Corp. System and method for programming a display controller chip
JP2011150383A (en) * 2010-01-19 2011-08-04 Hitachi Medical Corp Firmware writing method
CN114995863A (en) * 2022-08-03 2022-09-02 中国重汽集团济南动力有限公司 Software reprogramming system and software reprogramming method based on reprogramming system

Similar Documents

Publication Publication Date Title
RU2344497C2 (en) Method and device of recording and/or reproduction
JP2549810B2 (en) Optical disc manufacturing method
JPH1166751A (en) Information recording and reproducing device
KR20020018115A (en) Media reading apparatus
JP2005085039A (en) Recording and reproducing device, firmware rewriting method for recording and reproducing device, and program and computer-readable recording medium
JP2000357374A (en) Optical disk, recording method for optical disk, and optical disk drive
US6785762B2 (en) Recording/reproducing device having plural disk units which access an information recording medium including a computer readable recording medium
JP2007511033A (en) Information recording medium, recording / reproducing method, and recording / reproducing apparatus
JP2004253109A (en) Information-recording/reproducing device, program, computer-readable recording medium, and method for managing defect area
JP3595550B1 (en) Information recording / reproducing apparatus, information recording / reproducing method, and program
JP2005062981A (en) Optical disk reproducing device
KR100510520B1 (en) Method for recording data
KR20050005749A (en) Recording medium, recording method and recording apparatus
JP3782208B2 (en) Optical disk recording device
JP4270163B2 (en) Recording / reproducing method and disk recording / reproducing apparatus
JP2002251821A (en) Information recording and reproducing device
JP2001351311A (en) Seeking method for optical disk and optical disk driver
JPH11306662A (en) Information recording device
JP4056440B2 (en) Information recording / reproducing apparatus and formatting method
JPH1064066A (en) Optical disk information recording system
KR100738781B1 (en) Method for controlling an access time in a memory
JP4733673B2 (en) Optical disc playback device, optical disc playback method, optical disc playback program, and recording medium
JP2003168213A (en) Optical disk unit
JP2001229028A (en) Disk reproducing device
JP4651603B2 (en) Information recording / reproducing device