JP2007034695A - Starting device, program transfer device and program transfer method - Google Patents

Starting device, program transfer device and program transfer method Download PDF

Info

Publication number
JP2007034695A
JP2007034695A JP2005217397A JP2005217397A JP2007034695A JP 2007034695 A JP2007034695 A JP 2007034695A JP 2005217397 A JP2005217397 A JP 2005217397A JP 2005217397 A JP2005217397 A JP 2005217397A JP 2007034695 A JP2007034695 A JP 2007034695A
Authority
JP
Japan
Prior art keywords
program
activation
transfer
storage means
ram
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
JP2005217397A
Other languages
Japanese (ja)
Inventor
Masahiro Otsuka
雅弘 大塚
Yuichiro Nakamura
勇一郎 中村
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2005217397A priority Critical patent/JP2007034695A/en
Publication of JP2007034695A publication Critical patent/JP2007034695A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a starting device capable of flexibly responding to a request change for starting electronic equipment through a simple structure. <P>SOLUTION: The starting device 1 which executes starting processing for starting electronic equipment comprises a RAM 3 for storing a program supplied from the outside; a nonvolatile memory 4 for storing a boot program BP for starting the starting device 1 itself; and a CPU 2 executing a write program WP stored in the RAM according to an external instruction and transferring the boot program BP stored in the RAM 3 to the nonvolatile memory 4. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は起動装置、プログラム転送装置及びプログラム転送方法に関し、例えば電源投入時に電子機器を起動する起動装置に適用して好適なものである。   The present invention relates to an activation device, a program transfer device, and a program transfer method, and is suitable for application to an activation device that activates an electronic device when power is turned on, for example.

従来、セットトップボックスやハードディスクレコーダ等の電子機器は、当該電子機器に搭載されている起動装置がROM(Read Only Memory)に記憶された基本プログラムをRAM(Random Access Memory)上に読み出すことにより起動し、当該基本プログラムに従って各種動作を実行するようになされている。   Conventionally, electronic devices such as set-top boxes and hard disk recorders are activated by a basic device stored in ROM (Read Only Memory) being read by a boot device installed in the electronic device onto RAM (Random Access Memory). In addition, various operations are executed according to the basic program.

また近年では、ROMに比べて記憶容量が大きく且つ安価な不揮発性メモリ(例えば、NAND型フラッシュメモリ)に基本プログラムを記憶しておくとともに、基本プログラムに先立って実行され当該基本プログラムを不揮発性メモリからRAMに読み出すブートプログラムのみをROMに記憶しておくようになされた起動装置もある(例えば、特許文献1参照)。   In recent years, a basic program is stored in a nonvolatile memory (for example, a NAND flash memory) that has a large storage capacity and is lower than that of a ROM, and is executed prior to the basic program, and the basic program is stored in the nonvolatile memory. There is also an activation device in which only a boot program to be read into the RAM is stored in the ROM (see, for example, Patent Document 1).

ROMの記憶内容は書き換え不能であるのに対し、不揮発性メモリはその記憶内容を随時変更できるため、電子機器に改良が施された等の理由で基本プログラムを変更する必要が生じた場合でも容易に対応することができる。
特開2004−355560公報
The contents stored in the ROM cannot be rewritten, but the contents stored in the non-volatile memory can be changed at any time, so it is easy even when the basic program needs to be changed due to improvements in electronic equipment. It can correspond to.
JP 2004-355560 A

ここで、従来ROMに記憶していたブートプログラムを、基本プログラムとともにNAND型フラッシュメモリ等の不揮発性メモリに記憶するようにすれば、当該ROMを廃して起動装置の構成を簡素化することができるとともに、ブートプログラムの変更にも容易に対応できると考えられる。   Here, if the boot program conventionally stored in the ROM is stored in a non-volatile memory such as a NAND flash memory together with the basic program, the ROM can be eliminated and the configuration of the activation device can be simplified. At the same time, the boot program can be easily changed.

NAND型フラッシュメモリには、その構造上、データを正常に読み書きできない不良ブロックを発生する可能性がある。そして上述した基本プログラムは、この不良ブロックを避けてNAND型フラッシュメモリに記憶(書き込み)される必要がある。   In the NAND flash memory, due to its structure, there is a possibility that a defective block cannot be read / written normally. The basic program described above needs to be stored (written) in the NAND flash memory while avoiding the defective block.

