JPH10161881A - Data recording and reproducing device capable of downloading of control program - Google Patents

Data recording and reproducing device capable of downloading of control program

Info

Publication number
JPH10161881A
JPH10161881A JP8321742A JP32174296A JPH10161881A JP H10161881 A JPH10161881 A JP H10161881A JP 8321742 A JP8321742 A JP 8321742A JP 32174296 A JP32174296 A JP 32174296A JP H10161881 A JPH10161881 A JP H10161881A
Authority
JP
Japan
Prior art keywords
program
area
backup
download
self
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
JP8321742A
Other languages
Japanese (ja)
Inventor
Yuu Kasebayashi
祐 加瀬林
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP8321742A priority Critical patent/JPH10161881A/en
Publication of JPH10161881A publication Critical patent/JPH10161881A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable a user to change a control program of a data recording/ reproducing device and also to recover the abnormality if occurred while the control program is changed. SOLUTION: When an FW download command is received from a host device, a CPU carries out the FW download processing based on a loader program 118 which is stored in a loader part 114 of a flash ROM 11. Then the CPU downloads a program to a main program part 111 with no use of a master password as long as an instruction is given for the change in the contents of the part 111 of the ROM 11 which is designated as a changeable area #1. In addition, the CPU downloads a program to a basic disk access program part 112 only with a command having a master password as long as an instruction is given for the change in the contents of the part 112 which is designated as a changeable area #2.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、制御用プログラム
のダウンロードが可能なデータ記録再生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording / reproducing apparatus capable of downloading a control program.

【0002】[0002]

【従来の技術】情報の記録再生を行うデータ記録再生装
置の代表的なものの1つに磁気ディスク装置がある。こ
の磁気ディスク装置の動作は、制御用プログラム(制御
用ファームウェア)によって制御されるのが一般的であ
る。
2. Description of the Related Art A magnetic disk drive is one of typical data recording / reproducing apparatuses for recording / reproducing information. The operation of the magnetic disk device is generally controlled by a control program (control firmware).

【0003】制御用プログラムは磁気ディスク装置(磁
気ディスクドライブ)のプリント基板(PCΒ)上に実
装されるROΜ(Read Only Memory)に格納されてい
る。通常、制御用プログラムはそのドライブの製造時に
確定しており、変更されることはない。但し、製造者側
で制御用プログラムを変更する場合がある。そのため、
ROMには書き換え可能なフラッシュROM(FRO
M)が使用され、専用のテスターと特殊なポートを介し
て、当該フラッシュROM上の制御プログラムを入れ替
えることができるようになっていた。
A control program is stored in an RO (Read Only Memory) mounted on a printed circuit board (PC) of a magnetic disk device (magnetic disk drive). Normally, the control program is determined at the time of manufacture of the drive and is not changed. However, the manufacturer may change the control program. for that reason,
The rewritable flash ROM (FRO)
M) was used, and the control program on the flash ROM could be exchanged through a dedicated tester and a special port.

【0004】一方、近年は、プログラムのダウンロード
機能の規格化が進んでいる。これは特殊な用途で使用す
る制御プログラムをユーザ側でインタフェースを介して
ロードできるようにするものである。この機能によれ
ば、例えば保守用プログラムを磁気ディスク装置のバッ
ファ上にロードし、この状態でこのプログラムを実行す
ることができる。
On the other hand, in recent years, standardization of a program download function has been advanced. This enables a user to load a control program used for a special purpose through an interface. According to this function, for example, a maintenance program can be loaded on the buffer of the magnetic disk device, and the program can be executed in this state.

【0005】[0005]

【発明が解決しようとする課題】ところで、磁気ディス
ク装置の制御用プログラムは機能拡張等によりバージョ
ンアップされる。しかし、現在、制御用プログラムを変
更するには、磁気ディスク装置をホスト装置(システ
ム)から取り外して製造元に戻し、製造元にて変更作業
を行わなければならない。また、上記のダウンロード機
能の規格化を進めることで、システム上でユーザが磁気
ディスク装置の制御用プログラムを変更することも可能
となるが、制御用プログラムの変更中に電源遮断等の異
常が生じると装置が回復できなくなり、システム全体に
致命的な影響を及ぼす等の問題が予測される。このた
め、ユーザがシステム上で制御用プログラムの変更が可
能な磁気ディスク装置を開発する際には、種々の異常が
発生しても、システム全体に致命的な影響を及ぼさない
ような工夫が必要となる。
By the way, the control program of the magnetic disk drive is upgraded by a function extension or the like. However, at present, in order to change the control program, the magnetic disk device must be removed from the host device (system), returned to the manufacturer, and the manufacturer must perform the change operation. Further, by promoting the standardization of the download function, it is possible for a user to change the control program of the magnetic disk device on the system. In such a case, the device cannot be recovered, and problems such as a fatal influence on the entire system are expected. For this reason, when developing a magnetic disk drive that allows the user to change the control program on the system, it is necessary to take measures to prevent the occurrence of various abnormalities from having a fatal effect on the entire system. Becomes

【0006】以上の点は、磁気ディスク装置に限らず、
制御用プログラムに従って(不揮発性の)記録媒体を対
象とする情報の記録再生を行うデータ記録再生装置全般
に共通である。
[0006] The above points are not limited to magnetic disk devices.
The present invention is common to all data recording / reproducing apparatuses for recording / reproducing information on a (non-volatile) recording medium in accordance with a control program.

【0007】本発明は上記事情を考慮してなされたもの
でその目的は、ユーザが(システム上で)データ記録再
生装置の制御用プログラムを変更でき、しかもその際に
異常が発生しても回復可能なデータ記録再生装置を提供
することにある。
The present invention has been made in consideration of the above circumstances, and has as its object to enable a user to change a control program of a data recording / reproducing apparatus (on a system) and to recover even if an abnormality occurs at that time. It is an object of the present invention to provide a possible data recording / reproducing device.

【0008】[0008]

【課題を解決するための手段】本発明の第1の観点に係
るデータ記録再生装置は、内容の変更が可能な変更可能
領域として定義され、上記データ記録再生装置を制御す
るための制御用プログラムが格納された制御用プログラ
ム領域、及び内容の変更が禁止される変更禁止領域とし
て定義され、上記制御用プログラムを変更するためのロ
ーダプログラムが格納されたローダ領域が割り当てられ
た書き換え可能な不揮発性メモリと、ホスト装置とのイ
ンタフェースをなすホストインタフェースと、上記制御
用プログラム及びローダプログラムを実行するプログラ
ム実行手段とを備え、上記ローダプログラムに次のプロ
グラムダウンロード機能、即ちホスト装置からホストイ
ンタフェースに、プログラムの変更先領域を指定すると
共に当該指定の変更先領域へのプログラムのダウンロー
ドを指示するプログラムダウンロードコマンドが送られ
た場合に当該コマンドの指示するプログラムダウンロー
ド処理を行い、当該コマンドの指定する変更先領域が上
記書き換え可能不揮発性メモリ上の制御用プログラム領
域である場合に限り、当該コマンドで指示されたプログ
ラムをホスト装置から上記第1のプログラム領域にダウ
ンロードするプログラムダウンロード機能を持たせたこ
とを特徴とする。ここで、変更可能領域と変更禁止領域
とは、ローダプログラムにより定義(管理)される構成
とするとよい。
A data recording / reproducing apparatus according to a first aspect of the present invention is defined as a changeable area in which contents can be changed, and has a control program for controlling the data recording / reproducing apparatus. Is defined as a control program area in which a loader program is stored, and a loader area in which a loader program for changing the control program is stored. A memory, a host interface serving as an interface with the host device, and a program executing means for executing the control program and the loader program. Specify the change destination area and change the specified When a program download command instructing the download of the program to the destination area is sent, the program download processing instructed by the command is performed, and the change destination area specified by the command is the control program in the rewritable nonvolatile memory. Only in the case of an area, a program download function for downloading a program specified by the command from the host device to the first program area is provided. Here, the changeable area and the change prohibition area may be defined (managed) by a loader program.

【0009】このような構成においては、ユーザはホス
ト装置(システム)上より制御用プログラム(FW)の
書き換えができる。しかも、書き換え可能不揮発性メモ
リ(例えばフラッシュROM)上のローダ領域に保存さ
れているローダプログラムは、当該ローダ領域が書き込
み禁止領域として定義されているので変更される恐れは
なく、したがって異常が発生した場合でも、このローダ
プログラムに従う再度の制御用プログラムの変更(ダウ
ンロード)を行うことができる。
In such a configuration, the user can rewrite the control program (FW) from the host device (system). Moreover, the loader program stored in the loader area on the rewritable nonvolatile memory (for example, flash ROM) is not changed since the loader area is defined as a write-protected area, and therefore, an abnormality occurs. Even in this case, the control program can be changed (downloaded) again according to the loader program.

【0010】本発明の第2の観点に係るデータ記録再生
装置は、上記第1の観点に係るデータ記録再生装置で適
用される制御用プログラムを、記録媒体をアクセスする
のに必要な最小限の制御を司る第2のプログラムと、そ
れ以外の制御を司る第1のプログラムとに分け、上記書
き換え可能不揮発性メモリには、特別なパスワードの指
定なしに内容の変更が可能な第1の変更可能領域として
定義され、上記第1のプログラムが格納された第1のプ
ログラム領域、特別のパスワードの指定のもとで内容の
変更が可能な第2の変更可能領域として定義され、上記
第2のプログラムが格納された第2のプログラム領域、
及び内容の変更が禁止される変更禁止領域として定義さ
れ、上記第1及び第2のプログラムを変更するためのロ
ーダプログラムが格納されたローダ領域を割り当て、上
記ローダプログラムには、ホスト装置からパスワード付
きのプログラムダウンロードコマンドが送られた場合
に、当該コマンドの指示するプログラムダウンロード処
理を行い、当該コマンドの指定する変更先領域が上記書
き換え可能不揮発性メモリ上の第1のプログラム領域で
ある場合には、特別のパスワードなしに当該コマンドで
指示されたプログラムをホスト装置から上記第1のプロ
グラム領域にダウンロードし、当該コマンドの指定する
変更先領域が上記書き換え可能不揮発性メモリ上の第2
のプログラム領域である場合には、当該コマンドに付さ
れているパスワードが上記特別のパスワードに一致する
場合に限り、当該コマンドで指示されたプログラムをホ
スト装置から第2のプログラム領域にダウンロードする
プログラムダウンロード機能を持たせたことを特徴とす
る。
[0010] A data recording / reproducing apparatus according to a second aspect of the present invention includes a control program applied to the data recording / reproducing apparatus according to the first aspect described above, which is a minimum program necessary for accessing a recording medium. Divided into a second program that controls the control and a first program that controls the other control, the rewritable nonvolatile memory has a first changeable content whose contents can be changed without specifying a special password. A first program area in which the first program is stored, and a second changeable area in which the contents can be changed under the specification of a special password; A second program area in which is stored
And a loader area in which a loader program for changing the first and second programs is stored, which is defined as a change-prohibited area in which the contents are prohibited from being changed. When the program download command is sent, the program download processing instructed by the command is performed, and when the change destination area specified by the command is the first program area on the rewritable nonvolatile memory, The program designated by the command is downloaded from the host device to the first program area without a special password, and the change destination area specified by the command is stored in the second program area on the rewritable nonvolatile memory.
In the case of the program area, the program download which downloads the program specified by the command from the host device to the second program area only when the password attached to the command matches the special password. It is characterized by having functions.

【0011】このような構成においては、書き換え可能
不揮発性メモリ(例えばフラッシュROM)上の、デー
タ記録再生装置にとって重要な第2のプログラム領域の
内容、即ち記録媒体をアクセスするのに必要な最小限の
制御を司る第2のプログラムが一般ユーザにより不用意
に変更されるのを、特別なパスワード(マスタパスワー
ド)の適用によりプロテクトすることができる。
In such a configuration, the contents of the second program area important for the data recording / reproducing apparatus on the rewritable nonvolatile memory (for example, flash ROM), ie, the minimum necessary for accessing the recording medium, It is possible to protect the second program, which controls the control, from being carelessly changed by a general user by applying a special password (master password).

【0012】本発明の第3の観点に係るデータ記録再生
装置は、上記第1または第2の観点に係るデータ記録再
生装置における記録媒体に、上記書き換え可能不揮発性
メモリに格納されている制御用プログラムのバックアッ
プデータが保存されたバックアップ領域を割り当てると
共に、上記ローダプログラムに次のバックアップ機能、
即ち上記プログラムダウンロードコマンドの指示するダ
ウンロードに失敗した場合に、上記記録媒体上のバック
アップ領域の内容により上記書き換え可能不揮発性メモ
リを元の状態に回復させるバックアップ機能を持たせた
ことを特徴とする。
A data recording / reproducing apparatus according to a third aspect of the present invention provides a data recording / reproducing apparatus according to the first or second aspect, wherein a recording medium for control stored in the rewritable non-volatile memory is provided. In addition to allocating a backup area where the backup data of the program is stored, the following backup function is added to the loader program,
That is, a backup function is provided for restoring the rewritable non-volatile memory to its original state based on the contents of the backup area on the recording medium when the download specified by the program download command fails.

