JP2012022541A - Electronic apparatus and program start control method thereof - Google Patents

Electronic apparatus and program start control method thereof Download PDF

Info

Publication number
JP2012022541A
JP2012022541A JP2010160222A JP2010160222A JP2012022541A JP 2012022541 A JP2012022541 A JP 2012022541A JP 2010160222 A JP2010160222 A JP 2010160222A JP 2010160222 A JP2010160222 A JP 2010160222A JP 2012022541 A JP2012022541 A JP 2012022541A
Authority
JP
Japan
Prior art keywords
program
activation
rewriting
electronic device
flash memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2010160222A
Other languages
Japanese (ja)
Inventor
Fumio Nakano
文男 中野
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2010160222A priority Critical patent/JP2012022541A/en
Publication of JP2012022541A publication Critical patent/JP2012022541A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a program start control method and an electronic apparatus, capable of improving its reliability if the program is read from a nonvolatile memory and then the electronic apparatus starts.SOLUTION: An electronic apparatus includes a display part 12, an operating section 13, and a plurality of NAND flash memories 102 and 103 in which the same start program for start is stored, if data error on a first start program read from the memory 102 is detected(S203;Y), a second start program is read from the memory 103(S204), a selection message about whether or not the first start program is rewritten on the second start program is displayed on the display part 12(S205), and if the rewriting is selected by the operating section 13(S206;Y,S207;Y), the rewriting is executed(S208-S211).

Description

本発明はプログラム制御プロセッサを有する電子機器に係り、特にフラッシュメモリのような不揮発性メモリからプログラムを読み出して起動するための制御方法に関する。   The present invention relates to an electronic apparatus having a program control processor, and more particularly to a control method for reading a program from a nonvolatile memory such as a flash memory and starting it.

NANDフラッシュメモリは、NORフラッシュメモリよりも半導体構造が簡単でコスト削減が可能になることから多くの電子機器で採用されている。しかしながら構造上データエラーが発生しやすいために、エラー検出・訂正(ECC:Error Checking and Correction)を併用するものが一般的である。特に、近年採用されている低コストのMLC(Multiple Level Cell)型NANDフラッシュメモリはSLC(Single Level Cell)型よりもエラーが発生しやすい。   NAND flash memory is used in many electronic devices because it has a simpler semiconductor structure than NOR flash memory and enables cost reduction. However, since data errors are likely to occur due to the structure, it is common to use error checking and correction (ECC) together. In particular, low-cost MLC (Multiple Level Cell) type NAND flash memories adopted in recent years are more susceptible to errors than SLC (Single Level Cell) type.

さらに、フラッシュメモリでは、選択したメモリセルのデータ消去や書込み時に印加される高電圧が非選択メモリセルに影響してデータエラーの原因となるディスターブ現象が知られている(特許文献1を参照)。特に、フラッシュメモリに格納したプログラムを読み出して起動する携帯通信機器では、ディスターブ現象により訂正不能のエラーが発生すると携帯通信機器が起動しなくなるという重大な問題が生じる。そこで、フラッシュメモリの信頼性を十分に高めることが強く要請されており、そのための方法が種々提案されている。   Further, in a flash memory, a disturb phenomenon is known in which a high voltage applied at the time of erasing or writing data in a selected memory cell affects unselected memory cells and causes a data error (see Patent Document 1). . In particular, a portable communication device that reads and starts a program stored in a flash memory has a serious problem that the portable communication device does not start when an uncorrectable error occurs due to a disturb phenomenon. Therefore, there is a strong demand for sufficiently increasing the reliability of flash memory, and various methods for that purpose have been proposed.

たとえば、特許文献1に開示された記憶装置では、プログラムデータを複数の物理アドレス領域に多重化して格納しておき、電源投入時にエラー検出・訂正を実行し、エラーのない領域のデータを用いて訂正不能のエラーが発生している領域のデータを修復する。これによって記録データの信頼性を向上させるとともに、データ修復中に電源断となっても正常データの破壊を回避できることが認識されている。   For example, in the storage device disclosed in Patent Document 1, program data is multiplexed and stored in a plurality of physical address areas, error detection / correction is executed when power is turned on, and data in an error-free area is used. Repair data in areas where uncorrectable errors occur. It has been recognized that this improves the reliability of recorded data and can prevent destruction of normal data even if the power is cut off during data restoration.

特許文献2に開示された半導体装置によれば、フラッシュメモリ内の複数ブロックに同一のブートプログラムを格納しておき、あるブロックから読み出したデータの判定結果が不良であれば、次のブロックから読み出して同様の判定を行い、判定が不良でなければ当該データをCPUへ出力する。   According to the semiconductor device disclosed in Patent Document 2, the same boot program is stored in a plurality of blocks in the flash memory, and if the determination result of data read from one block is bad, the next block is read. If the determination is not bad, the data is output to the CPU.

特許文献3に開示されたフラッシュメモリシステムによれば、データのコピーがフラッシュメモリの異なる位置に記憶され、これらコピーデータから最良の部分を選択してシステムを起動する。   According to the flash memory system disclosed in Patent Document 3, data copies are stored at different locations in the flash memory, and the system is activated by selecting the best part from these copy data.