ところが、NAND型フラッシュメモリの不良ブロックは個々のメモリ毎にその位置が異なるため、当該NAND型フラッシュメモリの製造時や出荷時において、一律に基本プログラムを書き込んでおくことはできないという問題があった。   However, since the positions of the defective blocks of the NAND flash memory are different for each memory, there is a problem that the basic program cannot be written uniformly at the time of manufacture or shipment of the NAND flash memory. .

本発明は以上の点を考慮してなされたもので、簡易な構成で、電子機器を起動するための要求変更に柔軟に対応し得る起動装置、及びこれに対するプログラム転送装置及びプログラム転送方法を提案しようとするものである。   The present invention has been made in consideration of the above points, and proposes an activation device that can flexibly respond to a request change for activating an electronic device with a simple configuration, and a program transfer device and a program transfer method for the activation device. It is something to try.

かかる課題を解決するため本発明においては、電子機器を起動させるための起動処理を実行する起動装置において、外部から供給されるプログラムを記憶する第1の記憶手段と、起動装置自身を起動させる起動プログラムを記憶するための第2の記憶手段と、外部から供給される命令に応じて第1の記憶手段に記憶された転送プログラムを実行し、当該第1の記憶手段に記憶された起動プログラムを上記第2の記憶手段に転送する制御手段と を起動装置に設けた。   In order to solve such a problem, in the present invention, in an activation device that executes an activation process for activating an electronic device, a first storage unit that stores a program supplied from the outside, and activation that activates the activation device itself A second storage means for storing the program, and a transfer program stored in the first storage means in response to a command supplied from the outside, and an activation program stored in the first storage means Control means for transferring to the second storage means is provided in the starting device.

転送プログラム及び起動プログラムを第1の記憶手段に記憶させた後、転送プログラムを外部から起動し、当該転送プログラムを実行する制御手段によって起動プログラムを第2の記憶手段に書き込むようにしたことにより、簡易な構成で、電子機器を起動するための要求変更に柔軟に対応することができる。   After storing the transfer program and the start program in the first storage means, the transfer program is started from the outside, and the start program is written in the second storage means by the control means for executing the transfer program, With a simple configuration, it is possible to flexibly cope with a request change for starting an electronic device.

また本発明においては、電子機器を起動させるための起動処理を実行する起動装置に対し、当該起動装置自身を起動させる起動プログラムを転送するプログラム転送装置において、起動装置に設けられた第1の記憶手段に対し、起動プログラム及び転送プログラムを転送して記憶させる第1の転送手段と、第1の記憶手段に記憶された転送プログラムを起動装置に実行させて、起動プログラムを第1の記憶手段から読み出して起動装置に設けられた第2の記憶手段に転送して書き込ませる第2の転送手段とをプログラム転送装置に設けた。   According to the present invention, in the program transfer device that transfers the activation program for activating the activation device itself to the activation device that executes the activation process for activating the electronic device, the first storage provided in the activation device A first transfer means for transferring and storing the activation program and the transfer program, and the activation device for executing the transfer program stored in the first storage means, so that the activation program is read from the first storage means. The program transfer device is provided with second transfer means for reading and transferring to a second storage means provided in the activation device.

転送プログラム及び起動プログラムを第1の記憶手段に記憶させた後、転送プログラムをプログラム転送装置から起動し、当該転送プログラムによって起動プログラムを第2の記憶手段に書き込むようにしたことにより、簡易な構成で、電子機器を起動するための要求変更に柔軟に対応することができる。   After the transfer program and the activation program are stored in the first storage means, the transfer program is activated from the program transfer apparatus, and the activation program is written in the second storage means by the transfer program, thereby simplifying the configuration. Thus, it is possible to flexibly cope with a request change for starting the electronic device.

また本発明においては、電子機器を起動させるための起動処理を実行する起動装置に対し、当該起動装置自身を起動させる起動プログラムを転送するプログラム転送方法において、起動装置に設けられた第1の記憶手段に対し、起動プログラム及び転送プログラムを転送して記憶させる第1の転送ステップと、第1の記憶手段に記憶された転送プログラムを起動装置に実行させて、起動プログラムを第1の記憶手段から読み出して起動装置に設けられた第2の記憶手段に転送して書き込ませる第2の転送ステップとを設けた。   According to the present invention, in a program transfer method for transferring an activation program for activating the activation device itself to an activation device that executes an activation process for activating an electronic device, the first storage provided in the activation device A first transfer step for transferring and storing the activation program and the transfer program, and causing the activation device to execute the transfer program stored in the first storage unit, so that the activation program is read from the first storage unit. And a second transfer step for reading and writing to a second storage means provided in the activation device.