【0013】ここで、上記バックアップ機能に、プログ
ラムダウンロードコマンドの指示するダウンロードを開
始する際またはダウンロードが正常終了した後に、当該
コマンドの指定する変更先領域の変更前または変更後の
内容を上記記憶媒体のバックアップ領域に保存する機能
を付加するとよい。また、上記バックアップ領域を複数
確保する(例えば記憶媒体が磁気ディスク等のディスク
メディアの場合であれば、それぞれ異なるディスク面の
少なくとも2つに上記バックアップ領域を確保する)と
よい。
[0013] When the download specified by the program download command is started or after the download is normally completed, the contents before or after the change of the change destination area specified by the command are stored in the backup function in the storage medium. It is good to add a function to save the data in the backup area. Further, it is preferable to secure a plurality of the backup areas (for example, when the storage medium is a disk medium such as a magnetic disk, the backup areas are secured on at least two different disk surfaces).

【0014】このような構成においては、プログラムダ
ウンロードが異常となったり、ダウンロード中の電源遮
断等によりダウンロードが中断した場合、即ちプログラ
ムダウンロードに失敗した場合に、ローダプログラムの
バックアップ機能により記録媒体上のバックアップ領域
の内容を書き換え可能不揮発性メモリに転送すること
で、当該不揮発性メモリの内容を元の状態に回復し、デ
ータ記録再生装置の機能を回復することができる。
In such a configuration, when the program download becomes abnormal or the download is interrupted due to power cutoff during the download, that is, when the program download fails, the backup function of the loader program is used to store the program on the recording medium. By transferring the contents of the backup area to the rewritable nonvolatile memory, the contents of the nonvolatile memory can be restored to the original state, and the function of the data recording / reproducing device can be restored.

【0015】特に、プログラムダウンロード時に、ダウ
ンロード先領域(プログラム変更先領域)のダウンロー
ド(プログラム変更)前の内容を上記バックアップ領域
に保存する機能を上記ローダプログラムに持たせた場合
には、プログラムダウンロードに失敗しても、常にダウ
ンロード(変更)前の最新のプログラムを書き換え可能
不揮発性メモリに再ロードすることができる。
In particular, when the loader program is provided with a function of saving the contents before downloading (program change) of the download destination area (program change destination area) to the backup area at the time of downloading the program, Even if it fails, the latest program before download (change) can always be reloaded into the rewritable nonvolatile memory.

【0016】また、バックアップ領域を複数備えた場合
には、書き換え可能不揮発性メモリから記憶媒体上のバ
ックアップ領域にバックアップのためにプログラムを転
送している間に電源遮断等の異常が発生し、そのバック
アップ領域のバックアップデータが異常となったとして
も、他のバックアップ領域の正常なバックアップデータ
を選択的に利用して書き換え可能不揮発性メモリの内容
を元の状態に回復することができる。なお、バックアッ
プ領域を1つしか用意しない場合には、当該バックアッ
プ領域に変更前または変更後の内容を保存した後に、正
しく保存されていることを確認するためのベリファイを
行い、当該バックアップ領域の内容が保証できるように
するとよい。
In the case where a plurality of backup areas are provided, an abnormality such as power interruption occurs during the transfer of the program for backup from the rewritable nonvolatile memory to the backup area on the storage medium. Even if the backup data in the backup area becomes abnormal, the contents of the rewritable nonvolatile memory can be restored to the original state by selectively using the normal backup data in another backup area. If only one backup area is prepared, the contents before and after the change are saved in the backup area, and a verification is performed to confirm that the contents are correctly saved. Should be guaranteed.

【0017】本発明の第4の観点に係るデータ記録再生
装置は、上記第3の観点に係るデータ記録再生装置にお
ける書き換え可能不揮発性メモリに、内容の変更が禁止
される変更禁止領域として定義され、上記プログラムダ
ウンロード処理が正しく行われたか否かを自己診断する
ための上記プログラム実行手段により実行可能な自己診
断プログラムが格納された自己診断領域を割り当て、上
記ローダプログラムに次の自己診断機能、即ち上記プロ
グラムダウンロードコマンドの指定する領域へのプログ
ラムダウンロードが行われた後に上記プログラム実行手
段により上記自己診断プログラムを実行させる自己診断
制御機能を持たせたことを特徴とする。
A data recording / reproducing apparatus according to a fourth aspect of the present invention is defined in a rewritable nonvolatile memory in the data recording / reproducing apparatus according to the third aspect, as a change-prohibited area in which a change in content is prohibited. Allocating a self-diagnosis area storing a self-diagnosis program executable by the program execution means for self-diagnosis as to whether or not the program download process has been correctly performed, and assigning the following self-diagnosis function to the loader program: A self-diagnosis control function for causing the program execution means to execute the self-diagnosis program after the program is downloaded to an area designated by the program download command.

【0018】ここで、自己診断プログラムに従う自己診
断処理では、上記書き換え可能不揮発性メモリに格納さ
れているダウンロード後の制御用プログラムを使用して
データ記録再生装置の基本動作を行わせることで正しく
ダウンロードできたか否かを診断(テスト)するとよ
い。この基本動作は、例えば、記憶媒体を対象とするラ
イト/リードデータを一時格納するバッファメモリのア
クセスと、記憶媒体を対象とするライト/リード動作と
を含む。また、記憶媒体を対象とするライト/リード動
作のテストのために、記憶媒体上に専用のテスト領域を
確保しておくとよい。
Here, in the self-diagnosis processing according to the self-diagnosis program, the basic operation of the data recording / reproducing apparatus is performed by using the downloaded control program stored in the rewritable nonvolatile memory so that the data can be correctly downloaded. It is better to make a diagnosis (test) as to whether or not the test was successful. This basic operation includes, for example, access to a buffer memory for temporarily storing write / read data for a storage medium and write / read operation for a storage medium. Further, it is preferable to secure a dedicated test area on the storage medium for a test of the write / read operation for the storage medium.

【0019】また、上記第2の観点に係るデータ記録再
生装置のように、書き換え可能不揮発性メモリ上の制御
用プログラム領域を、制御用プログラム中の第1のプロ
グラムを格納する第1のプログラム領域と、制御用プロ
グラム中の第1プログラムを除くプログラムである第2
のプログラムを格納する第2のプログラム領域とに分け
て管理する場合には、上記ローダプログラムのバックア
ップ機能に次の機能、即ち上記自己診断プログラムが実
行された結果、上記書き換え可能不揮発性メモリ上の第
1のプログラム領域の内容に異常が認められ、且つ上記
第2のプログラム領域の内容に異常が認められなかった
場合には、上記記録媒体上のバックアップ領域に格納さ
れている制御用プログラムのバックアップデータのうち
の上記第1のプログラムのバックアップデータを上記第
2のプログラム領域に格納されている第2のプログラム
を使用して上記第1のプログラム領域に転送し、上記第
2のプログラム領域の内容に異常が認められた場合に
は、上記データ記録再生装置をノットレディ状態とする
機能を付加するとよい。
Further, as in the data recording / reproducing apparatus according to the second aspect, the control program area on the rewritable nonvolatile memory is replaced with a first program area for storing a first program in the control program. And a second program which is a program excluding the first program in the control program.
When the program is managed separately from the second program area storing the program, the following function is added to the backup function of the loader program, that is, as a result of execution of the self-diagnosis program, If an abnormality is found in the contents of the first program area and no abnormality is found in the contents of the second program area, the backup of the control program stored in the backup area on the recording medium is performed. Transferring backup data of the first program from the data to the first program area using the second program stored in the second program area, and transferring the contents of the second program area If an abnormality is found in the data recording / reproducing device, a function to set the data recording / reproducing device to the not-ready state should be added. .

【0020】このような構成においては、プログラムダ
ウンロードが行われた後に自己診断プログラムが起動さ
れ、新たにダウンロードされた制御用プログラムの信頼
性がチェックされるため、プログラムダウンロード終了
後のシステム(ホスト装置)動作を保証することができ
る。
In such a configuration, the self-diagnosis program is started after the program is downloaded, and the reliability of the newly downloaded control program is checked. ) Operation can be guaranteed.

【0021】特に、データ記録再生装置の基本動作であ
るバッファメモリのアクセスと、記憶媒体を対象とする
ライト/リード動作とを記憶媒体上のテスト領域を用い
てチェックする自己診断機能を適用した場合、新たにダ
ウンロードされた制御用プログラムでの最低の機能の動
作を確認できるため、簡単な自己診断処理でシステムの
動作を保証できる。
In particular, when a self-diagnosis function of checking a buffer memory access, which is a basic operation of the data recording / reproducing apparatus, and a write / read operation for a storage medium using a test area on the storage medium is applied. Since the operation of the lowest function in the newly downloaded control program can be confirmed, the operation of the system can be guaranteed by a simple self-diagnosis process.

【0022】なお、プログラムダウンロードはデータ記
録再生装置がシステム(ホスト装置)に組み込まれた状
態で行われるため、上記のように新たにダウンロードさ
れた制御用プログラムの信頼性チェックを行わないなら
ば、ダウンロード後の制御用プログラムに異常がある
と、システム全体が異常となる危険性がある。
Since the program download is performed with the data recording / reproducing apparatus incorporated in the system (host device), if the reliability check of the newly downloaded control program is not performed as described above, If there is an error in the control program after downloading, there is a risk that the entire system will become abnormal.

【0023】本発明の第5の観点に係るデータ記録再生
装置は、上記第4の観点に係るデータ記録再生装置に、
プログラムダウンロード処理が開始される際に設定され
てプログラムダウンロード処理中を示し、プログラムダ
ウンロード処理が正常に終了した際に設定解除されるフ
ラグ情報を設定するためのフラグ情報設定領域が割り当
てられた書き換え可能な不揮発性記憶手段を備えると共
に、当該データ記録再生装置で適用されるローダプログ
ラムに、プログラムダウンロードコマンドの指定する領
域へのプログラムダウンロードが行われた後だけでな
く、当該データ記録再生装置の電源が投入され、且つ上
記フラグ情報設定領域にプログラムダウンロード処理中
であることを示すフラグ情報が設定されている場合に
も、上記プログラム実行手段により上記自己診断プログ
ラムを実行させる自己診断制御機能を持たせたことを特
徴とする。
A data recording / reproducing apparatus according to a fifth aspect of the present invention is the data recording / reproducing apparatus according to the fourth aspect,
Set when the program download process is started, indicating that the program download process is in progress, and rewritable with a flag information setting area assigned to set flag information to be cleared when the program download process ends normally And a loader program applied to the data recording / reproducing device, not only after the program has been downloaded to the area specified by the program download command, but also the power of the data recording / reproducing device. A self-diagnosis control function for causing the program execution means to execute the self-diagnosis program even when flag information indicating that the program is being downloaded is set in the flag information setting area is set. It is characterized by the following.

【0024】このような構成においては、プログラムダ
ウンロード中に電源遮断等の異常が発生した場合には、
フラグ情報設定領域にプログラムダウンロード処理中で
あることを示すフラグ情報が設定されていることから、
次の電源投入時に自己診断プログラムが起動されて、そ
のプログラムダウンロードが正常に行われたか否かがチ
ェックされ、異常が認められた場合には(プログラムダ
ウンロード処理の終了時の自己診断で異常が認められた
場合と同様に)記録媒体上のバックアップ領域の内容が
書き換え可能不揮発性メモリに転送される。これによ
り、プログラムダウンロード中に電源遮断等の異常が生
じたとしても、次の電源投入時にデータ記録再生装置の
機能を回復させるこができ、システムの信頼性を確保す
ることができる。
In such a configuration, when an abnormality such as power shutoff occurs during program download,
Since flag information indicating that the program is being downloaded is set in the flag information setting area,
The next time the power is turned on, the self-diagnosis program is started and it is checked whether or not the program has been downloaded normally. Then, the contents of the backup area on the recording medium are transferred to the rewritable nonvolatile memory. As a result, even if an abnormality such as power interruption occurs during program download, the function of the data recording / reproducing apparatus can be restored at the next power-on, and the reliability of the system can be ensured.

【0025】本発明の第6の観点に係るデータ記録再生
装置は、上記第4または第5の観点に係るデータ記録再
生装置において、書き換え可能不揮発性メモリ上の制御
用プログラム領域を、制御用プログラム中の第1のプロ
グラムを格納する第1のプログラム領域と、制御用プロ
グラム中の第1プログラムを除くプログラムである第2
のプログラムを格納する第2のプログラム領域とに分け
て管理する構成を適用する場合に、自己診断プログラム
が実行された結果、上記書き換え可能不揮発性メモリ上
の第1のプログラム領域の内容に異常が認められても、
上記第2のプログラム領域の内容に異常が認められなか
ったときには、当該第2のプログラム領域に格納されて
いる第2のプログラム、即ち記録媒体をアクセスするの
に必要な最小限の制御を司る第2のプログラムを利用し
て記録媒体上のバックアップ領域から第1のプログラム
のバックアップデータを読み出して第1のプログラム領
域に転送する機能を上記バックアップ機能に付加したこ
とを特徴とする。
A data recording / reproducing apparatus according to a sixth aspect of the present invention is the data recording / reproducing apparatus according to the fourth or fifth aspect, wherein the control program area on the rewritable nonvolatile memory is replaced by a control program. A first program area for storing the first program in the program, and a second program area other than the first program in the control program.
In a case where a configuration in which the self-diagnostic program is executed is applied to a configuration in which the program is managed separately from the second program area for storing the program, an abnormality occurs in the contents of the first program area on the rewritable nonvolatile memory. Even if it is accepted,
If no abnormality is found in the contents of the second program area, the second program stored in the second program area, that is, the second program that controls the minimum control required to access the recording medium The function of reading the backup data of the first program from the backup area on the recording medium using the second program and transferring the data to the first program area is added to the backup function.