特開2007−122640号公報JP 2007-122640 A 特開2005−215824号公報JP 2005-215824 A 特表2007−518166号公報Special table 2007-518166 gazette

しかしながら、上述したように、NANDフラッシュメモリはMLCの採用によりデータの信頼性が十分高いとはいえない状況にある。このために、複数ブロックに同一データを格納したり、複数データから良好部分を選択して使用したりする方法では十分な信頼性を確保できない可能性がある。   However, as described above, the NAND flash memory is in a situation where data reliability is not sufficiently high due to the adoption of MLC. For this reason, there is a possibility that sufficient reliability cannot be secured by a method of storing the same data in a plurality of blocks or selecting and using a good portion from a plurality of data.

また、予備プログラムが動作するうちに、もとのプログラムが復旧できればよいが、NANDフラッシュメモリへのデータの書き込みには時間がかかる。したがって、この間に携帯機器のバッテリ切れが発生した場合あるいはユーザが誤って電源供給を停止した場合には、NANDフラッシュメモリのデータが異常となり、その後の読出しだけでは復旧できない状態となる。   In addition, it is sufficient that the original program can be restored while the spare program is operating, but it takes time to write data to the NAND flash memory. Therefore, if the battery of the portable device is exhausted during this time or if the user stops the power supply accidentally, the data in the NAND flash memory becomes abnormal and cannot be recovered only by subsequent reading.

さらに、ユーザがNANDフラッシュメモリの特性についての知識を持たないのが一般的であるから、携帯電話機などの携帯通信機器では、通常、メモリ管理をユーザに見えない状態で実施している。しかしながら、このことは、修復に失敗するとプログラムが起動しなくなる恐れがある重大な処理をユーザが知らないうちに実行しているということである。このために、ユーザが知らずに何らかの操作をする可能性があり、その操作により電源断となってプログラムの修復が失敗する可能性もないとはいえない。   Furthermore, since the user generally does not have knowledge about the characteristics of the NAND flash memory, in a mobile communication device such as a mobile phone, memory management is usually performed in a state invisible to the user. However, this means that a critical process that may prevent the program from starting if the repair fails is performed without the user's knowledge. For this reason, there is a possibility that the user may perform some operation without knowing it, and it cannot be said that there is no possibility that the restoration of the program will fail due to the operation being turned off.

このように、上記特許文献に開示された起動制御方式では、フラッシュメモリの修復時に電源断の可能性を排除できないために起動に十分な信頼性を得ることができない。   As described above, the activation control method disclosed in the above-mentioned patent document cannot obtain sufficient reliability for activation because the possibility of power interruption cannot be excluded when the flash memory is restored.

そこで本発明の目的は、不揮発性メモリからプログラムを読み出して電子機器を起動する場合の信頼性を向上させるプログラム起動制御方法およびそれを用いた電子機器を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide a program activation control method for improving reliability when an electronic device is activated by reading a program from a nonvolatile memory, and an electronic device using the method.

本発明による電子機器は、表示部と操作部とを有する電子機器であって、前記電子機器を起動するための同一の起動用プログラムを格納した複数の不揮発性記憶手段と、第1不揮発性記憶手段から読み出した第1起動用プログラムのデータ誤りを検出する誤り検出手段と、前記第1起動用プログラムのデータ誤りが検出されると、第2不揮発性記憶手段から第2起動用プログラムを読み出し、前記第1起動用プログラムを前記第2起動用プログラムで書き換えるか否かの選択メッセージを前記表示部に表示させ、前記操作部を通して書き換えが選択されると前記書き換えを実行するプログラム実行手段と、を有することを特徴とする。   An electronic device according to the present invention is an electronic device having a display unit and an operation unit, and includes a plurality of nonvolatile storage means storing the same startup program for starting the electronic device, and a first nonvolatile storage An error detection means for detecting a data error in the first activation program read from the means, and when a data error in the first activation program is detected, the second activation program is read out from the second nonvolatile storage means; A program execution means for displaying a selection message as to whether or not to rewrite the first activation program with the second activation program on the display unit, and executing the rewriting when rewriting is selected through the operation unit; It is characterized by having.

本発明によるプログラム起動制御方法は、表示部と、操作部と、同一の起動用プログラムを格納した複数の不揮発性記憶手段と、を有する電子機器におけるプログラム起動制御方法であって、誤り検出手段が第1不揮発性記憶手段から読み出した第1起動用プログラムのデータ誤りを検出し、プログラム実行手段が、前記第1起動用プログラムのデータ誤りが検出されると、第2不揮発性記憶手段から第2起動用プログラムを読み出し、前記プログラム実行手段が、前記第1起動用プログラムを前記第2起動用プログラムで書き換えるか否かの選択メッセージを前記表示部に表示させ、前記プログラム実行手段が、前記操作部を通して書き換えが選択されると前記書き換えを実行する、ことを特徴とする。   A program activation control method according to the present invention is a program activation control method in an electronic apparatus having a display unit, an operation unit, and a plurality of nonvolatile storage units storing the same activation program. When a data error in the first startup program read from the first nonvolatile storage means is detected, and the program execution means detects a data error in the first startup program, the second nonvolatile storage means outputs the second error. The startup program is read, and the program execution means displays a selection message as to whether or not to rewrite the first startup program with the second startup program on the display unit, and the program execution means includes the operation unit When rewriting is selected through the rewriting, the rewriting is executed.