転送プログラム及び起動プログラムを第1の記憶手段に記憶させた後、転送プログラムをプログラム転送装置から起動し、当該転送プログラムによって起動プログラムを第2の記憶手段に書き込むようにしたことにより、簡易な構成で、電子機器を起動するための要求変更に柔軟に対応することができる。   After the transfer program and the activation program are stored in the first storage means, the transfer program is activated from the program transfer apparatus, and the activation program is written in the second storage means by the transfer program, thereby simplifying the configuration. Thus, it is possible to flexibly cope with a request change for starting the electronic device.

本発明によれば、起動装置自身を起動するための起動プログラム及び転送プログラムを第1の記憶手段に記憶させた後、当該転送プログラムを外部から起動させ、当該転送プログラムを実行する制御手段によって起動プログラムを第2の記憶手段に書き込むようにしたことにより、簡易な構成で、電子機器を起動するための要求変更に柔軟に対応し得る起動装置、及びこれに対するプログラム転送装置及びプログラム転送方法を実現することができる。   According to the present invention, after the activation program and the transfer program for activating the activation device itself are stored in the first storage unit, the transfer program is activated from the outside, and activated by the control unit that executes the transfer program By enabling the program to be written in the second storage means, an activation device capable of flexibly responding to a request change for activating an electronic device with a simple configuration, and a program transfer device and a program transfer method for the activation device are realized. can do.

以下、図面について、本発明の一実施の形態を詳述する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

(1)起動装置の構成
図1において、1は全体として本発明を適用した起動装置を示し、CPU2に対し、RAM3とNAND型フラッシュメモリでなる不揮発性メモリ4とが接続されて構成されている。
(1) Configuration of Startup Device In FIG. 1, reference numeral 1 denotes a startup device to which the present invention is applied as a whole, and is configured by connecting a RAM 3 and a nonvolatile memory 4 formed of a NAND flash memory to a CPU 2. .

第2の記憶手段としての不揮発性メモリ4には、ブートプログラムBP及び基本プログラムMPが格納されている。起動時においてCPU2は、まず不揮発性メモリ4からRAM3にブートプログラムBPを読み出し、当該ブートプログラムBPに従って起動対象の電子機器(図示せず)を起動させる。続いてCPU2は、不揮発性メモリ4からRAM3に基本プログラムMPを読み出し、当該基本プログラムMPに従って電子機器の各種処理を実行する。   A non-volatile memory 4 as a second storage means stores a boot program BP and a basic program MP. At the time of activation, the CPU 2 first reads the boot program BP from the nonvolatile memory 4 to the RAM 3 and activates an electronic device (not shown) to be activated according to the boot program BP. Subsequently, the CPU 2 reads the basic program MP from the nonvolatile memory 4 to the RAM 3 and executes various processes of the electronic device according to the basic program MP.

(2)不揮発性メモリに対するプログラムの書き込み
上述したように、不揮発性メモリ4にはブートプログラムBP及び基本プログラムMPが記憶されている。不揮発性メモリ4はNAND型フラッシュメモリであり、NAND型フラッシュメモリには不良ブロックが生じることから、ブートプログラムBP及び基本プログラムMPは当該不良ブロックを避けて書き込まれる必要がある。また、不揮発性メモリ4に記憶されたプログラムを読み出して実行するためには、CPU2はこの不良ブロックの位置を認識しておく必要がある。
(2) Writing of program to nonvolatile memory As described above, the nonvolatile memory 4 stores the boot program BP and the basic program MP. Since the nonvolatile memory 4 is a NAND flash memory, and a defective block is generated in the NAND flash memory, the boot program BP and the basic program MP need to be written while avoiding the defective block. Further, in order to read and execute the program stored in the nonvolatile memory 4, the CPU 2 needs to recognize the position of the defective block.