【0026】このような構成においては、バックアップ
のために上記ローダプログラムに上記第2のプログラム
に相当するアクセス機能を持たせなくて済む。ここで
は、第2のプログラム領域の内容に異常が認められた場
合には、記録媒体上のバックアップ領域をアクセスでき
ないため、当該バックアップ領域のバックアップデータ
を利用したバックアップ処理は行えないが、データ記録
再生装置をノットレディ状態とすることにより、ホスト
装置から再度プログラムダウンロードコマンドを発行さ
せて、再度のプログラムダウンロード処理を行うことが
可能となるため、データ記録再生装置の機能を回復でき
る。
In such a configuration, the loader program does not need to have an access function corresponding to the second program for backup. Here, if an abnormality is found in the contents of the second program area, the backup area on the recording medium cannot be accessed, so that backup processing using the backup data in the backup area cannot be performed. By setting the device in the not-ready state, it becomes possible to issue a program download command again from the host device and perform the program download process again, so that the function of the data recording / reproducing device can be restored.

【0027】[0027]

【発明の実施の形態】以下、本発明の実施の形態につき
図面を参照して説明する。図1は本発明の一実施形態に
係る磁気ディスク装置の構成を示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a magnetic disk drive according to one embodiment of the present invention.

【0028】図1において、1はデータが記録される媒
体(メディア)であるディスク(磁気ディスク)、2は
ディスク1へのデータ書き込み(データ記録)及びディ
スク1からのデータ読み出し(データ再生)に用いられ
るヘッド(磁気ヘッド)である。ここでは、ディスク1
は複数枚(図では3枚)積層して設けられており、ヘッ
ド2は各ディスク1の各データ面に対応してそれぞれ設
けられている。
In FIG. 1, reference numeral 1 denotes a disk (magnetic disk) as a medium on which data is recorded, and 2 denotes data writing (data recording) to the disk 1 and data reading (data reproduction) from the disk 1. This is the head (magnetic head) used. Here, disk 1
Are provided in layers (three in the figure), and the heads 2 are provided corresponding to the respective data surfaces of the respective disks 1.

【0029】ディスク1の両面には同心円状の多数のト
ラックが形成され、各トラックには、位置決め制御等に
用いられる(シリンダ番号を示すシリンダデータ及びシ
リンダデータの示すシリンダ内の位置誤差を波形の振幅
で示すためのバーストデータを含む)サーボデータが記
録された複数のサーボ領域が等間隔で配置されている。
これらのサーボ領域は、ディスク1上では中心から各ト
ラックを渡って放射状に配置されている。サーボ領域間
はユーザ領域となっている。各サーボ領域間のユーザ領
域には、複数のデータセクタが設定される。
A large number of concentric tracks are formed on both surfaces of the disk 1, and each track is used for positioning control and the like (cylinder data indicating a cylinder number and a positional error in the cylinder indicated by the cylinder data indicating a waveform error). A plurality of servo areas on which servo data (including burst data for indicating amplitude) are recorded are arranged at equal intervals.
These servo areas are radially arranged on the disk 1 over the respective tracks from the center. The area between the servo areas is a user area. A plurality of data sectors are set in the user area between the servo areas.

【0030】各ディスク1の各面の(例えば内周側の)
所定領域には、図2に示すように、それぞれシステムエ
リア101が割り当てられている。このシステムエリア
101は、データエリア102とは別の領域に設定され
ており、対応するディスク面のディフェクトの情報(デ
ィフェクトリスト)等の保存に用いられる。また、各デ
ィスク1の各面に設けられたシステムエリア101のう
ち、少なくとも2つのシステムエリア101には、図2
に示すように、後述するフラッシュROM11に格納さ
れている制御プログラムをバックアップしておくための
バックアップ領域103、及び後述する基本ディスクア
クセスFW116を用いたディスクアクセスが正常に行
えるか否かをチェックするのに用いられるテスト領域1
04が確保されている。
Each surface of each disk 1 (for example, on the inner peripheral side)
As shown in FIG. 2, a system area 101 is allocated to each of the predetermined areas. The system area 101 is set in a different area from the data area 102, and is used for storing information (defect list) of the defect on the corresponding disk surface. In addition, at least two system areas 101 among the system areas 101 provided on each surface of each disk 1 have the configuration shown in FIG.
As shown in FIG. 7, it is checked whether the backup area 103 for backing up the control program stored in the flash ROM 11 described later and whether the disk access using the basic disk access FW 116 described later can be normally performed. Test area 1 used for
04 is reserved.

【0031】ディスク1はスピンドルモータ(SPM)
3により高速に回転する。ヘッド2はキャリッジ4と称
するヘッド移動機構に取り付けられて、このキャリッジ
4の移動によりディスク1の半径方向に移動する。キャ
リッジ4は、ボイスコイルモータ(VCM)5により駆
動される。
Disk 1 is a spindle motor (SPM)
3. High speed rotation. The head 2 is attached to a head moving mechanism called a carriage 4, and moves in the radial direction of the disk 1 by the movement of the carriage 4. The carriage 4 is driven by a voice coil motor (VCM) 5.

【0032】スピンドルモータ3及びボイスコイルモー
タ5は、モータドライバ6に接続されている。モータド
ライバ6は、スピンドルモータ3に制御電流を流して当
該モータ3を駆動する他、ボイスコイルモータ5に制御
電流を流して当該モータ5を駆動する。この制御電流の
値(制御量)は、CPU(マイクロプロセッサ)10の
計算処理で決定され、例えばディジタル値で与えられ
る。
The spindle motor 3 and the voice coil motor 5 are connected to a motor driver 6. The motor driver 6 drives the motor 3 by supplying a control current to the spindle motor 3 and drives the motor 5 by supplying a control current to the voice coil motor 5. The value of the control current (control amount) is determined by calculation processing of the CPU (microprocessor) 10, and is given, for example, as a digital value.

【0033】各ヘッド2はフレキシブルプリント配線板
(FPC)に実装されたヘッドIC7と接続されてい
る。ヘッドIC7は、ヘッド2の切り替え、ヘッド2と
の間のリード/ライト信号の入出力等を司るもので、ヘ
ッド2で読み取られたアナログ出力を増幅するヘッドア
ンプ71を有する。
Each head 2 is connected to a head IC 7 mounted on a flexible printed circuit (FPC). The head IC 7 controls switching of the head 2 and inputs and outputs read / write signals to and from the head 2, and has a head amplifier 71 that amplifies an analog output read by the head 2.

【0034】リード/ライトIC8は、ヘッド2により
ディスク1から読み出されてヘッドIC7内のヘッドア
ンプ71で増幅されたアナログ出力(ヘッド2のリード
信号)を入力し、データ再生動作に必要な信号処理を行
うデコード機能と、ディスク1へのデータ記録に必要な
信号処理を行うエンコード機能と、ヘッド位置決め制御
等のサーボ処理に必要なサーボデータの再生処理(サー
ボデータ中のバーストデータを抽出する処理を含む)を
行う信号処理機能とを有する。
The read / write IC 8 receives an analog output (read signal of the head 2) read from the disk 1 by the head 2 and amplified by the head amplifier 71 in the head IC 7, and receives a signal necessary for a data reproducing operation. A decoding function for performing processing, an encoding function for performing signal processing necessary for recording data on the disk 1, and a reproduction processing of servo data necessary for servo processing such as head positioning control (a processing for extracting burst data in the servo data) And a signal processing function for performing the above.

【0035】サーボ処理回路9は、リード/ライトIC
8で再生されたサーボデータを受けてサーボ処理に必要
な信号処理を実行する。即ちサーボ処理回路9は、サー
ボデータ中のシリンダデータ(シリンダ番号)等を抽出
・復号するデコード機能、及びライトゲート等のタイミ
ング生成機能を有する。またサーボ処理回路9は、リー
ド/ライトIC8で抽出されたバーストデータ(アナロ
グ信号)をA/D(アナログ/ディジタル)変換してC
PU10に出力するA/D変換機能も有する。
The servo processing circuit 9 includes a read / write IC
In step 8, signal processing necessary for servo processing is executed upon receiving the reproduced servo data. That is, the servo processing circuit 9 has a decoding function for extracting and decoding cylinder data (cylinder number) and the like in the servo data, and a timing generation function such as a write gate. The servo processing circuit 9 performs A / D (analog / digital) conversion of the burst data (analog signal) extracted by the read / write IC 8 and performs C / D conversion.
It also has an A / D conversion function for outputting to the PU 10.

【0036】CPU10は、例えばワンチップのマイク
ロプロセッサである。このCPU10は、フラッシュR
OM11に格納されている制御用プログラム(以下、F
Wと称する)に従って磁気ディスク装置内の各部を制御
する。即ちCPU10は、サーボ処理回路9により抽出
されたサーボデータ(中のシリンダデータ及びバースト
データ)に従って(モータドライバ6を介してボイスコ
イルモータ5を駆動制御することで)ヘッド2を目的位
置に移動させるための位置決め制御、HDC14を制御
することによるリード/ライトデータの転送制御など周
知の制御を行う。
The CPU 10 is, for example, a one-chip microprocessor. This CPU 10 has a flash R
The control program (hereinafter referred to as F
W) is controlled in accordance with each section in the magnetic disk drive. That is, the CPU 10 moves the head 2 to a target position (by controlling the driving of the voice coil motor 5 via the motor driver 6) in accordance with the servo data (cylinder data and burst data therein) extracted by the servo processing circuit 9. A well-known control such as positioning control for controlling the read / write data by controlling the HDC 14 is performed.

【0037】またCPU10は、ローダプログラムに従
うFWダウンロード処理、ローダプログラム(と基本デ
ィスクアクセス制御プログラム)に従うFWバックアッ
プ管理、FWダウンロード時の自己診断プログラムに従
う自己診断処理等、本発明に直接関係する制御(処理)
を行う。
The CPU 10 also performs control (eg, FW download processing according to the loader program), FW backup management according to the loader program (and the basic disk access control program), and self-diagnosis processing according to the self-diagnosis program at the time of FW download. processing)
I do.

【0038】CPU10には、磁気ディスク装置内の各
部を制御するためのFW(制御用プログラム、制御用フ
ァームウェア)等が格納されている書き換え可能な不揮
発性メモリ(書き換え可能なROM)としてのフラッシ
ュROM11と、CPU10のワーク領域、CPU10
が使用する制御用パラメータの記憶領域等を提供する書
き換え可能な揮発性メモリとしてのRAM12とが接続
されている。
The CPU 10 has a flash ROM 11 as a rewritable non-volatile memory (rewritable ROM) storing an FW (control program, control firmware) and the like for controlling each unit in the magnetic disk device. And the work area of the CPU 10
Is connected to a RAM 12 as a rewritable volatile memory that provides a storage area for control parameters used by the controller.

【0039】フラッシュROM11には、図3に示すよ
うに、メインプログラム部111、基本ディスクアクセ
スプログラム部112、自己診断部113、及びローダ
部114が確保されている。
As shown in FIG. 3, a main program unit 111, a basic disk access program unit 112, a self-diagnosis unit 113, and a loader unit 114 are secured in the flash ROM 11.

【0040】メインプログラム部111は、ディスク1
に対するリード/ライト等の基本動作(ディスクアクセ
ス動作)を除くディスク制御一般を司るためのディスク
制御プログラム(以下、メインFWと称する)115を
保存しておく領域(メインFW領域)であり、基本ディ
スクアクセスプログラム部112は、ディスク1(メデ
ィア)に対するリード/ライト等の基本的なアクセス動
作(ディスクアクセス動作)を制御するための基本ディ
スクアクセス制御プログラム(以下、基本ディスクアク
セスFWと称する)116を保存しておく領域(基本デ
ィスクアクセスFW領域)である。
The main program unit 111 stores the data in the disk 1
An area (main FW area) for storing a disk control program (hereinafter, referred to as main FW) 115 for controlling general disk control except for basic operations (disk access operations) such as read / write for the basic disk. The access program unit 112 stores a basic disk access control program (hereinafter, referred to as basic disk access FW) 116 for controlling basic access operations (disk access operations) such as read / write to the disk 1 (media). (Basic disk access FW area).

【0041】これらプログラム部111,112は、外
部からその内容(FW)を変更することが許される変更
可能領域#1,#2として定義される。但し、変更可能
領域#1(メインプログラム部111)の内容は一般ユ
ーザにより変更可能であるものの、変更可能領域#2
(基本ディスクアクセスプログラム部112)の内容の
一般ユーザによる変更は禁止される。この領域#2の内
容の変更には、マスタパスワードと呼ばれる特別なパス
ワードが必要となる。
The program sections 111 and 112 are defined as changeable areas # 1 and # 2 in which the contents (FW) can be changed from outside. However, although the contents of the changeable area # 1 (main program unit 111) can be changed by a general user, the changeable area # 2 can be changed.
Changing the contents of the (basic disk access program unit 112) by a general user is prohibited. To change the contents of this area # 2, a special password called a master password is required.