本発明によれば、不揮発性記憶手段からプログラムを読み出して電子機器を起動する場合の信頼性を向上させることができる。   ADVANTAGE OF THE INVENTION According to this invention, the reliability at the time of starting an electronic device by reading a program from a non-volatile memory | storage means can be improved.

本発明の一実施形態による電子機器の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the electronic device by one Embodiment of this invention. NANDフラッシュメモリの一般的なデータ構造を示す模式図である。1 is a schematic diagram showing a general data structure of a NAND flash memory. 本発明の第1実施例によるプログラム起動制御方法を示すフローチャートである。It is a flowchart which shows the program starting control method by 1st Example of this invention. 第1実施例による携帯通信機器の表示部に表示されるメッセージ例を示す携帯通信機器の平面図である。It is a top view of the portable communication apparatus which shows the example of a message displayed on the display part of the portable communication apparatus by 1st Example. 本発明の第2実施例によるプログラム起動制御方法を示すフローチャートである。It is a flowchart which shows the program starting control method by 2nd Example of this invention.

以下、電子機器の一例として携帯通信機器を取り上げ、本発明の実施形態について詳細に説明する。携帯通信機器には、携帯電話機や通信機能を有する携帯情報端末が含まれる。ただし、本発明による電子機器は、これに限定されるものではなく、フラッシュメモリのような不揮発性メモリに格納された起動用プログラムをプログラム実行手段で実行する機器であればよく、携帯電話器やPDA(Personal Digital Assistants)の他に、ポータブル音楽プレーヤ、電子手帳、ラップトップPCあるいは携帯トランシーバなども含まれる。   Hereinafter, a mobile communication device will be taken as an example of an electronic device, and an embodiment of the present invention will be described in detail. The mobile communication device includes a mobile phone and a mobile information terminal having a communication function. However, the electronic device according to the present invention is not limited to this, and may be any device that executes a startup program stored in a non-volatile memory such as a flash memory by means of program execution means. In addition to PDA (Personal Digital Assistants), portable music players, electronic notebooks, laptop PCs, portable transceivers, and the like are also included.

1.機能構成
図1に示すように、本発明の一実施形態による携帯通信機器は、制御部10により制御される送受信部11、表示部12、操作部13、電源部14およびその他図示しない機能部(送受話器として機能するスピーカやマイクロフォンなど)を有するものとする。電源部14はバッテリ(図示せず。)から機器全体に電力を供給するが、制御部10によって電源電圧がモニタされている。送受信部11は、たとえば携帯電話システムの基地局と無線通信するための無線通信回路を含む。表示部12は種々の情報をユーザに可視表示するためのモニタであり、操作部13はキーパッドあるいはタッチパネル等であり、ユーザの手動操作を可能にする。
1. Functional Configuration As shown in FIG. 1, a portable communication device according to an embodiment of the present invention includes a transmission / reception unit 11, a display unit 12, an operation unit 13, a power supply unit 14, and other functional units (not shown) controlled by a control unit 10. A speaker and a microphone functioning as a handset). The power supply unit 14 supplies power to the entire device from a battery (not shown), but the power supply voltage is monitored by the control unit 10. The transmission / reception unit 11 includes a wireless communication circuit for performing wireless communication with a base station of a mobile phone system, for example. The display unit 12 is a monitor for visually displaying various information to the user, and the operation unit 13 is a keypad or a touch panel, and enables manual operation by the user.