ところが、不良ブロックは不揮発性メモリ4の不特定な位置に発生するため、これらのプログラムを予め不揮発性メモリ4に書き込んでから起動装置1に組み込むようにした場合、CPU2が不揮発性メモリ4の不良ブロック位置を認識することができないという問題がある。このため本発明の起動装置1では、その製造時において不揮発性メモリ4を当該起動装置1に組み込んだ後、外部からブートプログラムBP及び基本プログラムMPを不揮発性メモリ4に書き込むようにした。   However, since a defective block is generated at an unspecified position in the nonvolatile memory 4, when these programs are written in the nonvolatile memory 4 in advance and then incorporated into the activation device 1, the CPU 2 fails in the nonvolatile memory 4. There is a problem that the block position cannot be recognized. For this reason, in the starting device 1 of the present invention, the non-volatile memory 4 is incorporated into the starting device 1 at the time of manufacture, and then the boot program BP and the basic program MP are externally written into the non-volatile memory 4.

このような不揮発性メモリ4へのプログラム書き込みを行うには、起動装置1の回路基板に専用のプログラム書込冶具を接続し、当該プログラム書込冶具によって不揮発性メモリ4の不良ブロック位置を認識しながらプログラムを書き込んでいくとともに、認識した不良ブロック位置をCPU2に伝達するようにすることが考えられる。しかしながら、かかる機能を有するプログラム書込冶具は複雑かつ高価であるとともに、プログラム書込冶具を接続するための接続部を回路基板に設ける必要があり、これにより起動装置1自体も複雑化してしまうという問題がある。   In order to perform such program writing to the nonvolatile memory 4, a dedicated program writing jig is connected to the circuit board of the activation device 1, and the defective block position of the nonvolatile memory 4 is recognized by the program writing jig. It is conceivable to write the program while transmitting the recognized defective block position to the CPU 2. However, the program writing jig having such a function is complicated and expensive, and it is necessary to provide a connection part for connecting the program writing jig to the circuit board, which also complicates the activation device 1 itself. There's a problem.

また、起動装置1のCPU2がプログラムを不揮発性メモリ4に書き込むことができれば、上述したプログラム書込冶具は不要になるが、ブートプログラムBPが不揮発性メモリ4に記憶されていない状態では、当該起動装置1自身が起動することができないという問題がある。   Further, if the CPU 2 of the activation device 1 can write the program to the nonvolatile memory 4, the above-described program writing jig is not necessary, but if the boot program BP is not stored in the nonvolatile memory 4, the activation is performed. There is a problem that the device 1 itself cannot be activated.

このため本発明では、起動装置1の製造時において、まず、プログラムを不揮発性メモリ4に書き込む機能のみを有する書込プログラムWPを、ブートプログラムBP及び基本プログラムMPとともに第1の記憶手段としてのRAM3に転送する。そして、RAM3上の書込プログラムWPを外部からCPU2に強制実行させ、ブートプログラムBP及び基本プログラムMPをRAM3から読み出して不揮発性メモリ4に書き込むようにする。   Therefore, in the present invention, at the time of manufacturing the activation device 1, first, the write program WP having only the function of writing the program to the nonvolatile memory 4 is stored in the RAM 3 as the first storage unit together with the boot program BP and the basic program MP. Forward to. Then, the CPU 2 is forced to execute the write program WP on the RAM 3 from the outside, and the boot program BP and the basic program MP are read from the RAM 3 and written to the nonvolatile memory 4.

このようなRAM3に対するプログラム転送には、JTAG(Joint European Test Action Group)やEJTAG(Enhanced JTAG)のようなバウンダリスキャン方式を適用することができる。JTAGは標準的なバウンダリスキャン方式であり、CPUのデバッグ機能やRAMへのプログラム転送機能を持ち、必要となる回路構成が簡単であるという利点を有するものの、RAM上のプログラムを実行させる(実行権限の移動)ことはできない。一方、EJTAGはJTAGの拡張版であり、JTAGの機能に加えてRAM上プログラムに対する実行権限移動機能を有するものの、回路構成が複雑になることやノイズに弱いという欠点を有している。   For such program transfer to the RAM 3, a boundary scan system such as JTAG (Joint European Test Action Group) or EJTAG (Enhanced JTAG) can be applied. JTAG is a standard boundary scan system, and has the advantage of having a CPU debug function and a program transfer function to the RAM, and the required circuit configuration is simple, but allows the program on the RAM to be executed (execution authority) Cannot move). On the other hand, EJTAG is an extended version of JTAG and has the function of transferring execution authority for programs on the RAM in addition to the function of JTAG, but has the disadvantages that the circuit configuration is complicated and that it is vulnerable to noise.