【0042】プログラム部111,112に保存される
FW115,116の例えば先頭には、そのFWのデー
タが適用される磁気ディスク装置の種類、及びそのFW
データの種類(プログラム種類)に固有の識別情報とし
てのヘッダHが設定されると共に、末尾には、そのプロ
グラムのデータのエラー検出情報としての例えばチェッ
クサムCSが設定されている。
For example, at the beginning of the FWs 115 and 116 stored in the program units 111 and 112, the type of the magnetic disk device to which the data of the FW is applied, and the FW
A header H is set as identification information unique to the type of data (program type), and at the end, for example, a checksum CS is set as error detection information of data of the program.

【0043】自己診断部113は、FWダウンロード処
理が正常に行われたか否かを自己診断するための自己診
断プログラム117を保存しておく領域(自己診断プロ
グラム領域)であり、ローダ部114は、FWダウンロ
ード処理を行うためのローダプログラム118を保存し
ておく領域(ローダプログラム領域)である。これら自
己診断部113及びローダ部114は、ユーザによりそ
の内容を変更することが禁止される変更禁止領域として
定義される。
The self-diagnosis section 113 is an area (self-diagnosis program area) for storing a self-diagnosis program 117 for self-diagnosis as to whether or not the FW download processing has been normally performed. This is an area (loader program area) for storing the loader program 118 for performing FW download processing. The self-diagnosis unit 113 and the loader unit 114 are defined as a change-prohibited area in which the user is prohibited from changing the contents.

【0044】再び図1を参照すると、CPU10には、
上記フラッシュROM11及びRAM12の他に、書き
換え可能な不揮発性メモリとしてのEEPROM(Elec
trically Erasable and Programmable Read Only Memor
y )13と、ディスクコントローラ(HDC)14とが
接続されている。
Referring back to FIG. 1, the CPU 10 includes:
In addition to the flash ROM 11 and the RAM 12, an EEPROM (Elec) as a rewritable nonvolatile memory
trically Erasable and Programmable Read Only Memor
y) 13 and a disk controller (HDC) 14 are connected.

【0045】EEPROM13は、磁気ディスク装置の
制御用のパラメータの保存などに用いられる。このEE
PROM13には、ダウンロード実行中を示すフラグ
(実行フラグ)131を保存するための実行フラグ設定
領域132が確保されている。
The EEPROM 13 is used for storing parameters for controlling the magnetic disk drive. This EE
The PROM 13 has an execution flag setting area 132 for storing a flag (execution flag) 131 indicating that the download is being executed.

【0046】ディスクコントローラ(HDC)14は、
ホスト装置(図示せず)との間のコマンド、データの通
信を制御すると共に、リード/ライトIC8(を介して
ディスク1)との間のデータの通信を制御する。このH
DC14には、リード/ライトデータがキャッシュ方式
で格納される、例えばRAM等で構成されるバッファメ
モリ(バッファRAM)15と、ホストインタフェース
16とが接続されている。ホストインタフェース16
は、HDC14とホスト装置とのインタフェースをなし
ており、HDC14は当該ホストインタフェース16を
介してホスト装置との間のコマンド、データの通信を行
う。
The disk controller (HDC) 14
It controls command and data communication with a host device (not shown), and also controls data communication with the read / write IC 8 (via the disk 1). This H
The DC 14 is connected to a buffer memory (buffer RAM) 15 including, for example, a RAM or the like, in which read / write data is stored in a cache system, and a host interface 16. Host interface 16
Is an interface between the HDC 14 and the host device, and the HDC 14 communicates commands and data with the host device via the host interface 16.

【0047】ここで、図1の構成の磁気ディスク装置の
出荷時におけるプログラムの格納形態について説明す
る。まず、フラッシュROM11上のメインプログラム
部111にはメインFW115が、基本ディスクアクセ
スプログラム部112には基本ディスクアクセスFW1
16が格納されている。
Here, the storage form of the program at the time of shipment of the magnetic disk device having the configuration shown in FIG. 1 will be described. First, the main FW 115 is stored in the main program unit 111 on the flash ROM 11, and the basic disk access FW1 is stored in the basic disk access program unit 112.
16 are stored.

【0048】また、各ディスク1の各面毎に設けられた
システムエリア101のうちの少なくとも2つのシステ
ムエリア101にはバックアップ領域103が設けられ
ており、そのバックアップ領域103には、フラッシュ
ROM11上のプログラム部111,112の内容(メ
インFW115及び基本ディスクアクセスFW116の
両FWデータ)のバックアップデータが格納されてい
る。ここで、少なくとも2つのシステムエリア101に
バックアップ領域103が確保されているのは、1つの
システムエリア101上のバックアップ領域103が異
常となっても、他のシステムエリア101上のバックア
ップ領域103のデータが使用できるようにしたためで
ある。
A backup area 103 is provided in at least two of the system areas 101 provided for each surface of each disk 1, and the backup area 103 is provided in the flash ROM 11. Backup data of the contents of the program units 111 and 112 (both FW data of the main FW 115 and the basic disk access FW 116) are stored. Here, the reason that the backup area 103 is secured in at least two system areas 101 is that even if the backup area 103 in one system area 101 becomes abnormal, the data in the backup area 103 in another system area 101 becomes abnormal. Is made available.

【0049】磁気ディスク装置出荷時には、フラッシュ
ROM11上のプログラム部111,112の内容と、
ディスク1のシステムエリア101上のバックアップ領
域103の内容とは一致している。
When the magnetic disk drive is shipped, the contents of the program units 111 and 112 on the flash ROM 11 are
The contents of the backup area 103 on the system area 101 of the disk 1 match.

【0050】また、フラッシュROM11上のローダ部
114には、外部(ホスト装置)から当該フラッシュR
OM11(上のメインプログラム部111、基本ディス
クアクセスプログラム部112)にFWデータ(メイン
FW115、基本ディスクアクセスFW11の変更デー
タ)をダウンロードする際のダウンロード動作を司るロ
ーダプログラム118が格納され、自己診断部113に
は、FWが正しくダウンロードされたか否かをチェック
するための自己診断プログラム117が格納されてい
る。
The loader unit 114 on the flash ROM 11 receives the flash R from the outside (host device).
The OM 11 (the main program unit 111 and the basic disk access program unit 112 above) stores a loader program 118 which controls the download operation when downloading FW data (change data of the main FW 115 and the basic disk access FW 11). 113 stores a self-diagnosis program 117 for checking whether or not the FW has been correctly downloaded.

【0051】自己診断部113及びローダ部114は変
更禁止領域として定義されており、ユーザによるその内
容(自己診断プログラム117及びローダプログラム1
18)の変更は禁止される。
The self-diagnosis unit 113 and the loader unit 114 are defined as change-prohibited areas, and their contents (self-diagnosis program 117 and loader program 1) are defined by the user.
Changes in 18) are prohibited.

【0052】一方、メインプログラム部111は変更可
能領域#1として定義されており、その内容の一般ユー
ザによる変更が可能なようになっている。また、基本デ
ィスクアクセスプログラム部112は変更可能領域#2
として定義されているが、その内容を変更するには、
(製造元に割り当てられている)マスタパスワードと呼
ばれる特別なパスワードが必要となる。このため基本デ
ィスクアクセスプログラム部112の内容は一般ユーザ
からは変更できない。本実施形態において、マスタパス
ワードはローダプログラム118中に設定されている
が、EEPROM13に設定されていても構わない。
On the other hand, the main program section 111 is defined as a changeable area # 1, and its contents can be changed by a general user. In addition, the basic disk access program unit 112 changes the changeable area # 2.
, But to change its contents,
A special password called the master password (assigned to the manufacturer) is required. Therefore, the contents of the basic disk access program unit 112 cannot be changed by a general user. In the present embodiment, the master password is set in the loader program 118, but may be set in the EEPROM 13.

【0053】上記変更禁止領域(自己診断部113、ロ
ーダ部114)、変更可能領域#1(メインプログラム
部111)、及び変更可能領域#2(基本ディスクアク
セスプログラム部112)の切り分けは、ローダプログ
ラム118により制御される。
The change prohibition area (the self-diagnosis section 113 and the loader section 114), the changeable area # 1 (the main program section 111), and the changeable area # 2 (the basic disk access program section 112) are separated by a loader program. Controlled by 118.

【0054】次に、図1の構成の磁気ディスク装置の動
作を、フラッシュROM11上のメインプログラム部1
11に保存されているFWを変更(バージョンアップ)
する場合を例に、図4及び図5のフローチャートを適宜
参照して説明する。
Next, the operation of the magnetic disk drive having the configuration shown in FIG.
Change FW stored in 11 (Upgrade)
An example will be described with reference to the flowcharts of FIGS. 4 and 5 as appropriate.