制御部10は、プログラム実行手段であるプログラム制御プロセッサ(ここではCPU(中央処理装置))101と、CPU101に共通バスで接続されたNANDフラッシュメモリ(#1)102およびNANDフラッシュメモリ(#2)103と、CPU101に別のバスで接続されたランダムアクセスメモリ(RAM)104と、を含む。NANDフラッシュメモリ102および103には同じ起動用プログラムがそれぞれ格納されているが、ここでは「#1」と記されたNANDフラッシュメモリ102が初期設定されたプログラム読み出しメモリであり、「#2」と記されたNANDフラッシュメモリ103が予備のメモリであるものとする。CPU101は、後述する手順に従って、プログラムをページ単位でNANDフラッシュメモリ102または103からRAM104に転送し、転送されたプログラムを実行することにより携帯通信機器を起動する。   The control unit 10 includes a program control processor (CPU (central processing unit)) 101 as program execution means, and a NAND flash memory (# 1) 102 and a NAND flash memory (# 2) connected to the CPU 101 via a common bus. 103 and a random access memory (RAM) 104 connected to the CPU 101 by another bus. The NAND flash memories 102 and 103 store the same startup program, but here, the NAND flash memory 102 marked “# 1” is an initially set program read memory, and “# 2” It is assumed that the described NAND flash memory 103 is a spare memory. The CPU 101 transfers a program from the NAND flash memory 102 or 103 to the RAM 104 in units of pages in accordance with a procedure to be described later, and starts the portable communication device by executing the transferred program.

図2に示すように、NANDフラッシュメモリ102および103のデータはページ単位で構成され書き込み/読出しが行われる。ここではプログラムの大きさやメモリ配置によりnページ分のプログラムが1ブロックとして記憶され、各ページにはプログラムデータとそのECCデータとが格納されている。たとえばページ0には、プログラムデータP0とそのプログラムP0から計算されたECCデータE0とが格納されている。CPU201はプログラムデータを読み出すときに、そのECCデータも読み出し、プログラムにエラーがないか否かを確認する。プログラムはそれが実現する機能に従ってページ使用量が異なり、使用量が多い機能の場合には複数ブロックにわたることもある。   As shown in FIG. 2, the data in the NAND flash memories 102 and 103 is configured in units of pages and is written / read. Here, the program for n pages is stored as one block depending on the size of the program and the memory arrangement, and each page stores program data and its ECC data. For example, page 0 stores program data P0 and ECC data E0 calculated from the program P0. When the CPU 201 reads out the program data, the CPU 201 also reads out the ECC data to check whether there is an error in the program. The program uses different pages according to the functions that it implements, and in the case of functions that use a large amount, the program may span multiple blocks.

NANDフラッシュメモリ102または103に格納された起動用プログラムが実行されることで本実施形態のシステムが起動する。電源投入により起動用プログラムを実行する場合、まず、CPU101は所定のNANDフラッシュメモリ102のプログラムをECCデータとともに読み出し、ECCデータを用いてデータのエラーの有無を判定する。エラーが検出された場合、CPU101は、プログラム読み出し元を所定のNANDフラッシュメモリ102から予備のNANDフラッシュメモリ103へ変更し、NANDフラッシュメモリ103からプログラムをRAM104へ転送して実行する。   The system according to this embodiment is activated by executing the activation program stored in the NAND flash memory 102 or 103. When the activation program is executed when the power is turned on, the CPU 101 first reads a program in a predetermined NAND flash memory 102 together with ECC data, and determines whether there is a data error using the ECC data. When an error is detected, the CPU 101 changes the program reading source from the predetermined NAND flash memory 102 to the spare NAND flash memory 103, and transfers the program from the NAND flash memory 103 to the RAM 104 for execution.

本実施形態によれば、他方のNANDフラッシュメモリ103からプログラムを起動した後、携帯通信機器にエラーが発生したことをユーザに通知し、ユーザ操作によりエラーが発生した側のNANDフラッシュメモリ102に格納されているプログラムの再書込みが選択可能である。さらに、プログラム再書き込みが選択された場合には、バッテリ電源の状態を考慮して再書き込みを実行するか否かを判定することも可能である。以下、本発明の実施例を詳細に説明する。   According to this embodiment, after starting the program from the other NAND flash memory 103, the user is notified that an error has occurred in the mobile communication device, and stored in the NAND flash memory 102 on the side where the error has occurred due to the user operation. The rewriting of the programmed program can be selected. Furthermore, when program rewriting is selected, it is possible to determine whether or not to perform rewriting in consideration of the state of the battery power supply. Hereinafter, embodiments of the present invention will be described in detail.

2.第1実施例
図3および図4を参照しながら本発明の第1実施例を詳細に説明する。
2. First Embodiment A first embodiment of the present invention will be described in detail with reference to FIGS.

図3において、CPU101は起動動作を開始すると、予め定められたNANDフラッシュメモリ(#1)102に格納された起動用プログラムをそのECCデータと共にRAM104へ転送する(ステップS201)。CPU101は、当該ECCデータを用いてプログラムデータのエラーチェックを開始する(ステップS202)。読み出されたプログラムにエラーがないと判定された場合(ステップS203;N)、制御は図3のフローを出て、RAM104に転送されたプログラムで携帯通信機器を起動する。   In FIG. 3, when starting the startup operation, the CPU 101 transfers the startup program stored in the predetermined NAND flash memory (# 1) 102 to the RAM 104 together with the ECC data (step S201). The CPU 101 starts an error check of program data using the ECC data (step S202). When it is determined that there is no error in the read program (step S203; N), the control exits the flow of FIG. 3 and activates the mobile communication device with the program transferred to the RAM 104.

読み出されたプログラムにエラーがあると判定された場合(ステップS203;Y)、CPU101は別のNANDフラッシュメモリ(#2)103からプログラムを読み出してRAM104へ転送する(ステップS204)。この時、ECCデータも同時に読み出してエラー検出・訂正を行ってもよい。ただし、通常使用されるNANDフラッシュメモリ(#1)102に比べて、NANDフラッシュメモリ(#2)103は書込/消去回数が少ないのでエラーが生じにくく、十分な信頼性を保持しうる。NANDフラッシュメモリ(#2)103からRAM104にプログラムが転送されると、CPU101は、携帯通信機器の表示部12にメンテナンスを行うか否かをユーザに問いかけるメッセージを表示する(ステップS205)。具体的には、図4(A)に示すようなメッセージを表示部12に表示し、ユーザによる操作部13の操作入力を待つ(ステップS206)。この表示によって、ユーザにECCエラーが検出されたことを知らせると共に、ユーザにメモリ#1の書き換えの可否を選択させることができる。   If it is determined that there is an error in the read program (step S203; Y), the CPU 101 reads the program from another NAND flash memory (# 2) 103 and transfers it to the RAM 104 (step S204). At this time, ECC data may also be read simultaneously to perform error detection / correction. However, the NAND flash memory (# 2) 103 has a smaller number of times of writing / erasing than the normally used NAND flash memory (# 1) 102, so that an error hardly occurs and sufficient reliability can be maintained. When the program is transferred from the NAND flash memory (# 2) 103 to the RAM 104, the CPU 101 displays a message asking the user whether or not to perform maintenance on the display unit 12 of the mobile communication device (step S205). Specifically, a message as shown in FIG. 4A is displayed on the display unit 12, and an operation input of the operation unit 13 by the user is waited (step S206). This display informs the user that an ECC error has been detected and allows the user to select whether or not the memory # 1 can be rewritten.

ユーザ操作入力があり、それがメンテナンス実行(図4(A)の例では「START」)を選択するものであれば(ステップS206;Y、ステップS207;Y)、ユーザがNANDフラッシュメモリ(#1)のメンテナンスを希望するものと判断し、表示部12に図4(B)に示すような「メンテナンス中」を意味する表示を行いユーザに電源供給を停止しないように注意を喚起する(ステップS208)。この表示を出した後、CPU101はメンテナンスの動作としてNANDフラッシュメモリ(#1)102のデータを消去し(ステップ209)、正常に動作したNANDフラッシュメモリ(#2)103のデータをNANDフラッシュメモリ(#1)102に書き込む(ステップS210)。NANDフラッシュメモリ(#2)103からNANDフラッシュメモリ(#1)102へのデータ書き込みが終了すると(ステップS211;Y)、CPU101はRAM104に転送されたプログラムで携帯通信機器を起動する。   If there is a user operation input and it is to select maintenance execution (“START” in the example of FIG. 4A) (step S206; Y, step S207; Y), the user uses the NAND flash memory (# 1). ), The display unit 12 displays a message indicating “in maintenance” as shown in FIG. 4B to alert the user not to stop the power supply (step S208). ). After the display, the CPU 101 erases the data in the NAND flash memory (# 1) 102 as a maintenance operation (step 209), and the data in the normally operated NAND flash memory (# 2) 103 is stored in the NAND flash memory ( # 1) Write to 102 (step S210). When the data writing from the NAND flash memory (# 2) 103 to the NAND flash memory (# 1) 102 is completed (step S211; Y), the CPU 101 activates the portable communication device with the program transferred to the RAM 104.

なお、ユーザ操作入力があり、それがメンテナンス不実行(図4(A)の例では「END」)を選択するものであれば(ステップS206;Y、ステップS207;N)、ユーザがNANDフラッシュメモリのメンテナンスを希望しないものと判断して、CPU101はNANDフラッシュメモリ(#1)102のプログラムを書き換えることなしに、NANDフラッシュメモリ(#2)103からRAM204に転送されたプログラムで携帯通信機器を起動する。   Note that if there is a user operation input and it selects maintenance non-execution (“END” in the example of FIG. 4A) (step S206; Y, step S207; N), the user will read the NAND flash memory. The CPU 101 activates the portable communication device with the program transferred from the NAND flash memory (# 2) 103 to the RAM 204 without rewriting the program in the NAND flash memory (# 1) 102. To do.

以上説明したように、本実施例においては、以下に記載するような効果がある。   As described above, the present embodiment has the following effects.

第1の効果は、プログラムが格納されたNANDフラッシュメモリ(#1)102がディスターブ現象などでエラーが発生する状態となっても、ECCチェックなどでエラーを検出することで別のNANDフラッシュメモリ(#2)103のプログラムを用いて携帯通信機器を起動することができる。   The first effect is that even if an error occurs in the NAND flash memory (# 1) 102 in which the program is stored due to a disturb phenomenon or the like, another NAND flash memory ( # 2) The mobile communication device can be activated using the program 103.

第2の効果は、NANDフラッシュメモリ(#2)103のプログラムで起動した後、NANDフラッシュメモリ(#1)102を消去してからNANDフラッシュメモリ(#2)103のデータを書き込むことで、次回からNANDフラッシュメモリ(#1)102で起動可能となる。   The second effect is that the data in the NAND flash memory (# 2) 103 is written next time after the NAND flash memory (# 1) 102 is erased after being started by the program of the NAND flash memory (# 2) 103. To the NAND flash memory (# 1) 102.

第3の効果は、リカバーのためNANDフラッシュメモリ(#1)102の消去/書込みを開始する前に、表示部12にメンテナンスが必要な旨を表示することにより、NANDフラッシュメモリの専門知識がないユーザにも注意を喚起することができ、ユーザの操作に起因するデータ修復失敗を回避できる。   The third effect is that there is no expertise of the NAND flash memory by displaying that the maintenance is necessary on the display unit 12 before starting the erasing / writing of the NAND flash memory (# 1) 102 for recovery. The user can be alerted, and data restoration failure due to user operation can be avoided.

第4の効果は、メンテナンスを行うか否かをユーザに選択させ、さらに、メンテナンス動作が行われている旨を表示することにより、携帯通信機器の状況をユーザに強く印象付けることができる。それによって、NANDフラッシュメモリの消去/書き込み中に電源供給を停止する操作を防止でき、NANDフラッシュメモリに格納されたプログラムデータが破壊されプログラムが起動しなくなる事態を確実に回避できる。   As a fourth effect, the user can select whether or not to perform maintenance, and further display the fact that the maintenance operation is being performed, thereby making it possible to strongly impress the user on the status of the mobile communication device. Accordingly, it is possible to prevent an operation of stopping power supply during erasing / writing of the NAND flash memory, and it is possible to reliably avoid a situation in which the program data stored in the NAND flash memory is destroyed and the program is not started.

3.第2実施例
図5を参照しながら本発明の第2実施例を詳細に説明する。ただし、図3と同じステップには同じ参照符号を付して説明は簡略化する。
3. Second Embodiment A second embodiment of the present invention will be described in detail with reference to FIG. However, the same steps as those in FIG.

図5において、CPU101は起動動作を開始すると、予め定められたNANDフラッシュメモリ(#1)102に格納されたプログラムをそのECCデータと共にRAM104へ転送する(ステップS201)。CPU101は、当該ECCデータを用いてプログラムデータのエラーチェックを開始する(ステップS202)。読み出されたプログラムにエラーがないと判定された場合(ステップS203;N)、制御は図3のフローを出て、RAM104に転送されたプログラムで携帯通信機器を起動する。読み出されたプログラムにエラーがあると判定された場合(ステップS203;Y)、CPU101は別のNANDフラッシュメモリ(#2)103からプログラムデータを読み出してRAM104へ転送する(ステップS204)。   In FIG. 5, when the CPU 101 starts the activation operation, it transfers the program stored in the predetermined NAND flash memory (# 1) 102 to the RAM 104 together with its ECC data (step S201). The CPU 101 starts an error check of program data using the ECC data (step S202). When it is determined that there is no error in the read program (step S203; N), the control exits the flow of FIG. 3 and activates the mobile communication device with the program transferred to the RAM 104. If it is determined that there is an error in the read program (step S203; Y), the CPU 101 reads the program data from another NAND flash memory (# 2) 103 and transfers it to the RAM 104 (step S204).

NANDフラッシュメモリ(#2)103からRAM104にプログラムが転送されたら、CPU101は、携帯通信機器の表示部12にメンテナンスを行うか否かをユーザに問いかけるメッセージを表示し、ユーザによるメンテナンス実行の可否の選択入力を待つ(ステップS401)。メンテナンス実行(図4(A)の例では「START」)が選択されると(ステップS401;Y)、CPU101は電源部14の電源電圧を所定閾値Vthと比較してバッテリ残量を推定する(ステップS402)。バッテリ残量がプログラム書き換えに十分であれば(ステップS402;Y)、上述したステップS208−S211を実行することでNANDフラッシュメモリ(#1)102のプログラムを書き換える。   When the program is transferred from the NAND flash memory (# 2) 103 to the RAM 104, the CPU 101 displays a message asking the user whether or not maintenance is to be performed on the display unit 12 of the portable communication device. Wait for selection input (step S401). When maintenance execution (“START” in the example of FIG. 4A) is selected (step S401; Y), the CPU 101 compares the power supply voltage of the power supply unit 14 with a predetermined threshold Vth to estimate the remaining battery power ( Step S402). If the remaining battery capacity is sufficient for rewriting the program (step S402; Y), the program in the NAND flash memory (# 1) 102 is rewritten by executing steps S208 to S211 described above.

バッテリ残量がプログラム書き換えに不十分であれば(ステップS402;N)、CPU101は表示部12に充電の必要性を表示してユーザに注意を喚起し、NANDフラッシュメモリ(#1)102のプログラムを書き換えることなしに、NANDフラッシュメモリ(#2)103からRAM204に転送されたプログラムで携帯通信機器を起動する。   If the remaining battery level is insufficient for rewriting the program (step S402; N), the CPU 101 displays the necessity for charging on the display unit 12 to alert the user and program the NAND flash memory (# 1) 102. Without rewriting, the portable communication device is activated by the program transferred from the NAND flash memory (# 2) 103 to the RAM 204.

上述した第2実施例においても、上述した第1実施例と同様の効果を得ることができ、さらに、NANDフラッシュメモリの消去/書き込み中にバッテリ切れで電源供給が停止し、NANDフラッシュメモリに格納されたプログラムデータが破壊されプログラムが起動しなくなる事態を確実に回避できる。   In the second embodiment described above, the same effects as in the first embodiment described above can be obtained, and furthermore, the power supply is stopped due to the battery running out during erasing / writing of the NAND flash memory, and stored in the NAND flash memory. It is possible to reliably avoid a situation in which the programmed program data is destroyed and the program does not start.

4.その他の実施例
本発明は上記実施例に限定されるものではなく、以下のような変形例を含むものと解すべきである。たとえば、図1ではNANDフラッシュメモリ102とNANDフラッシュメモリ103とが分けて記載されているが、これらは1つのNANDフラッシュメモリの別領域(別ブロック)で構成することも可能である。
4). Other Embodiments The present invention is not limited to the above-described embodiments, but should be understood as including the following modifications. For example, in FIG. 1, the NAND flash memory 102 and the NAND flash memory 103 are separately described, but these may be configured by different areas (different blocks) of one NAND flash memory.

またNANDフラッシュメモリ103はプログラムを格納しておく用途であるから、不揮発性メモリであればよく、CPU101とのインタフェースが特定のNANDフラッシュ102と異なる方式でもあってもよい。また、NORフラッシュメモリやPRAM(Phase Change RAM)など種類の異なるメモリであっても同様の効果となる。NANDフラッシュメモリ103は脱着式のメモリカードであってもよい。   Further, since the NAND flash memory 103 is used for storing a program, it may be a non-volatile memory, and the interface with the CPU 101 may be different from that of the specific NAND flash 102. The same effect can be obtained even with different types of memories such as NOR flash memory and PRAM (Phase Change RAM). The NAND flash memory 103 may be a removable memory card.

さらに、上記第1および第2実施例ではCPU201がプログラムデータのエラーチェックを行うが、NANDフラッシュメモリにはECCエラーチェック機能を内蔵しているものもあり、それらを使ってCPU101自身がECC計算を行わず、エラー確認だけを行っても同様の効果を得ることができる。   Further, in the first and second embodiments, the CPU 201 performs an error check on the program data. However, some NAND flash memories have a built-in ECC error check function, and the CPU 101 itself performs the ECC calculation using them. The same effect can be obtained even if only error confirmation is performed without performing this.

なお、図4に示す表示部12のメッセージは一例であり、同様の内容を指示するものであれば任意の形態であってもよい。また、操作部13のボタンの配置などの割付も任意である。   Note that the message on the display unit 12 illustrated in FIG. 4 is an example, and any message may be used as long as the same content is instructed. Also, the layout of buttons on the operation unit 13 is arbitrary.

本発明は、携帯電話器、PDA、ポータブル音楽プレーヤ、電子手帳、ラップトップPC、トランシーバなどの携帯機器に適用可能である。   The present invention is applicable to portable devices such as a cellular phone, a PDA, a portable music player, an electronic notebook, a laptop PC, and a transceiver.

10 制御部
11 送受信部
12 表示部
13 操作部
14 電源部
101 CPU
102 NANDフラッシュメモリ
103 NANDフラッシュメモリ
104 RAM
DESCRIPTION OF SYMBOLS 10 Control part 11 Transmission / reception part 12 Display part 13 Operation part 14 Power supply part 101 CPU
102 NAND flash memory 103 NAND flash memory 104 RAM

Claims (8)

表示部と操作部とを有する電子機器であって、
前記電子機器を起動するための同一の起動用プログラムを格納した複数の不揮発性記憶手段と、
第1不揮発性記憶手段から読み出した第1起動用プログラムのデータ誤りを検出する誤り検出手段と、
前記第1起動用プログラムのデータ誤りが検出されると、第2不揮発性記憶手段から第2起動用プログラムを読み出し、前記第1起動用プログラムを前記第2起動用プログラムで書き換えるか否かの選択メッセージを前記表示部に表示させ、前記操作部を通して書き換えが選択されると前記書き換えを実行するプログラム実行手段と、
を有することを特徴とする電子機器。
An electronic device having a display unit and an operation unit,
A plurality of nonvolatile storage means storing the same activation program for activating the electronic device;
Error detection means for detecting a data error in the first activation program read from the first nonvolatile storage means;
When a data error in the first activation program is detected, the second activation program is read from the second nonvolatile storage means, and whether or not the first activation program is rewritten with the second activation program is selected. A program execution means for displaying a message on the display unit and executing the rewrite when rewrite is selected through the operation unit;
An electronic device comprising:
前記プログラム実行手段は、前記書き換えが選択され実行されると、書き換え中であることを示すメッセージを前記表示部に表示させることを特徴とする請求項1に記載の電子機器。   The electronic device according to claim 1, wherein when the rewriting is selected and executed, the program execution unit displays a message indicating that rewriting is being performed on the display unit. 前記書き換え中であることを示すメッセージには電源停止を禁止する文言が含まれることを特徴とする請求項2に記載の電子機器。   The electronic device according to claim 2, wherein the message indicating that rewriting is in progress includes a word prohibiting power supply from being stopped. 前記電子機器の電源となるバッテリの残量を推定する電源監視手段をさらに有し、
前記プログラム実行手段は、前記バッテリの残量が所定閾値より少ないときには前記書き換えを実行せずに、充電を促すメッセージを前記表示部に表示させることを特徴とする請求項1−3のいずれかに記載の電子機器。
Further comprising power monitoring means for estimating a remaining amount of a battery serving as a power source for the electronic device,
The said program execution means displays the message which urges | charges on the said display part, without performing the said rewriting, when the remaining amount of the said battery is less than a predetermined threshold value. The electronic device described.
表示部と、操作部と、同一の起動用プログラムを格納した複数の記憶手段と、を有する電子機器におけるプログラム起動制御方法であって、
誤り検出手段が第1不揮発性記憶手段から読み出した第1起動用プログラムのデータ誤りを検出し、
プログラム実行手段が、前記第1起動用プログラムのデータ誤りが検出されると、第2不揮発性記憶手段から第2起動用プログラムを読み出し、
前記プログラム実行手段が、前記第1起動用プログラムを前記第2起動用プログラムで書き換えるか否かの選択メッセージを前記表示部に表示させ、
前記プログラム実行手段が、前記操作部を通して書き換えが選択されると前記書き換えを実行する、
ことを特徴とするプログラム起動制御方法。
A program activation control method in an electronic device having a display unit, an operation unit, and a plurality of storage units storing the same activation program,
The error detection means detects a data error in the first activation program read from the first nonvolatile storage means;
When the program execution means detects a data error in the first activation program, the program execution means reads the second activation program from the second nonvolatile storage means,
The program execution means causes the display unit to display a selection message as to whether or not to rewrite the first activation program with the second activation program;
The program execution means executes the rewrite when rewrite is selected through the operation unit;
And a program start control method.
前記プログラム実行手段が、前記書き換えが選択され実行されると、書き換え中であることを示すメッセージを前記表示部に表示させる、
ことを特徴とする請求項5に記載のプログラム起動制御方法。
When the rewriting is selected and executed, the program execution means displays a message indicating that rewriting is being performed on the display unit.
6. The program start control method according to claim 5, wherein
前記書き換え中であることを示すメッセージには電源停止を禁止する文言が含まれることを特徴とする請求項6に記載のプログラム起動制御方法。   The program start control method according to claim 6, wherein the message indicating that rewriting is in progress includes a word prohibiting the power supply from being stopped. 電源監視手段が前記電子機器の電源となるバッテリの残量を推定し、
前記プログラム実行手段が、前記バッテリの残量が所定閾値より少ないときには前記書き換えを実行せずに、充電を促すメッセージを前記表示部に表示させる、
ことを特徴とする請求項5−7のいずれかに記載のプログラム起動制御方法。
The power monitoring means estimates the remaining amount of the battery serving as a power source for the electronic device,
The program execution means displays a message prompting charging on the display unit without executing the rewriting when the remaining amount of the battery is less than a predetermined threshold.
The program activation control method according to claim 5, wherein the program activation control method is defined.
JP2010160222A 2010-07-15 2010-07-15 Electronic apparatus and program start control method thereof Withdrawn JP2012022541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010160222A JP2012022541A (en) 2010-07-15 2010-07-15 Electronic apparatus and program start control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010160222A JP2012022541A (en) 2010-07-15 2010-07-15 Electronic apparatus and program start control method thereof

Publications (1)

Publication Number Publication Date
JP2012022541A true JP2012022541A (en) 2012-02-02

Family

ID=45776779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010160222A Withdrawn JP2012022541A (en) 2010-07-15 2010-07-15 Electronic apparatus and program start control method thereof

Country Status (1)

Country Link
JP (1) JP2012022541A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015046088A (en) * 2013-08-29 2015-03-12 京セラドキュメントソリューションズ株式会社 Semiconductor device
JP2017045311A (en) * 2015-08-27 2017-03-02 株式会社東芝 Memory system
JP2017084208A (en) * 2015-10-30 2017-05-18 Necプラットフォームズ株式会社 Information processor, method for starting information processor, and information processor starting program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015046088A (en) * 2013-08-29 2015-03-12 京セラドキュメントソリューションズ株式会社 Semiconductor device
JP2017045311A (en) * 2015-08-27 2017-03-02 株式会社東芝 Memory system
JP2017084208A (en) * 2015-10-30 2017-05-18 Necプラットフォームズ株式会社 Information processor, method for starting information processor, and information processor starting program

Similar Documents

Publication Publication Date Title
CN102385535B (en) Handling errors during device bootup from a non-volatile memory
TWI380302B (en)
TWI416528B (en) Method for operating non-volatile memory and data storage system using the same
US8164967B2 (en) Systems and methods for refreshing non-volatile memory
JP4901987B1 (en) Storage device, electronic device, and error data correction method
JP4261462B2 (en) Nonvolatile memory system
US8402204B2 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same
JP2010157216A (en) Recovery for non-volatile memory after power outage
JP2008192267A (en) Method of preventing bit error, and information processing device
TW200933638A (en) System, method, and computer program product for increasing a lifetime of a plurality of blocks of memory
JP2008198310A (en) Method for repairing bit error and information processing system
JP5981906B2 (en) Image forming apparatus
US20130132651A1 (en) Electronic system and memory managing method thereof
US7418542B2 (en) Rewritable, nonvolatile memory, electronic device, method of rewriting rewritable, nonvolatile memory, and storage medium having stored thereon rewrite program
CN105320621A (en) Memory system and information processing device
JP2010067098A (en) Information processor, information processing method, and information processing program
JP2012022541A (en) Electronic apparatus and program start control method thereof
JP2006085534A (en) Information processor, software update method of information processor, and program
JP2008225672A (en) Semiconductor memory device
US9443604B2 (en) Electronic device and data-management method thereof
CN111552650B (en) Data storage method and device, storage medium and data storage equipment
JP2010231699A (en) Data processing device, data processing method and data processing program
JP2010061257A (en) Semiconductor memory device
CN111273864B (en) Method and system for reducing NAND FLASH erasing times
KR20110014925A (en) Test method and test device of memory device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20131001