このため本発明の起動装置1では、上述したJTAGを用いてRAM3に対する書込プログラムWP、ブートプログラムBP及び基本プログラムMPの転送を行うとともに、NMI(Non-Maskable Interrupt)と呼ばれる割込命令を制御手段としてのCPU2に与えることにより、RAM3上の書込プログラムWPをCPU2に強制実行させるようにした。NMIはマスク不可能な割込命令であり、CPU2は、ブートプログラムBPが未動作の状態においても当該NMIを理解して実行することができる。   Therefore, in the starter 1 of the present invention, the write program WP, the boot program BP, and the basic program MP are transferred to the RAM 3 using the above-described JTAG, and an interrupt instruction called NMI (Non-Maskable Interrupt) is controlled. By giving it to the CPU 2 as means, the CPU 2 is forced to execute the write program WP on the RAM 3. NMI is an unmaskable interrupt instruction, and the CPU 2 can understand and execute the NMI even when the boot program BP is not operating.

図1に示すようにCPU2には、JTAG回路が内蔵されているとともに、JTAGに対応したTAP(Test Access Port)と呼ばれるテスト用外部端子とNMI端子とが設けられている。そして、起動装置1の製造時において、TAP端子及びNMI端子に対してプログラム転送装置10を接続し、当該プログラム転送装置10から書込プログラムWP、ブートプログラムBP及び基本プログラムMPを起動装置1に転送する。   As shown in FIG. 1, the CPU 2 has a built-in JTAG circuit and a test external terminal called TAP (Test Access Port) corresponding to JTAG and an NMI terminal. At the time of manufacturing the activation device 1, the program transfer device 10 is connected to the TAP terminal and the NMI terminal, and the write program WP, the boot program BP, and the basic program MP are transferred from the program transfer device 10 to the activation device 1. To do.

次に、起動装置1の製造時においてブートプログラムBPを転送し不揮発性メモリ4に書き込んで実行可能にする際の処理手順をフローチャートを用いて説明する。   Next, a processing procedure when the boot program BP is transferred and written into the nonvolatile memory 4 to be executable at the time of manufacturing the activation device 1 will be described with reference to a flowchart.

起動装置1の組立が完了した後、CPU2にプログラム転送装置10が接続されると、図2に示すプログラム転送処理手順RT1が開始される。この開始時において、起動装置1には電源が投入されるとともに、RAM3及び不揮発性メモリ4はいずれも空の状態にある。   When the assembly of the activation device 1 is completed and the program transfer device 10 is connected to the CPU 2, the program transfer processing procedure RT1 shown in FIG. 2 is started. At the start, the power is supplied to the activation device 1 and the RAM 3 and the nonvolatile memory 4 are both empty.

ステップSP1において、第1の転送手段としてのプログラム転送装置10は、図3(A)に示すように、TAP端子を介して書込プログラムWP及びブートプログラムBPをRAM3に転送し、次のステップSP2に移る。ステップSP2において、第2の転送手段としてのプログラム転送装置10は、図3(B)に示すように、RAM3上の書込プログラムWPを起動する旨の(すなわち書込プログラムWPに実行権限を移動する)NMI信号を、NMI端子を介してCPU2に送出する。   In step SP1, the program transfer apparatus 10 as the first transfer means transfers the write program WP and the boot program BP to the RAM 3 via the TAP terminal as shown in FIG. 3A, and the next step SP2 Move on. In step SP2, the program transfer apparatus 10 as the second transfer means starts the write program WP on the RAM 3 as shown in FIG. 3B (that is, moves the execution authority to the write program WP). Send the NMI signal to the CPU 2 via the NMI terminal.

次のステップSP3において、起動装置1のCPU2はNMI信号に応じて動作し、RAM3に格納されている書込プログラムWPを起動し、次のステップSP4に移る。   In the next step SP3, the CPU 2 of the activation device 1 operates in response to the NMI signal, activates the writing program WP stored in the RAM 3, and proceeds to the next step SP4.