【0055】まず、ユーザは、メインプログラム部11
1に保存されているFWを変更したい場合、図1の磁気
ディスク装置に(ホストインタフェース16を介して)
接続されているホスト装置を操作して、FWダウンロー
ドを指示するコマンド(FWダウンロードコマンド)を
当該ホスト装置から発行させる。このコマンドには、F
W変更の対象となるフラッシュROM11上の領域(こ
こではメインプログラム部111が割り当てられている
変更可能領域#1)を指定する情報(変更領域情報)と
パスワードが付加されている。
First, the user selects the main program unit 11
When the user wants to change the FW stored in the storage device 1 (via the host interface 16)
By operating the connected host device, the host device issues a command for instructing FW download (FW download command). This command includes F
Information (change area information) designating an area on the flash ROM 11 (here, the changeable area # 1 to which the main program unit 111 is assigned) to be changed, and a password are added.

【0056】ホスト装置から発行されたFWダウンロー
ドコマンドは、ホストインタフェース16及びHDC1
4を介してCPU10に渡される。CPU10は、ホス
ト装置からのFWダウンロードコマンドを受け取ると
(ステップS1)、ダウンロードすべきFWデータをホ
スト装置からホストインタフェース16及びHDC14
を介してバッファメモリ15に転送させる(ステップS
2)。ここまでの処理は、現在フラッシュROM11上
のメインプログラム部111に格納されているメインF
W115に従って行われる。
The FW download command issued from the host device is transmitted to the host interface 16 and the HDC 1
4 to the CPU 10. When receiving the FW download command from the host device (step S1), the CPU 10 sends the FW data to be downloaded from the host device to the host interface 16 and the HDC 14.
Through the buffer memory 15 (step S
2). The processing up to this point is based on the main F
This is performed according to W115.

【0057】さて、上記ステップS2が実行されると、
フラッシュROM11上のローダ部114に格納されて
いるローダプログラム118が起動される。するとCP
U10は、ローダプログラム118に従って、バッファ
メモリ15上のFWデータ、ステップS1で受け取った
FWダウンロードコマンドに付加されている変更領域情
報の指定する領域、及びパスワードのチェックを以下に
述べるように行い、当該コマンドで指示されたFWダウ
ンロードが正当なものであるか否かを判断する(ステッ
プS3)。
Now, when step S2 is executed,
A loader program 118 stored in the loader unit 114 on the flash ROM 11 is started. Then CP
In accordance with the loader program 118, the U10 checks the FW data on the buffer memory 15, the area specified by the change area information added to the FW download command received in step S1, and the password as described below. It is determined whether or not the FW download specified by the command is valid (step S3).

【0058】まずCPU10は、ステップS1で受け取
ったFWダウンロードコマンドに付加されているパスワ
ード(ホスト装置からのパスワード)が正しいか否か
(本磁気ディスク装置の正当な利用者であることを示し
ているか否か)を、例えばEEPROM13の所定領域
に保存されているパスワードと比較照合することでチェ
ックする。もし正しいパスワードでない場合には、CP
U10はFWダウンロードコマンドをエラー終了する。
First, the CPU 10 determines whether or not the password (password from the host device) added to the FW download command received in step S1 is correct (indicating that the password is a valid user of the magnetic disk device). Is checked by comparing with a password stored in a predetermined area of the EEPROM 13, for example. If the password is not correct,
U10 terminates the FW download command with an error.

【0059】さて、FWデータには当該FWデータの識
別情報としてのヘッダHとチェックサムCSとが設定さ
れている。そこでCPU10は、バッファメモリ15上
のFWデータ(の先頭)に設定されているヘッダHが、
本磁気ディスク装置の種類及び上記変更領域情報の指定
する領域に対応するプログラム種類に固有のものである
か否かを調べることで、当該ヘッダHが正しいか否かを
判断する。同様にCPU10は、バッファメモリ15上
のFWデータからそのチェックサムを計算し、当該FW
データ(の末尾)に設定されているチェックサムCSに
一致するか否かを調べることで、当該FWデータが正し
くバッファメモリ15に転送されているか否かを判断す
る。
In the FW data, a header H and a checksum CS are set as identification information of the FW data. Therefore, the CPU 10 determines that the header H set at (the head of) the FW data on the buffer memory 15 is
It is determined whether or not the header H is correct by checking whether the type is unique to the type of the magnetic disk device and the program type corresponding to the area specified by the change area information. Similarly, the CPU 10 calculates the checksum from the FW data in the buffer memory 15 and
It is determined whether or not the FW data is correctly transferred to the buffer memory 15 by checking whether or not the FW data matches the checksum CS set at (the end of) the data.

【0060】このようにCPU10は、上記ステップS
3においてバッファメモリ15上のFWデータを対象と
するヘッダ並びにチェックサムのチェックを行うこと
で、当該FWデータが正しいか否かをチェックする。も
し、ヘッダ並びにチェックサムの少なくとも一方が正し
くない場合には、CPU10はFWダウンロードコマン
ドをエラー終了する。
As described above, the CPU 10 executes the above-described step S
In step 3, by checking the header and checksum for the FW data in the buffer memory 15, it is checked whether the FW data is correct. If at least one of the header and the checksum is incorrect, the CPU 10 terminates the FW download command with an error.

【0061】またCPU10は、上記変更領域情報の指
定する領域をチェックし、(自己診断部113或いはロ
ーダ部114のような)変更禁止領域を指定している場
合には、FWダウンロードコマンドをエラー終了する。
また、上記変更領域情報の指定する領域が(一般ユーザ
からは変更できない)変更可能領域#2を指定している
場合には、CPU10はホスト装置からのパスワードが
(ローダプログラム118に設定されている)マスタパ
スワードであるか否かをチェックし、マスターパスワー
ドでないならばエラー終了する。
The CPU 10 checks the area specified by the change area information. If the change prohibited area (such as the self-diagnosis unit 113 or the loader unit 114) is specified, the FW download command ends in an error. I do.
When the area specified by the change area information specifies the changeable area # 2 (which cannot be changed by a general user), the CPU 10 sets the password from the host device to (the loader program 118). ) Check whether the password is the master password, and if it is not the master password, terminate with an error.

【0062】CPU10は、以上に述べたステップS3
でのチェックの結果、FWダウンロードコマンドで指示
されたFWダウンロードが正当なものであると判断した
場合には、EEPROM13上の実行フラグ設定領域1
32にFWダウンロード実行中であることを示す実行フ
ラグ131をセットする(ステップS4)。
The CPU 10 proceeds to step S3 described above.
As a result of the check in step 1, if it is determined that the FW download specified by the FW download command is valid, the execution flag setting area 1 in the EEPROM 13
An execution flag 131 indicating that the FW download is being executed is set to the CPU 32 (step S4).

【0063】次にCPU10は、上記変更領域情報で指
定されるフラッシュROM11上の領域に現在格納され
ているFW(変更可能領域#1が指定されているこの例
ではメインプログラム部111上のメインFW115で
あり、変更可能領域#2が指定されているならば基本デ
ィスクアクセスプログラム部112上の基本ディスクア
クセスFW116となる)を読み出し、当該FWを、各
ディスク1(メディア)の各面に割り当てられているシ
ステムエリア101のうち、少なくとも2つのシステム
エリア101を対象に、そのシステムエリア101上に
確保されたバックアップ領域103に(バックアップの
ために)保存する(ステップS5)。
Next, the CPU 10 sends the FW currently stored in the area on the flash ROM 11 specified by the change area information (the main FW 115 on the main program unit 111 in this example in which the changeable area # 1 is specified). If the changeable area # 2 is designated, the basic disk access FW 116 on the basic disk access program unit 112 is read), and the FW is allocated to each surface of each disk 1 (media). Of at least two system areas 101, the system area 101 is saved (for backup) in a backup area 103 secured on the system area 101 (step S5).

【0064】次にCPU10は、バッファメモリ15上
のFWデータをフラッシュROM11に転送し、上記変
更領域情報で指定される当該フラッシュROM11上の
領域に書き込む(ステップS6)。これにより、変更領
域情報により変更可能領域#1(メインプログラム部1
11)が指定されているこの例では、メインプログラム
部111上のメインFW115が新たなFWに変更(バ
ージョンアップ)される。なお、変更領域情報により変
更可能領域#2(基本ディスクアクセスプログラム部1
12)が指定されているならば、基本ディスクアクセス
プログラム部112上の基本ディスクアクセスFW11
6が新たなFWに変更(バージョンアップ)されること
になる。
Next, the CPU 10 transfers the FW data in the buffer memory 15 to the flash ROM 11 and writes the FW data in the area on the flash ROM 11 specified by the change area information (step S6). As a result, the changeable area # 1 (the main program unit 1)
In this example in which 11) is specified, the main FW 115 on the main program unit 111 is changed (upgraded) to a new FW. The changeable area # 2 (the basic disk access program unit 1)
If 12) is specified, the basic disk access FW 11 on the basic disk access program unit 112
6 will be changed (upgraded) to a new FW.

【0065】さて、上記ステップS6が実行されると、
フラッシュROM11上の自己診断部113に格納され
ている自己診断プログラム117が起動される。すると
CPU10は、フラッシュROM11上のメインプログ
ラム部111及び基本ディスクアクセスプログラム部1
12に格納されているFWデータを対象とする自己診断
処理、即ちホスト装置からフラッシュROM11にダウ
ンロードされたFWデータを含む制御プログラムの自己
診断処理を自己診断プログラム117に従って実行する
(ステップS7)。
Now, when the above step S6 is executed,
The self-diagnosis program 117 stored in the self-diagnosis unit 113 on the flash ROM 11 is started. Then, the CPU 10 executes the main program unit 111 and the basic disk access program unit 1 on the flash ROM 11.
The self-diagnosis processing for the FW data stored in the flash memory 12, that is, the self-diagnosis processing of the control program including the FW data downloaded from the host device to the flash ROM 11 is executed according to the self-diagnosis program 117 (step S 7).

【0066】以下、この自己診断処理の詳細を図5のフ
ローチャートを参照して説明する。まずCPU10は、
フラッシュROM11上のメインプログラム部111
(変更可能領域#1)及び基本ディスクアクセスプログ
ラム部112(変更可能領域#2)に保存されているF
Wデータ(制御プログラム)のヘッダH及びチェックサ
ムCSをチェックする(ステップS21)。
Hereinafter, details of the self-diagnosis processing will be described with reference to the flowchart of FIG. First, the CPU 10
Main program unit 111 on flash ROM 11
(Changeable area # 1) and F stored in the basic disk access program unit 112 (changeable area # 2).
The header H and the checksum CS of the W data (control program) are checked (step S21).

【0067】次にCPU10は、上記FWデータのヘッ
ダH及びチェックサムCSが正しいならば、そのFWデ
ータ(制御プログラム)、即ちメインプログラム部11
1及び基本ディスクアクセスプログラム部112に保存
されている、上記ダウンロードされた新たなFWデータ
を含む制御プログラムを使用して、バッファメモリ15
のアクセスと、ディスク1のシステムエリア101に用
意されているテスト領域104を対象とするライト/リ
ード動作を行うことで、バッファメモリ15が正常にア
クセスできるか否かのチェック(ステップS22)と、
ディスク1に対して正常にライトできるか否かのチェッ
ク(ステップS23)と、ディスク1から正常にリード
できるか否かのチェック(ステップS24)とを行う。
Next, if the header H and the checksum CS of the FW data are correct, the CPU 10 transmits the FW data (control program), that is, the main program unit 11.
1 and the control program including the downloaded new FW data stored in the basic disk access program unit 112, using the buffer memory 15
And whether the buffer memory 15 can be normally accessed by performing a write / read operation on the test area 104 prepared in the system area 101 of the disk 1 (step S22).
A check is made as to whether the disk 1 can be written normally (step S23), and a check is made whether the disk 1 can be read normally (step S24).

【0068】ここで、変更可能領域#1(メインプログ
ラム部111)のFWデータを変更した場合で、上記の
自己診断プログラム117に従う自己診断処理(ステッ
プS7)の結果、その変更後のFWデータ(メインF
W)の異常が認められたものとする。
Here, when the FW data of the changeable area # 1 (main program section 111) is changed, as a result of the self-diagnosis processing (step S7) according to the self-diagnosis program 117, the changed FW data ( Main F
W) is assumed to be abnormal.

【0069】この場合、未変更の変更可能領域#2(基
本ディスクアクセスプログラム部112)のFWデータ
(基本ディスクアクセスFW116)が正常であるなら
ば(ステップS8)、CPU10は、ローダプログラム
118に従って、その正常な基本ディスクアクセスFW
116を使用して、ディスク1上のシステムエリア10
1のバックアップ領域103に保存されている変更前の
メインFW115のデータの読み出しを行い、それをフ
ラッシュROM11に転送して当該フラッシュROM1
1上の変更可能領域#1(メインプログラム部111)
に書き戻す(ステップS9)。
In this case, if the FW data (basic disk access FW 116) of the unchangeable changeable area # 2 (basic disk access program unit 112) is normal (step S8), the CPU 10 The normal basic disk access FW
116, the system area 10 on the disk 1
The data of the main FW 115 before the change stored in the backup area 103 is read out, transferred to the flash ROM 11, and transferred to the flash ROM 1.
1 changeable area # 1 (main program unit 111)
(Step S9).

【0070】ここで、フラッシュROM11への転送に
際しては、CPU10は、転送の対象となるシステムエ
リア101のバックアップ領域103上の変更前のメイ
ンFW115の内容が正常であるか否かをチェックサム
CSをチェックすることで調べ、正常であるならば、そ
れを転送する。これに対して正常でないならば、他のシ
ステムエリア101のバックアップ領域103上の変更
前のメインFW115を新たな転送候補とする。
At the time of transfer to the flash ROM 11, the CPU 10 checks whether or not the contents of the main FW 115 in the backup area 103 of the system area 101 to be transferred before the change are normal, by checking the checksum CS. Check by checking and if normal, forward it. On the other hand, if the status is not normal, the main FW 115 before the change in the backup area 103 of the other system area 101 is set as a new transfer candidate.

【0071】このように、内容が正常な変更前のメイン
FW115をディスク1のシステムエリア101のバッ
クアップ領域103からフラッシュROM11の変更可
能領域#1(メインプログラム部111)に転送するこ
とで、変更(ダウンロード)により異常となった変更可
能領域#1(メインプログラム部111)のFWデータ
(メインFW115)を変更前の状態に戻すことができ
る。
As described above, the main FW 115 before the change whose contents are normal is transferred from the backup area 103 of the system area 101 of the disk 1 to the changeable area # 1 (main program section 111) of the flash ROM 11 so that the change ( The FW data (main FW 115) of the changeable area # 1 (main program unit 111) which has become abnormal due to (download) can be returned to the state before the change.

【0072】するとCPU10は、EEPROM13の
実行フラグ設定領域132上にセットされている実行フ
ラグ131を(ローダプログラム118に従って)リセ
ットし(ステップS10)、FWダウンロードコマンド
を終了する(ステップS11)。
Then, the CPU 10 resets the execution flag 131 set in the execution flag setting area 132 of the EEPROM 13 (according to the loader program 118) (step S10), and ends the FW download command (step S11).

【0073】これに対し、未変更の変更可能領域#2
(基本ディスクアクセスプログラム部112)のFWデ
ータ(基本ディスクアクセスFW116)は勿論、変更
した変更可能領域#1(メインプログラム部111)の
FWデータ(メインFW115)も正常であった場合に
は、CPU10はステップS7からステップS10に進
んで実行フラグ131をリセットし、FWダウンロード
コマンドを終了する(ステップS11)。
On the other hand, the unchangeable changeable area # 2
If not only the FW data (basic disk access FW 116) of the (basic disk access program unit 112) but also the FW data (main FW 115) of the changed changeable area # 1 (main program unit 111) are normal, the CPU 10 Proceeds from step S7 to step S10, resets the execution flag 131, and ends the FW download command (step S11).

【0074】次に、上記の例とは逆に、変更可能領域#
2(基本ディスクアクセスプログラム部112)のFW
データを変更した場合について説明する。もし、変更可
能領域#2(基本ディスクアクセスプログラム部11
2)のFWデータを変更した結果、上記の自己診断処理
(ステップS7)で、その変更後のFWデータ(基本デ
ィスクアクセスFW116)の異常が認められた場合に
は、CPU10は基本ディスクアクセスFW116を使
用した元のFWへの復元処理(ステップS9)はできな
いものと判断し、(ローダプログラム118が提供する
ホスト装置との最低限の通信機能により)本磁気ディス
ク装置(ドライブ)をノットレディ(NOT READY )とし
て(ステップS12)、そのままFWダウンロードコマ
ンドを終了する(ステップS11)。この場合、EEP
ROM13の実行フラグ設定領域132上の実行フラグ
131はセットされたままとなる。
Next, contrary to the above example, the changeable area #
2 (basic disk access program unit 112) FW
A case where data is changed will be described. If the changeable area # 2 (the basic disk access program unit 11
If the FW data (basic disk access FW 116) after the change is found to be abnormal in the self-diagnosis processing (step S7) as a result of changing the FW data of 2), the CPU 10 resets the basic disk access FW 116 It is determined that the restoration process (step S9) to the original FW used cannot be performed, and the magnetic disk device (drive) is not ready (NOT) (by the minimum communication function with the host device provided by the loader program 118). READY) (step S12), and the FW download command ends as it is (step S11). In this case, EEP
The execution flag 131 in the execution flag setting area 132 of the ROM 13 remains set.

【0075】さて、ホスト装置から発行された変更可能
領域#2(基本ディスクアクセスプログラム部112)
を対象とするFWダウンロードコマンドを図1の磁気デ
ィスク装置が実行した結果、当該磁気ディスク装置が上
記のようにノットレディとなった場合、ホスト装置は再
度変更可能領域#2を対象とするFWダウンロードコマ
ンドを発行する。これにより、変更可能領域#2を対象
とする再度のFWダウンロード処理が行われ、磁気ディ
スク装置の機能(動作)を自動的に回復することができ
る。また、再度のFWダウンロード処理が正常終了する
際には、実行フラグ131はリセットされる。
Now, the changeable area # 2 issued from the host device (basic disk access program unit 112)
When the magnetic disk device shown in FIG. 1 executes the FW download command for the target, and the magnetic disk device becomes not-ready as described above, the host device again executes the FW download for the changeable area # 2. Issue a command. As a result, the FW download process for the changeable area # 2 is performed again, and the function (operation) of the magnetic disk device can be automatically restored. When the FW download process ends normally again, the execution flag 131 is reset.

【0076】一方、上記の自己診断処理(ステップS
7)で異常が認められなかった場合には、実行フラグ1
31がリセットされて(ステップS10)、FWダウン
ロードコマンドが終了となる(ステップS11)。
On the other hand, the self-diagnosis processing (step S
If no abnormality is found in 7), the execution flag 1
31 is reset (step S10), and the FW download command ends (step S11).

【0077】次に、図1の磁気ディスク装置における電
源投入時の動作を、図6のフローチャートを参照して説
明する。図1の磁気ディスク装置においては、装置の電
源が投入されると、まずフラッシュROM11上のロー
ダ部114に格納されているローダプログラム118が
起動される。
Next, the operation of the magnetic disk drive of FIG. 1 when the power is turned on will be described with reference to the flowchart of FIG. In the magnetic disk device of FIG. 1, when the device is turned on, first, a loader program 118 stored in the loader unit 114 on the flash ROM 11 is started.

【0078】するとCPU10は、ローダプログラム1
18に従って、EEPROM13の実行フラグ設定領域
132上の実行フラグ131の状態をチェックする(ス
テップS31)。
Then, the CPU 10 executes the loader program 1
According to 18, the state of the execution flag 131 on the execution flag setting area 132 of the EEPROM 13 is checked (step S31).

【0079】もし、FWダウンロード処理中に図1の磁
気ディスク装置にて電源遮断等の異常が発生したなら
ば、FWダウンロード処理の開始時に(図4中のステッ
プS4で)セットされた(EEPROM13の実行フラ
グ設定領域132上の)実行フラグ131はそのままの
状態を保っている。これに対し、FWダウンロード処理
が正常終了した後に(或いはFWダウンロード処理が行
われていないときに)電源遮断等の異常が発生したなら
ば、実行フラグ131はリセットされている。
If an abnormality such as power shutoff occurs in the magnetic disk device of FIG. 1 during the FW download process, it is set (at step S4 in FIG. 4) at the start of the FW download process (in the EEPROM 13). The execution flag 131 (on the execution flag setting area 132) remains as it is. On the other hand, if an abnormality such as power shutoff occurs after the FW download process ends normally (or when the FW download process is not performed), the execution flag 131 is reset.

【0080】CPU10は、上記ステップS31のチェ
ックで実行フラグ131がセットされたままであるもの
と判断すると、フラッシュROM11上の自己診断部1
13に格納されている自己診断プログラム117を起動
する。
When the CPU 10 determines that the execution flag 131 remains set in the check in step S31, the self-diagnosis unit 1 in the flash ROM 11
13 is started.

【0081】するとCPU10は、フラッシュROM1
1上の変更可能領域#1(メインプログラム部111)
及び変更可能領域#2(基本ディスクアクセスプログラ
ム部112)に格納されている各FWデータを対象とす
る図4中のステップS7と同様の自己診断処理(図5の
フローチャート参照)を自己診断プログラム117に従
って実行する(ステップS32)。
Then, the CPU 10 executes the flash ROM 1
1 changeable area # 1 (main program unit 111)
The self-diagnosis program 117 performs the same self-diagnosis processing (see the flowchart in FIG. 5) as in step S7 in FIG. 4 for each FW data stored in the changeable area # 2 (basic disk access program unit 112). (Step S32).

【0082】もし、この自己診断処理(ステップS3
2)の結果、フラッシュROM11上の変更可能領域#
1(メインプログラム部111)に格納されているメイ
ンFW115のみに異常が認められた場合には(ステッ
プS33)、CPU10は、変更可能領域#2(基本デ
ィスクアクセスプログラム部112)に格納されている
正常な基本ディスクアクセスFW116をローダプログ
ラム118に従って使用して、ディスク1上のシステム
エリア101のバックアップ領域103に保存されてい
るメインプログラム部111の内容のバックアップデー
タの読み出しを行い、それをフラッシュROM11に転
送して当該フラッシュROM11上の変更可能領域#1
(メインプログラム部111)に書き戻す(ステップS
34)。
If the self-diagnosis processing (step S3
2) As a result, the changeable area # on the flash ROM 11
If an abnormality is detected only in the main FW 115 stored in the first (main program unit 111) (step S33), the CPU 10 stores the abnormality in the changeable area # 2 (basic disk access program unit 112). Using the normal basic disk access FW 116 according to the loader program 118, the backup data of the contents of the main program unit 111 stored in the backup area 103 of the system area 101 on the disk 1 is read out, and the read out data is stored in the flash ROM 11. Transfer and changeable area # 1 on the flash ROM 11
(Main program 111) (Step S)
34).

【0083】これにより、たとえメインプログラム部1
11へのFWダウンロード処理中に電源遮断等の異常が
発生したとしても、その後の電源投入時の上記の動作に
より、メインプログラム部111のFWデータ(メイン
FW115)をFWダウンロード処理前の状態に復元す
ることができる。
Thus, even if the main program unit 1
Even if an abnormality such as power interruption occurs during the FW download processing to the FW 11, the FW data (main FW 115) of the main program unit 111 is restored to the state before the FW download processing by the above-described operation when the power is turned on thereafter. can do.

【0084】但し、前記ステップS5の処理で、フラッ
シュROM11の変更可能領域#1(メインプログラム
部111)の内容(変更前のメインFW115)をシス
テムエリア101のバックアップ領域103へ転送して
いる間に電源遮断等の異常が発生した場合には、そのバ
ックアップ領域103の内容は正常なものとはならず、
バックアップには使用できない。
However, while the contents of the changeable area # 1 (main program section 111) of the flash ROM 11 (main FW 115 before change) are being transferred to the backup area 103 of the system area 101 in the process of step S5. If an abnormality such as power shutdown occurs, the contents of the backup area 103 will not be normal,
Cannot be used for backup.

【0085】そこでCPU10は、上記ステップS34
にてフラッシュROM11上のメインプログラム部11
1にバックアップデータを転送する際には、前記ステッ
プS9の場合と同様に、転送の対象となるシステムエリ
ア101のバックアップ領域103上のバックアップデ
ータ(ここでは、メインプログラム部111の内容のバ
ックアップデータ、即ち変更前のメインFW115)が
正常であるか否かをチェックサムCSをチェックするこ
とで調べ、正常である場合に、それを転送するようにし
ている。もし、正常でないならば、他のシステムエリア
101のバックアップ領域103上の該当するバックア
ップデータを新たな転送候補とする。
Then, the CPU 10 proceeds to step S34.
The main program unit 11 on the flash ROM 11
When the backup data is transferred to the backup data in the backup area 103 of the system area 101 to be transferred (here, the backup data of the contents of the main program unit 111, That is, it is checked by checking the checksum CS whether or not the main FW 115) before the change is normal. If the checksum CS is normal, it is transferred. If it is not normal, the corresponding backup data in the backup area 103 of the other system area 101 is set as a new transfer candidate.

【0086】CPU10は、メインプログラム部111
のFWデータ(メインFW115)を元の状態に回復さ
せると、EEPROM13の実行フラグ設定領域132
上にセットされている実行フラグ131を(ローダプロ
グラム118に従って)リセットし(ステップS3
5)、メインプログラム部111及び基本ディスクアク
セスプログラム部112に格納されている両FWに従う
通常のルーチン処理に進む。
The CPU 10 includes a main program unit 111
When the FW data (main FW 115) is restored to the original state, the execution flag setting area 132 of the EEPROM 13 is restored.
The execution flag 131 set above is reset (according to the loader program 118) (step S3).
5) The process proceeds to a normal routine according to both FWs stored in the main program unit 111 and the basic disk access program unit 112.

【0087】一方、変更可能領域#2(基本ディスクア
クセスプログラム部112)に格納されている基本ディ
スクアクセスFW116に異常が認められた場合には
(ステップS33)、CPU10は変更可能領域#2へ
のFWダウンロード処理中に電源遮断等の異常が発生し
たものとして、(ローダプログラム118が提供するホ
スト装置との最低限の通信機能により)本磁気ディスク
装置(ドライブ)をノットレディとする(ステップS3
6)。この場合、ホスト装置は変更可能領域#2を対象
とするFWダウンロードコマンドを発行し、図1の磁気
ディスク装置に対して変更可能領域#2を対象とする再
度のFWダウンロード処理を行わせることで、当該磁気
ディスク装置の機能を回復させることができる。
On the other hand, when an abnormality is found in the basic disk access FW 116 stored in the changeable area # 2 (basic disk access program section 112) (step S33), the CPU 10 sets the change to the changeable area # 2. This magnetic disk device (drive) is not-ready (with the minimum communication function with the host device provided by the loader program 118) assuming that an abnormality such as power shutdown has occurred during the FW download process (step S3).
6). In this case, the host device issues an FW download command for the changeable area # 2, and causes the magnetic disk device of FIG. 1 to perform another FW download process for the changeable area # 2. Thus, the function of the magnetic disk device can be restored.

【0088】また、変更可能領域#1(メインプログラ
ム部111)及び変更可能領域#2(基本ディスクアク
セスプログラム部112)に格納されている両FWのい
ずれにも異常が認められなかった場合には、CPU10
は、FWダウンロード処理が正常終了した後(で且つ実
行フラグ131をリセットする前)に電源遮断等の異常
が発生しており、何ら問題はないものと判断する。この
場合、CPU10はEEPROM13の実行フラグ設定
領域132上にセットされている実行フラグ131を
(ローダプログラム118に従って)リセットし(ステ
ップS35)、メインプログラム部111及び基本ディ
スクアクセスプログラム部112に格納されている両F
Wに従う通常のルーチン処理に進む。
If no abnormality is found in either of the FWs stored in the changeable area # 1 (main program section 111) and the changeable area # 2 (basic disk access program section 112), , CPU10
Indicates that an abnormality such as power shutdown has occurred after the FW download process has been normally completed (and before the execution flag 131 is reset), and that there is no problem. In this case, the CPU 10 resets the execution flag 131 set on the execution flag setting area 132 of the EEPROM 13 (according to the loader program 118) (step S35), and stores the execution flag 131 in the main program unit 111 and the basic disk access program unit 112. Both F
The routine proceeds to a normal routine according to W.

【0089】なお、以上の電源投入時の処理では、実行
フラグ131がセットされている場合には、自己診断プ
ログラム117に従う自己診断処理を行い、その診断処
理の結果に応じて3つの処理ステップ(ステップS3
4,S35,S36)のいずれかに進むものとして説明
したがこれに限るものではない。例えば、実行フラグ1
31がセットされている場合には、無条件で本磁気ディ
スク装置(ドライブ)をノットレディとするようにして
も構わない。この状況では、ホスト装置は本磁気ディス
ク装置に対して再度FWダウンロード処理を行わせるこ
とで、当該磁気ディスク装置の機能を回復させることが
できる。
In the above-described power-on processing, when the execution flag 131 is set, the self-diagnosis processing according to the self-diagnosis program 117 is performed, and three processing steps (in accordance with the result of the diagnosis processing) are performed. Step S3
4, S35, S36), but the present invention is not limited to this. For example, execution flag 1
When 31 is set, the magnetic disk device (drive) may be set to be not ready unconditionally. In this situation, the host device can restore the function of the magnetic disk device by causing the magnetic disk device to perform the FW download process again.

【0090】本方式では、変更可能領域#2(基本ディ
スクアクセスプログラム部112)に格納されている基
本ディスクアクセスFW116に異常がない場合でも、
再度のFWダウンロード処理が行われるため、当該基本
ディスクアクセスFW116を使用することで、ディス
ク1上のシステムエリア101のバックアップ領域10
3に保存されているメインプログラム部111の内容を
フラッシュROM11上の変更可能領域#1(メインプ
ログラム部111)に復元する方式と比べて無駄が生じ
る。但し、自己診断プログラム117に従う自己診断処
理が不要となる。
In this system, even if there is no abnormality in the basic disk access FW 116 stored in the changeable area # 2 (basic disk access program unit 112),
Since the FW download process is performed again, the backup area 10 of the system area 101 on the disk 1 is used by using the basic disk access FW 116.
3 is wasteful as compared with the method of restoring the contents of the main program unit 111 stored in the flash ROM 11 into the changeable area # 1 (main program unit 111) on the flash ROM 11. However, the self-diagnosis processing according to the self-diagnosis program 117 becomes unnecessary.