ステップSP4において、CPU2は書込プログラムWPに従い、図4に示すようにRAM3上のブートプログラムBP及び基本プログラムMPを読み出して不揮発性メモリ4に書き込む。このときCPU2は、不揮発性メモリ4の不良ブロックを検出しその位置を不良位置情報として記憶しながら、当該不良ブロックを避けてブートプログラムBP及び基本プログラムMPを書き込んでいく。   In step SP4, the CPU 2 reads the boot program BP and the basic program MP on the RAM 3 and writes them in the nonvolatile memory 4 as shown in FIG. At this time, the CPU 2 detects the defective block in the nonvolatile memory 4 and stores the position as defective position information, and writes the boot program BP and the basic program MP while avoiding the defective block.

かくしてブートプログラムBPが起動装置1の不揮発性メモリ4に書き込まれ、これにより起動装置1はブートプログラムBPに従って自立起動し得る状態となる。そして、CPU2はステップSP5に移ってプログラム転送処理手順を終了する。   Thus, the boot program BP is written into the non-volatile memory 4 of the activation device 1, and the activation device 1 can be activated independently according to the boot program BP. Then, the CPU 2 moves to step SP5 and ends the program transfer processing procedure.

(3)動作及び効果
以上の構成において、この起動装置1は、当該起動装置1自身を起動させるためのブートプログラムBP及び基本プログラムMPを、共に不揮発性メモリ4に記憶させるようにしたことにより、従来ブートプログラムBPを記憶していたROMを廃して当該起動装置1全体の構成を簡素化するとともに、ブートプログラムBP及び基本プログラムMPを容易に変更可能にした。
(3) Operation and effect In the above configuration, the activation device 1 stores the boot program BP and the basic program MP for activating the activation device 1 itself in the nonvolatile memory 4. The ROM that previously stores the boot program BP is eliminated to simplify the overall configuration of the boot device 1 and the boot program BP and the basic program MP can be easily changed.

そして、ブートプログラムBP及び基本プログラムMPを不揮発性メモリ4に書き込む際には、JTAGの機能を用いて、ブートプログラムBP及び基本プログラムMPを書込プログラムWPと共に一旦RAM3に格納した後、当該書込プログラムWPをNMI信号によって外部から強制起動させ、CPU2が書込プログラムWPに従って、ブートプログラムBP及び基本プログラムMPをRAM3から読み出して不揮発性メモリ4に書き込むようにした。   When the boot program BP and the basic program MP are written into the nonvolatile memory 4, the boot program BP and the basic program MP are temporarily stored in the RAM 3 together with the write program WP using the JTAG function, and then the write is performed. The program WP is forcibly activated from the outside by an NMI signal, and the CPU 2 reads the boot program BP and the basic program MP from the RAM 3 and writes them in the nonvolatile memory 4 in accordance with the write program WP.

これにより起動装置1は、不揮発性メモリ4に不特定に発生する不良ブロックをCPU2で認識してその位置を不良位置情報として記憶しながら、当該不良ブロックを避けてブートプログラムBP及び基本プログラムMPを書き込むことができるとともに、当該不良位置情報に基づいてブートプログラムBP及び基本プログラムMPを正確に読み出して実行することができる。   As a result, the activation device 1 recognizes a defective block that occurs unspecified in the nonvolatile memory 4 by the CPU 2 and stores the position as defective position information, while avoiding the defective block, the boot program BP and the basic program MP are stored. In addition to being able to write, the boot program BP and the basic program MP can be accurately read and executed based on the defect position information.

以上の構成によれば、RAM3に転送した書込プログラムWPを外部から起動させてブートプログラムBP及び基本プログラムMPをRAM3から不揮発性メモリ4に書き込ませるようにしたことにより、簡易な構成で、起動装置1のブートプログラムBPを起動装置1の外部から不揮発性メモリ4に書き込むことができる。   According to the above configuration, the write program WP transferred to the RAM 3 is started from the outside, and the boot program BP and the basic program MP are written from the RAM 3 to the nonvolatile memory 4, so that the boot can be started with a simple configuration. The boot program BP of the device 1 can be written into the nonvolatile memory 4 from the outside of the activation device 1.

(4)他の実施の形態
なお、上述の実施の形態においては、ブートプログラムBP及び基本プログラムMPを共にRAM3に転送しておき、書込プログラムWPによってこれらを同時に不揮発性メモリ4に書き込むようにしたが、本発明はこれに限らず、起動装置1に自立起動させるに不可欠なブートプログラムBPのみをRAM3に転送するとともに書込プログラムWPによって不揮発性メモリ4に書き込むようにし、基本プログラムMPについては、この後に書き込むようにしてもよい。
(4) Other Embodiments In the above-described embodiment, both the boot program BP and the basic program MP are transferred to the RAM 3 and are simultaneously written in the nonvolatile memory 4 by the write program WP. However, the present invention is not limited to this, and only the boot program BP indispensable for the start-up device 1 to start up independently is transferred to the RAM 3 and written into the nonvolatile memory 4 by the write program WP. This may be written after this.