【0091】以上に述べた実施形態では磁気ディスク装
置について説明したが、本発明は、光磁気ディスク装置
など、制御用プログラムに従って記録媒体を対象とする
情報の記録再生を行うデータ記録再生装置一般に適用可
能である。
In the embodiments described above, the magnetic disk device has been described. However, the present invention is generally applied to a data recording / reproducing device for recording / reproducing information on a recording medium in accordance with a control program, such as a magneto-optical disk device. It is possible.

【0092】[0092]

【発明の効果】以上詳述したように本発明によれば、ユ
ーザが(システム上)でデータ記録再生装置の制御用プ
ログラムを変更でき、しかもその際に異常が発生しても
当該データ記録再生装置の機能を回復することができ
る。
As described in detail above, according to the present invention, the user can change the control program of the data recording / reproducing apparatus (on the system), and even if an abnormality occurs at that time, the data recording / reproducing apparatus can be changed. The function of the device can be restored.

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

【図1】本発明の一実施形態に係る磁気ディスク装置の
構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a magnetic disk drive according to an embodiment of the present invention.

【図2】図1中のディスク1に対するシステムエリア1
01の配置と、そのシステムエリア101上に割り当て
られる同実施形態に特有の領域を示す図。
FIG. 2 is a system area 1 for the disk 1 in FIG.
FIG. 2 is a diagram showing an arrangement of the system area 101 and an area unique to the embodiment allocated to the system area 101.

【図3】図1中のフラッシュROM11に対する領域割
り当て例と、その領域に格納されるプログラム例を示す
図。
FIG. 3 is a diagram showing an example of area allocation to a flash ROM 11 in FIG. 1 and an example of a program stored in the area.

【図4】同実施形態におけるFWダウンロードコマンド
受信時処理を説明するためのフローチャート。
FIG. 4 is an exemplary flowchart for explaining processing at the time of receiving a FW download command in the embodiment.

【図5】図4中のS7の自己診断処理を説明するための
フローチャート。
FIG. 5 is a flowchart for explaining a self-diagnosis process in S7 in FIG. 4;

【図6】同実施形態における電源投入時処理を説明する
ためのフローチャート。
FIG. 6 is an exemplary flowchart for explaining power-on processing according to the embodiment;

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

1…ディスク(記録媒体)、 10…CPU(プログラム実行手段)、 11…フラッシュROM(書き換え可能不揮発性メモ
リ)、 13…EEPROM(書き換え可能不揮発性記憶手
段)、 15…バッファメモリ、 101…システムエリア、 103…バックアップ領域、 104…テスト領域、 111…メインプログラム部(第1のプログラム領
域)、 112…基本ディスクアクセスプログラム部(第2のプ
ログラム領域)、 113…自己診断部(自己診断領域)、 114…ローダ部(ローダ領域)、 115…メインFW(第1のプログラム)、 116…基本ディスクアクセスFW(第2のプログラ
ム)、 117…自己診断プログラム、 118…ローダプログラム、 131…実行フラグ(フラグ情報)、 132…実行フラグ設定領域(フラグ情報設定領域)。
DESCRIPTION OF SYMBOLS 1 ... Disk (recording medium), 10 ... CPU (program execution means), 11 ... Flash ROM (rewritable nonvolatile memory), 13 ... EEPROM (rewritable nonvolatile storage means), 15 ... Buffer memory, 101 ... System area Reference numeral 103: backup area 104: test area 111: main program section (first program area) 112: basic disk access program section (second program area) 113: self-diagnosis section (self-diagnosis area) 114: loader section (loader area) 115: main FW (first program) 116: basic disk access FW (second program) 117: self-diagnosis program 118: loader program 131: execution flag (flag) Information), 132 ... execution flag setting area Flag information setting area).

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 情報の記録媒体を備えたデータ記録再生
装置において、 内容の変更が可能な変更可能領域として定義され、前記
データ記録再生装置を制御するための制御用プログラム
が格納された制御用プログラム領域、及び内容の変更が
禁止される変更禁止領域として定義され、前記制御用プ
ログラムを変更するためのローダプログラムが格納され
たローダ領域が割り当てられた書き換え可能な不揮発性
メモリと、 ホスト装置とのインタフェースをなすホストインタフェ
ースと、 前記制御用プログラム及び前記ローダプログラムを実行
するプログラム実行手段とを具備し、 前記ローダプログラムは、前記ホスト装置から前記ホス
トインタフェースに、プログラムの変更先領域を指定す
ると共に当該指定の変更先領域へのプログラムのダウン
ロードを指示するプログラムダウンロードコマンドが送
られた場合に当該コマンドの指示するプログラムダウン
ロード処理を行い、当該コマンドの指定する変更先領域
が前記書き換え可能不揮発性メモリ上の前記制御用プロ
グラム領域である場合に限り、当該コマンドで指示され
たプログラムを前記ホスト装置から前記第1のプログラ
ム領域にダウンロードするプログラムダウンロード機能
を含むことを特徴とするデータ記録再生装置。
1. A data recording / reproducing apparatus provided with an information recording medium, wherein a control program is defined as a changeable area whose contents can be changed, and a control program for controlling the data recording / reproducing apparatus is stored. A host device, a rewritable nonvolatile memory defined as a program area and a change prohibited area in which change of contents is prohibited, and a loader area storing a loader program for changing the control program is allocated; And a program executing means for executing the control program and the loader program. The loader program specifies a program change area from the host device to the host interface. Download the program to the specified destination area When a program download command for instructing loading is sent, a program download process instructed by the command is performed, and when a change destination area specified by the command is the control program area on the rewritable nonvolatile memory, A data recording / reproducing apparatus characterized by including a program download function of downloading a program specified by the command from the host device to the first program area.
【請求項2】 情報の記録媒体を備えたデータ記録再生
装置において、 特別なパスワードの指定なしに内容の変更が可能な第1
の変更可能領域として定義され、前記データ記録再生装
置を制御するための制御用プログラムのうち、前記記録
媒体をアクセスするのに必要な最小限の制御を司る第2
のプログラムを除く残りの第1のプログラムが格納され
た第1のプログラム領域、特別のパスワードの指定のも
とで内容の変更が可能な第2の変更可能領域として定義
され、前記第2のプログラムが格納された第2のプログ
ラム領域、及び内容の変更が禁止される変更禁止領域と
して定義され、前記第1及び第2のプログラムを変更す
るためのローダプログラムが格納されたローダ領域が割
り当てられた書き換え可能な不揮発性メモリと、 ホスト装置とのインタフェースをなすホストインタフェ
ースと、 前記第1並びに第2のプログラムからなる前記制御用プ
ログラム及び前記ローダプログラムを実行するプログラ
ム実行手段とを具備し、 前記ローダプログラムは、前記ホスト装置から前記ホス
トインタフェースに、プログラムの変更先領域を指定す
ると共に当該指定の変更先領域へのプログラムのダウン
ロードを指示するパスワード付きのプログラムダウンロ
ードコマンドが送られた場合に、当該コマンドの指示す
るプログラムダウンロード処理を行い、当該コマンドの
指定する変更先領域が前記書き換え可能不揮発性メモリ
上の前記第1のプログラム領域である場合には、前記特
別のパスワードなしに当該コマンドで指示されたプログ
ラムを前記ホスト装置から前記第1のプログラム領域に
ダウンロードし、当該コマンドの指定する変更先領域が
前記書き換え可能不揮発性メモリ上の前記第2のプログ
ラム領域である場合には、当該コマンドに付されている
パスワードが前記特別のパスワードに一致する場合に限
り、当該コマンドで指示されたプログラムを前記ホスト
装置から前記第2のプログラム領域にダウンロードする
プログラムダウンロード機能を含むことを特徴とするデ
ータ記録再生装置。
2. A data recording / reproducing apparatus provided with an information recording medium, wherein a first content which can be changed without a special password is specified.
Of the control program for controlling the data recording / reproducing device, which controls the minimum control required to access the recording medium.
A first program area in which the remaining first programs except for the first program are stored, a second changeable area whose contents can be changed under the specification of a special password, and the second program Are assigned as a second program area in which a loader program for changing the first and second programs is stored, and a loader area in which a loader program for changing the first and second programs is stored. A rewritable nonvolatile memory; a host interface serving as an interface with a host device; and a program executing means for executing the control program including the first and second programs and the loader program. The program is transmitted from the host device to the host interface, where the program is to be changed. When a program download command with a password instructing to download the program to the designated change destination area is sent, the program download processing indicated by the command is performed, and the change destination area designated by the command is designated. Is the first program area on the rewritable nonvolatile memory, downloads the program specified by the command without the special password from the host device to the first program area, In the case where the change destination area specified by the command is the second program area on the rewritable nonvolatile memory, only when the password attached to the command matches the special password, the command The program specified in the above Data recording and reproducing apparatus which comprises a program download function of downloading the second program area.
【請求項3】 前記記録媒体には、前記書き換え可能不
揮発性メモリに格納されている前記制御用プログラムの
バックアップデータが保存されたバックアップ領域が割
り当てられており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指示するダウンロードが異常の場合に、前記
記録媒体上の前記バックアップ領域の内容により前記書
き換え可能不揮発性メモリを元の状態に回復させるバッ
クアップ機能を含むことを特徴とする請求項1または請
求項2記載のデータ記録再生装置。
3. The storage medium is assigned a backup area in which backup data of the control program stored in the rewritable nonvolatile memory is stored. The loader program is configured to execute the program download command. 3. A backup function for restoring the rewritable nonvolatile memory to its original state according to the contents of the backup area on the recording medium when the download indicated by the instruction is abnormal. A data recording / reproducing apparatus according to claim 1.
【請求項4】 前記ローダプログラムは、前記プログラ
ムダウンロードコマンドの指示するダウンロードが中断
した場合に、前記記録媒体上の前記バックアップ領域の
内容により前記書き換え可能不揮発性メモリを元の状態
に回復させるバックアップ機能を含むことを特徴とする
請求項3記載のデータ記録再生装置。
4. A backup function for restoring the rewritable non-volatile memory to its original state according to the contents of the backup area on the recording medium when the download indicated by the program download command is interrupted. 4. The data recording / reproducing apparatus according to claim 3, comprising:
【請求項5】 前記記録媒体には、前記書き換え可能不
揮発性メモリに格納されている前記制御用プログラムの
バックアップデータを保存しておくためのバックアップ
領域が割り当てられており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指示するダウンロードを開始する際またはダ
ウンロードが正常終了した後に、当該コマンドの指定す
る変更先領域の変更前または変更後の内容を前記記憶媒
体の前記バックアップ領域に保存しておき、前記ダウン
ロードに失敗した場合には、その際の前記バックアップ
領域の内容により前記書き換え可能不揮発性メモリを元
の状態に回復させるバックアップ機能を含むことを特徴
とする請求項1または請求項2記載のデータ記録再生装
置。
5. A backup area for storing backup data of the control program stored in the rewritable nonvolatile memory is allocated to the recording medium. When the download indicated by the program download command is started or after the download is normally completed, the contents before or after the change of the change destination area specified by the command are stored in the backup area of the storage medium, 3. The data recording method according to claim 1, further comprising a backup function for restoring the rewritable nonvolatile memory to an original state according to the contents of the backup area at the time of a download failure. Playback device.
【請求項6】 前記ローダプログラムは、前記バックア
ップ領域に変更前または変更後の内容を保存した後に、
正しく保存されていることを確認するためのベリファイ
を行う機能を含むことを特徴とする請求項5記載のデー
タ記録再生装置。
6. The loader program stores the contents before or after the change in the backup area,
6. The data recording / reproducing apparatus according to claim 5, further comprising a function of performing verification for confirming that the data is stored correctly.
【請求項7】 前記記録媒体上には前記バックアップ領
域が複数割り当てられており、 前記ローダプログラムは、前記複数のバックアップ領域
の中から、その内容が正常なバックアップ領域を前記書
き換え可能不揮発性メモリのバックアップ源として選択
するバックアップ領域選択機能を含むことを特徴とする
請求項5記載のデータ記録再生装置。
7. A plurality of the backup areas are allocated on the recording medium, and the loader program converts a backup area whose contents are normal from among the plurality of the backup areas into the rewritable nonvolatile memory. 6. The data recording / reproducing apparatus according to claim 5, further comprising a backup area selecting function for selecting a backup source.
【請求項8】 前記不揮発性メモリには、内容の変更が
禁止される変更禁止領域として定義され、前記プログラ
ムダウンロード処理が正しく行われたか否かを自己診断
するための前記プログラム実行手段により実行可能な自
己診断プログラムが格納された自己診断領域が割り当て
られており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指定する領域へのプログラムダウンロードが
行われた後に前記プログラム実行手段により前記自己診
断プログラムを実行させる自己診断制御機能を含むこと
を特徴とする請求項3または請求項5記載のデータ記録
再生装置。
8. The non-volatile memory is defined as a change-prohibited area in which change of contents is prohibited, and can be executed by the program executing means for self-diagnosing whether or not the program download processing has been correctly performed. The loader program executes the self-diagnosis program by the program execution unit after the program is downloaded to the area specified by the program download command. 6. The data recording / reproducing apparatus according to claim 3, further comprising a self-diagnosis control function for causing the data recording / reproducing apparatus to perform the self-diagnosis.
【請求項9】 前記プログラムダウンロード処理が開始
される際に設定されてプログラムダウンロード処理中を
示し、前記プログラムダウンロード処理が正常に終了し
た際に設定解除されるフラグ情報を設定するためのフラ
グ情報設定領域が割り当てられた書き換え可能な不揮発
性記憶手段を更に具備すると共に、 前記不揮発性メモリには、内容の変更が禁止される変更
禁止領域として定義され、前記プログラムダウンロード
処理が正しく行われたか否かを自己診断するための前記
プログラム実行手段により実行可能な自己診断プログラ
ムが格納された自己診断領域が割り当てられており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指定する領域へのプログラムダウンロードが
行われた後と、前記データ記録再生装置の電源が投入さ
れ、且つ前記フラグ情報設定領域に前記プログラムダウ
ンロード処理中であることを示すフラグ情報が設定され
ている場合に、前記プログラム実行手段により前記自己
診断プログラムを実行させる自己診断制御機能を含むこ
とを特徴とする請求項3または請求項5記載のデータ記
録再生装置。
9. A flag information setting for setting flag information which is set when the program download process is started to indicate that the program download process is being performed, and which is released when the program download process ends normally. In addition to a rewritable non-volatile storage unit to which an area is assigned, the non-volatile memory is defined as a change-prohibited area in which a change in the content is prohibited, and whether the program download process has been correctly performed or not. And a self-diagnosis area storing a self-diagnosis program executable by the program execution means for self-diagnosis of the loader program. The loader program is downloaded to an area specified by the program download command. After the data recording and reproducing device A self-diagnosis control function for causing the program execution means to execute the self-diagnosis program when power is turned on and flag information indicating that the program is being downloaded is set in the flag information setting area The data recording / reproducing apparatus according to claim 3 or 5, wherein
【請求項10】 前記記録媒体には、前記書き換え可能
不揮発性メモリに格納されている前記制御用プログラム
のバックアップデータを保存しておくためのバックアッ
プ領域が割り当てられると共に、 前記不揮発性メモリには、内容の変更が禁止される変更
禁止領域として定義され、前記プログラムダウンロード
処理が正しく行われたか否かを自己診断するための前記
プログラム実行手段により実行可能な自己診断プログラ
ムが格納された自己診断領域が割り当てられており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指定する領域へのプログラムダウンロードが
行われた後に前記プログラム実行手段により前記自己診
断プログラムを実行させる自己診断制御機能と、前記プ
ログラムダウンロードコマンドの指示するダウンロード
を開始する際に、当該コマンドの指定する変更先領域の
変更前の内容を前記記憶媒体の前記バックアップ領域に
保存しておき、前記自己診断プログラムが実行された結
果、前記書き換え可能不揮発性メモリ上の前記第1のプ
ログラム領域の内容に異常が認められ、且つ前記第2の
プログラム領域の内容に異常が認められなかった場合に
は、前記記録媒体上の前記バックアップ領域に格納され
ている前記制御用プログラムのバックアップデータのう
ちの前記第1のプログラムのバックアップデータを前記
第2のプログラム領域に格納されている前記第2のプロ
グラムを使用して前記第1のプログラム領域に転送する
ことで当該第1のプログラム領域を元の状態に回復さ
せ、前記第2のプログラム領域の内容に異常が認められ
た場合には、前記データ記録再生装置をノットレディ状
態とするバックアップ機能を含むことを特徴とする請求
項2記載のデータ記録再生装置。
10. A backup area for storing backup data of the control program stored in the rewritable nonvolatile memory is allocated to the recording medium, and the nonvolatile memory includes: A self-diagnosis area, which is defined as a change-prohibited area in which the contents are prohibited from being changed and stores a self-diagnosis program executable by the program execution means for self-diagnosis as to whether or not the program download process has been correctly performed, The loader program has a self-diagnosis control function for causing the program execution means to execute the self-diagnosis program after a program is downloaded to an area specified by the program download command. Instruct When the download is started, the contents before the change of the change destination area specified by the command are stored in the backup area of the storage medium, and as a result of executing the self-diagnosis program, the rewritable nonvolatile memory If an abnormality is found in the contents of the first program area and no abnormality is found in the contents of the second program area, the data stored in the backup area on the recording medium is stored. The backup data of the first program among the backup data of the control program is transferred to the first program area by using the second program stored in the second program area. When the first program area is restored to its original state and an abnormality is found in the contents of the second program area The data recording and reproducing apparatus according to claim 2, characterized in that it comprises a backup function for the data recording and reproducing apparatus and not-ready condition.
【請求項11】 前記プログラムダウンロード処理が開
始される際に設定されてプログラムダウンロード処理中
を示し、前記プログラムダウンロード処理が正常に終了
した際に設定解除されるフラグ情報を設定するためのフ
ラグ情報設定領域が割り当てられた書き換え可能な不揮
発性記憶手段を更に具備し、 前記記録媒体には、前記書き換え可能不揮発性メモリに
格納されている前記制御用プログラムのバックアップデ
ータを保存しておくためのバックアップ領域が割り当て
られると共に、 前記不揮発性メモリには、内容の変更が禁止される変更
禁止領域として定義され、前記プログラムダウンロード
処理が正しく行われたか否かを自己診断するための前記
プログラム実行手段により実行可能な自己診断プログラ
ムが格納された自己診断領域が割り当てられており、 前記ローダプログラムは、前記プログラムダウンロード
コマンドの指定する領域へのプログラムダウンロードが
行われた後と、前記データ記録再生装置の電源が投入さ
れ、且つ前記フラグ情報設定領域に前記プログラムダウ
ンロード処理中であることを示すフラグ情報が設定され
ている場合に、前記プログラム実行手段により前記自己
診断プログラムを実行させる自己診断制御機能と、前記
プログラムダウンロードコマンドの指示するダウンロー
ドを開始する際に、当該コマンドの指定する変更先領域
の変更前の内容を前記記憶媒体の前記バックアップ領域
に保存しておき、前記自己診断プログラムが実行された
結果、前記書き換え可能不揮発性メモリ上の前記第1の
プログラム領域の内容に異常が認められ、且つ前記第2
のプログラム領域の内容に異常が認められなかった場合
には、前記記録媒体上の前記バックアップ領域に格納さ
れている前記制御用プログラムのバックアップデータの
うちの前記第1のプログラムのバックアップデータを前
記第2のプログラム領域に格納されている前記第2のプ
ログラムを使用して前記第1のプログラム領域に転送す
ることで当該第1のプログラム領域を元の状態に回復さ
せ、前記第2のプログラム領域の内容に異常が認められ
た場合には、前記データ記録再生装置をノットレディ状
態とするバックアップ機能を含むことを特徴とする請求
項2記載のデータ記録再生装置。
11. A flag information setting for setting flag information which is set when the program download process is started to indicate that the program download process is being performed, and which is released when the program download process ends normally. A rewritable nonvolatile storage unit to which an area is assigned; a backup area for storing backup data of the control program stored in the rewritable nonvolatile memory in the recording medium; And the nonvolatile memory is defined as a change-prohibited area in which a change of the content is prohibited, and can be executed by the program executing means for self-diagnosing whether or not the program download process has been correctly performed. Self-diagnosis area where various self-diagnosis programs are stored The loader program is assigned, after the program is downloaded to the area specified by the program download command, the power of the data recording / reproducing device is turned on, and the program download is performed to the flag information setting area. When flag information indicating that processing is in progress is set, a self-diagnosis control function for causing the program execution means to execute the self-diagnosis program, and when starting download indicated by the program download command, The contents before the change of the change destination area specified by the command are stored in the backup area of the storage medium, and as a result of the execution of the self-diagnosis program, the first program area on the rewritable nonvolatile memory Abnormality was found in the contents of The second
If no abnormality is found in the contents of the program area, the backup data of the first program among the backup data of the control program stored in the backup area on the recording medium is replaced with the backup data of the first program. The first program area is restored to its original state by transferring to the first program area using the second program stored in the second program area. 3. The data recording / reproducing apparatus according to claim 2, further comprising a backup function of setting the data recording / reproducing apparatus to a not-ready state when an abnormality is found in the contents.
【請求項12】 前記自己診断プログラムは、前記書き
換え可能不揮発性メモリに格納されている前記制御用プ
ログラムを使用して前記記録媒体上にテスト領域を設け
ることにより前記データ記録再生装置の基本動作を行わ
せることで正しくダウンロードできたか否かを自己診断
する自己診断機能を含むことを特徴とする請求項8乃至
請求項11のいずれかに記載のデータ記録再生装置。
12. The self-diagnosis program executes a basic operation of the data recording / reproducing apparatus by providing a test area on the recording medium using the control program stored in the rewritable nonvolatile memory. 12. The data recording / reproducing apparatus according to claim 8, further comprising a self-diagnosis function for performing a self-diagnosis as to whether or not downloading has been correctly performed.
JP8321742A 1996-12-02 1996-12-02 Data recording and reproducing device capable of downloading of control program Pending JPH10161881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8321742A JPH10161881A (en) 1996-12-02 1996-12-02 Data recording and reproducing device capable of downloading of control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8321742A JPH10161881A (en) 1996-12-02 1996-12-02 Data recording and reproducing device capable of downloading of control program