また上述の実施の形態においては、ブートプログラムBP及び基本プログラムMPを共にRAM3に転送しておき、書込プログラムWPによってこれらを同時に不揮発性メモリ4に書き込むようにしたが、本発明はこれに限らず、起動装置1に自立起動させるに不可欠なブートプログラムBPのみをRAM3に転送するとともに書込プログラムWPによって不揮発性メモリ4に書き込むようにし、基本プログラムMPについてはこの後に書き込むようにしてもよい。   In the above-described embodiment, both the boot program BP and the basic program MP are transferred to the RAM 3 and are simultaneously written in the nonvolatile memory 4 by the writing program WP. However, the present invention is not limited to this. Instead, only the boot program BP indispensable for the activation device 1 to be activated independently may be transferred to the RAM 3 and written to the nonvolatile memory 4 by the writing program WP, and the basic program MP may be written after this.

また上述の実施の形態においては、不揮発性メモリ4としてNAND型フラッシュメモリを用いた場合について述べたが、本発明はこれに限らず、NOR型フラッシュメモリ等種々の不揮発性メモリを用いてもよい。   In the above-described embodiment, the case where a NAND flash memory is used as the nonvolatile memory 4 has been described. However, the present invention is not limited to this, and various nonvolatile memories such as a NOR flash memory may be used. .

さらに上述の実施の形態においては、電子機器を起動させるために必要な情報としてブートプログラムBPを対象とするようにした場合について述べたが、本発明はこれに限らず、電子機器を起動させるために必要な個人情報、内部情報等のその他種々の情報を対象とするようにしても良い。   Further, in the above-described embodiment, the case where the boot program BP is targeted as information necessary for starting up the electronic device has been described. However, the present invention is not limited to this, and the electronic device is started up. Various other information such as personal information, internal information, and the like necessary for the processing may be targeted.

本発明による起動装置の構成を示すブロック図である。It is a block diagram which shows the structure of the starting device by this invention. プログラム転送処理手順を示すフローチャートである。It is a flowchart which shows a program transfer process sequence. プログラムの書き込み処理の説明に供する略線図である。It is an approximate line figure used for explanation of program writing processing. プログラムの書き込み処理の説明に供する略線図である。It is an approximate line figure used for explanation of program writing processing.

符号の説明Explanation of symbols

1……起動装置、2……CPU、3……RAM、4……不揮発性メモリ、10……プログラム転送装置。   DESCRIPTION OF SYMBOLS 1 ... Start-up device, 2 ... CPU, 3 ... RAM, 4 ... Nonvolatile memory, 10 ... Program transfer apparatus.

Claims (5)

電子機器を起動させるための起動処理を実行する起動装置において、
外部から供給されるプログラムを記憶する第1の記憶手段と、
上記起動装置自身を起動させる起動プログラムを記憶するための第2の記憶手段と、
外部から供給される命令に応じて上記第1の記憶手段に記憶された転送プログラムを実行し、当該第1の記憶手段に記憶された上記起動プログラムを上記第2の記憶手段に転送して書き込む制御手段と
を具えることを特徴とする起動装置。
In an activation device that executes an activation process for activating an electronic device,
First storage means for storing a program supplied from outside;
Second storage means for storing an activation program for activating the activation device itself;
The transfer program stored in the first storage means is executed in response to a command supplied from the outside, and the activation program stored in the first storage means is transferred to the second storage means and written. An activation device comprising: control means.
上記第2の記憶手段はNAND型フラッシュメモリである
ことを特徴とする請求項1に記載の起動装置。
The activation device according to claim 1, wherein the second storage means is a NAND flash memory.
上記第2の記憶手段は、上記起動プログラムの他に上記起動装置の基本プログラムを記憶している
ことを特徴とする請求項1に記載の起動装置。
The startup device according to claim 1, wherein the second storage unit stores a basic program of the startup device in addition to the startup program.
電子機器を起動させるための起動処理を実行する起動装置に対し、当該起動装置自身を起動させる起動プログラムを転送するプログラム転送装置において、
上記起動装置に設けられた第1の記憶手段に対し、上記起動プログラム及び転送プログラムを転送して記憶させる第1の転送手段と、
上記第1の記憶手段に記憶された上記転送プログラムを上記起動装置に実行させて、上記起動プログラムを上記第1の記憶手段から読み出して上記起動装置に設けられた第2の記憶手段に転送して書き込ませる第2の転送手段と
を具えることを特徴とするプログラム転送装置。
In a program transfer device that transfers a startup program that starts the startup device itself to a startup device that executes startup processing for starting an electronic device,
First transfer means for transferring and storing the start program and transfer program to the first storage means provided in the start device;
Causing the activation device to execute the transfer program stored in the first storage means, reading the activation program from the first storage means, and transferring it to the second storage means provided in the activation device; And a second transfer means for writing the program.
電子機器を起動させるための起動処理を実行する起動装置に対し、当該起動装置自身を起動させる起動プログラムを転送するプログラム転送方法において、
上記起動装置に設けられた第1の記憶手段に対し、上記起動プログラム及び転送プログラムを転送して記憶させる第1の転送ステップと、
上記第1の記憶手段に記憶された上記転送プログラムを実行させて、上記起動プログラムを上記第1の記憶手段から読み出して上記起動装置に設けられた第2の記憶手段に転送して書き込ませる第2の転送ステップと
を具えることを特徴とするプログラム転送方法。
In a program transfer method for transferring an activation program for activating the activation device itself to an activation device that executes an activation process for activating an electronic device,
A first transfer step of transferring and storing the start program and the transfer program to a first storage means provided in the start device;
The transfer program stored in the first storage means is executed, and the activation program is read from the first storage means, transferred to the second storage means provided in the activation device, and written. A program transfer method comprising: two transfer steps.
JP2005217397A 2005-07-27 2005-07-27 Starting device, program transfer device and program transfer method Pending JP2007034695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005217397A JP2007034695A (en) 2005-07-27 2005-07-27 Starting device, program transfer device and program transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005217397A JP2007034695A (en) 2005-07-27 2005-07-27 Starting device, program transfer device and program transfer method

Publications (1)

Publication Number Publication Date
JP2007034695A true JP2007034695A (en) 2007-02-08

Family

ID=37793878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005217397A Pending JP2007034695A (en) 2005-07-27 2005-07-27 Starting device, program transfer device and program transfer method

Country Status (1)

Country Link
JP (1) JP2007034695A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014167819A (en) * 2014-05-15 2014-09-11 Hitachi Automotive Systems Ltd Electronic control device for automobile

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014167819A (en) * 2014-05-15 2014-09-11 Hitachi Automotive Systems Ltd Electronic control device for automobile

Similar Documents

Publication Publication Date Title
US7711941B2 (en) Method and apparatus for booting independent operating systems in a multi-processor core integrated circuit
US20100122017A1 (en) Memory controller, non-volatile memory system, and host device
US20060047938A1 (en) Method and apparatus to initialize CPU
JP2001195241A (en) Computer
KR100777446B1 (en) Electronic device and booting method thereof
JP2010500682A (en) Flash memory access circuit
JP2008210053A (en) Memory error pattern recording system and method
JP2005071303A (en) Program starting device
JP4784100B2 (en) Processing device and firmware download method thereof.
US8335871B2 (en) Memory system and method of driving the same
JP2007206933A (en) Information processor, boot loader generation method and program transfer method in information processor
JP2008004238A (en) Verifying control scheme for semiconductor memory and method thereof
JP2007034695A (en) Starting device, program transfer device and program transfer method
JP5084853B2 (en) Firmware update device, communication device, electronic device, firmware update system, firmware update method, and program
JP4471947B2 (en) Data processing apparatus and data processing method
JP2011164827A (en) Electronic apparatus including flash memory and method for updating program stored in flash memory
US20070250693A1 (en) Boot system and method thereof
JPH11265283A (en) Correction method for firmware in storage device, and storage device
JP2005258642A (en) Embedded information processor
JP2004355560A (en) Starting device
JP2008021396A (en) Controller and memory system
JP2008140124A (en) Data processor
JP2002297563A (en) Microcomputer and data processing apparatus
JP2011150383A (en) Firmware writing method
JP2007084232A (en) Elevator control program updating device