Publications (1)

Publication Number Publication Date
JPH10161881A true JPH10161881A (en) 1998-06-19

Family

ID=18135948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8321742A Pending JPH10161881A (en) 1996-12-02 1996-12-02 Data recording and reproducing device capable of downloading of control program

Country Status (1)

Country Link
JP (1) JPH10161881A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003084982A (en) * 2001-09-11 2003-03-20 Konica Corp Method and system for installing program in image processor, image processor having program rewrite function and program rewrite method for image processor
JP2006164055A (en) * 2004-12-09 2006-06-22 Seiko Epson Corp Recording device, control method of recording device, control program and recording medium
US7669046B2 (en) 2004-08-03 2010-02-23 Panasonic Corporation Data processing apparatus and firmware update method
JP2010122771A (en) * 2008-11-17 2010-06-03 Hitachi Global Storage Technologies Netherlands Bv Disk drive and method of changing program therefor
US11520483B2 (en) 2020-09-24 2022-12-06 Samsung Electronics Co., Ltd. Operating method for performing firmware image chunk update and verification of whether damage as occurred on storage device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003084982A (en) * 2001-09-11 2003-03-20 Konica Corp Method and system for installing program in image processor, image processor having program rewrite function and program rewrite method for image processor
US7669046B2 (en) 2004-08-03 2010-02-23 Panasonic Corporation Data processing apparatus and firmware update method
JP2006164055A (en) * 2004-12-09 2006-06-22 Seiko Epson Corp Recording device, control method of recording device, control program and recording medium
JP2010122771A (en) * 2008-11-17 2010-06-03 Hitachi Global Storage Technologies Netherlands Bv Disk drive and method of changing program therefor
US11520483B2 (en) 2020-09-24 2022-12-06 Samsung Electronics Co., Ltd. Operating method for performing firmware image chunk update and verification of whether damage as occurred on storage device

Similar Documents

Publication Publication Date Title
JP3310060B2 (en) Storage device and control program rewriting method for the same
US6553532B1 (en) Method and apparatus for recording and reproducing information on and from disk
US20080040818A1 (en) Storage apparatus, firmware renewal method, and control device
JP5339817B2 (en) Disk drive device supporting interface with data sectors of different sizes and data write method thereof
US7058759B1 (en) Configuring a disk drive to support a targeted storage format
JP3219988B2 (en) Disk device having security function and password management method in the device
JPH052837A (en) Information recording and reproducing device
JP4270991B2 (en) Information recording apparatus, information recording method, information recording program, storage medium storing information recording program, and information recording system
JPH10161881A (en) Data recording and reproducing device capable of downloading of control program
JP2001216746A (en) Disk storage device and retry control method
JPH03273424A (en) Recording and reproducing device for commutative storage medium
CN1221885C (en) Method and device for rewriting program carried in disc drive
JP3887062B2 (en) Disk device and throughput / performance measuring method applied to the same
US5889939A (en) Disk drive with a PFA function and monitor value saving control method in the same
JPH08293174A (en) Allowable off-track volume setting method, its device and disk device
RU2340014C2 (en) Information recording carrier, recording/reproducing device, and recording/reproducing method with write protect functions
JPH0876989A (en) Electronic apparatus driven by program and rewriting method for program
JP2961922B2 (en) Data recorder
US7239468B2 (en) Disk drive and control method for disk drive
JPH09293022A (en) Data recording and reproducing device, and method for protecting data in the same
JP2649190B2 (en) External storage device
US20230088609A1 (en) Magnetic disk apparatus and method
JPS6348662A (en) Information recording and reproducing method for optical disk device
JP2595316B2 (en) Alternate assignment processing method
JPH09282603A (en) Disk device and monitor value preservation control method in the same device