JP2004185290A - Reading/writing method to flash memory - Google Patents

Reading/writing method to flash memory Download PDF

Info

Publication number
JP2004185290A
JP2004185290A JP2002351269A JP2002351269A JP2004185290A JP 2004185290 A JP2004185290 A JP 2004185290A JP 2002351269 A JP2002351269 A JP 2002351269A JP 2002351269 A JP2002351269 A JP 2002351269A JP 2004185290 A JP2004185290 A JP 2004185290A
Authority
JP
Japan
Prior art keywords
flash memory
access
read
control program
writing
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
JP2002351269A
Other languages
Japanese (ja)
Inventor
Takahiro Kawabata
孝博 川端
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP2002351269A priority Critical patent/JP2004185290A/en
Publication of JP2004185290A publication Critical patent/JP2004185290A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Read Only Memory (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically determine the kind and capacity of a flash memory, to enable writing and reading, and to reduce a load on an operator and work time. <P>SOLUTION: A control program 22 accesses to the flash memory 27 by using one of code sets prepared, and when it does not receive a response from the flash memory 27 in a fixed period of time, it accesses again to the flash memory 27 by using the next code set (Sequence 1 and 2). When a response true "1" is received, the flash memory determines that the code set concerned is the one of usable kind (Sequence 3). The control program 22 accesses to a final address assumed as the capacity of the flash memory and an address exceeding the final address by using the code set thus determined, and the storage capacity of the flash memory is established according to success or failure in the access (Sequence 4 to 7). <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、フラッシュメモリに対するリード・ライト方法係り、特に、ブルートゥース(Bluetooth)モジュール等に使用されているフラッシュメモリ対する書き込み、読み出しに用いて好適なフラッシュメモリ対するリード・ライト方法に関する。
【0002】
【従来の技術】
ブルートゥースモジュールに使用されているフラッシュメモリは、モジュールの全体的な制御を行うファームウェアを格納しており、このファームウェアは、アップデート等のために書き込みが行われ、あるいは、読み出す必要が生じる場合がある。一方、フラッシュメモリには、複数の種類があり、種類毎に制御可能な制御プログラムが異なっており、また、その記憶容量も異なるものが種々存在する。
【0003】
このため、従来技術によるフラッシュメモリ対するリード・ライト方法は、フラッシュメモリに対して書き込み、読み出しを行う場合、使用されているフラッシュメモリの種類別に、対応する制御プログラムを作成し、書き込み、読み出しを行う前に、使用する制御プログラムを確定させておく必要のあるものであった。また、この従来技術は、フラッシュメモリが異なる種類、異なる容量のものに変更された場合、再度、制御プログラムを設定し直していた。
【0004】
図4は従来技術によるフラッシュメモリに対する書き込み方法の概要を説明する図である。いま、フラッシュメモリの種類として、メモリA、メモリBがあるものとする。そして、メモリAに対してファームウェア等の情報を書き込もうとする場合、このメモリAに対応した制御プログラムAを用意し、また、メモリBに対してファームウェア等の情報を書き込もうとする場合、このメモリBに対応した制御プログラムBを用意する。各制御プログラムA、Bのそれぞれは、ファームウェア等の情報の書き込みが指示されると、その情報をメモリA、メモリBに書き込む。
【0005】
なお、フラッシュメモリの種類と、対応する制御プログラムとは、必ずしも1対1に対応するものではなく、幾つかの種類のフラッシュメモリが同一の制御プログラムにより制御可能な場合がある。
【0006】
また、この種のメモリを用いたメモリカードに関する従来技術として、特許文献1、特許文献2等に記載された技術が知られている。
【0007】
【特許文献1】
特開2000−100196号公報
【0008】
【特許文献2】
特開2000−82122号公報
【0009】
【発明が解決しようとする課題】
前述したように、従来技術によるフラッシュメモリに対する書き込み、読み出しの方法は、フラッシュメモリの種類毎に対応する制御プログラムを作成し、書き込み、読み出しを行う前に、使用する制御プログラムを確定させておく必要があるため、作業者の作業負担が大きく、作業時間も多くかかるという問題点を有している。また、前述の従来技術は、フラッシュメモリ毎の記憶容量も予め確認しておく必要があり、このためにも、多くの手間がかかるという問題点を有している。
【0010】
本発明の目的は、前述した従来技術の問題点を解決し、書き込み、読み出しを行うフラッシュメモリの種類、記憶容量を自動的に判別して、フラッシュメモリに対する書き込み、読み出しを行うことを可能にし、これにより、作業者の作業負担、作業時間の軽減を図ることができるようにしたフラッシュメモリに対するリード・ライト方法を提供することにある。
【0011】
【課題を解決するための手段】
本発明によれば前記目的は、フラッシュメモリに対するリード・ライト方法において、フラッシュメモリに対するリード・ライトの制御を行う制御手段が、前記フラッシュメモリが、その種類によってアクセスコードが異なることを利用し、想定されるそれぞれのアクセスコードを用いたフラッシュメモリへのアクセスを試行し、アクセスが成功するコードを調べることにより、フラッシュメモリの種類を確定し、その後にリードまたはライトの処理を実行することにより達成される。
【0012】
また、前記目的は、前記確定したアクセスコードを使用して、想定される最終アドレスや、最終アドレスを超えるアドレスについてアクセスを行い、その成否により、フラッシュメモリの記憶容量を確定することにより達成される。
【0013】
前述したような手段により構成される本発明は、書き込み、読み出しを行おうとするフラッシュメモリの種類、記憶容量を自動的に判別して、フラッシュメモリに対する書き込み、読み出しを行うことずできるので、作業者の作業負担、作業時間の軽減を図ることができる。
【0014】
【発明の実施の形態】
以下、本発明によるフラッシュメモリに対するリード・ライト方法の実施形態を図面により詳細に説明する。
【0015】
図1は本発明の一実施形態によりフラッシュメモリに対する書き込みを行う方法の概要を説明する図、図2は本発明の一実施形態によるフラッシュメモリに対するリード・ライト方法を実施する機器の構成を示すブロック図、図3は書き込みを行う場合の動作シーケンスを示す図である。図2、図3において、21はPC、22は制御プログラム、23はフラッシュメモリのリード・ライトプログラム、24はブルートゥースモジュール、25はBOOTプログラム、26はRAM、27はフラッシュメモリ、28はシリアルインタフェースである。
【0016】
本発明は、フラッシュメモリの種類毎にアクセスコマンドが異なり、また、フラッシュメモリ毎に記憶容量が異なる点を利用して、自動的にフラッシュメモリの種類とその記憶容量とを判別し、フラッシュメモリに対するリード・ライトの効率を改善することを可能にしたものである。すなわち、本発明で使用する制御プログラムは、想定されるフラッシュメモリのそれぞれのアクセスコードセットにより、順にフラッシュメモリへのアクセスを試行し、アクセスが成功するコードを調べることにより、フラッシュメモリの種類を判別している。また、そのアクセスコードセットを用いて、想定される最終アドレスや、最終アドレスを超えるアドレスについてのアクセスを行い、その成否によって、フラッシュメモリの記憶容量を確定している。
【0017】
前述により、本発明の一実施形態は、フラッシュメモリにデータ等の書き込みを行う場合、図1に示すように、1種類の制御プログラムにより、従来技術で説明したようにメモリA、Bの2種類のフラッシュメモリに対しても、書き込みを行うことが可能である。図1に示していないが、フラッシュメモリの読み出しの際も同様である。また、図には2種のメモリA、Bだけを示しているが、本発明は、さらに多種のフラッシュメモリに対応することができる。
【0018】
本発明の一実施形態によるフラッシュメモリに対するリード・ライト方法を実施する機器の構成は、図2に示すように、例えば、制御手段としての制御プログラム22及びフラッシュメモリのリード・ライトプログラム23を有するPC21と、BOOTプログラム25、RAM26及びファームウェア等の情報を格納するフラッシュメモリ27を有するブルートゥースモジュール24とをシリアルインタフェース28で接続した構成である。この構成で、ブルートゥースモジュール24内に設けられているフラッシュメモリ27に対するリード・ライトを行うことができる。
【0019】
図2に示す例は、PC21とブルートゥースモジュール24とが別体になって、シリアルインタフェース28で接続されているとして説明したが、本発明は、ブルートゥースモジュール24がPC21の内部に備えられている場合にも適用することができる。
【0020】
次に、図2に示す例において、フラッシュメモリ27にファームウェア等の情報を書き込む場合の動作について説明する。
【0021】
(1)ブルートゥースモジュール24を、ブルートゥースモジュールの本来の動作のためのモードではなく、フラッシュメモリに対する書き込み、または、読み出しのためのモードであるBOOTモードで起動すると、まず、BOOTプログラム25がRAM26内にロード(展開)される。
【0022】
(2)RAM26にロードされたBOOTプログラム25は、PC21側のフラッシュメモリのリード・ライトプログラム23から制御プログラム22を取り込んで、この制御プログラム22をRAM26内にロードする。
【0023】
(3)制御プログラム22のRAM26内へのロード完了後、制御プログラム22は、PC21側のフラッシュメモリのリード・ライトプログラム23からフラッシュメモリ27に書き込むべきファームウェア等の情報を受け取って、その情報をフラッシュメモリ27に書き込む。
【0024】
次に、前述したようなフラッシュメモリ27への書き込みの際に、フラッシュメモリの種類、記憶容量を取得する処理について、図3に示すシーケンス図を参照して説明する。ここでの処理は、制御プログラムが複数種のフラッシュメモリに対応するコードセットと、フラッシュメモリの記憶容量によって決まる複数種の最終アドレス値とを持って、これらを使用してフラッシュメモリの種類とその記憶容量とを決定して、書き込みを行う処理である。
【0025】
(1)RAM26内にロードされた制御プログラム22は、用意してあるコードセットのうちの1つ、ここでは書き込み用コードセットAを用いてフラッシュメモリ27にアクセスし、一定時間、例えば、100m秒から1秒程度の間フラッシュメモリ27からの応答を待つ(シーケンス▲1▼)。
【0026】
(2)一定時間の間にフラッシュメモリ27からの応答が得られなかった場合、制御プログラム22は、次のコードセット、ここでは書き込み用コードセットBを用いて再度フラッシュメモリ27にアクセスする(シーケンス▲2▼)。
【0027】
(3)一定時間の間にフラッシュメモリ27から応答true“1”が得られると、制御プログラム22は、フラッシュメモリ27の種類が書き込み用コードセットBを使用可能な種類であると判断して、そのコードセットを使用することに決定する。なお、シーケンス▲1▼、▲2▼の処理は、応答true“1”が得られるまで書き込み用コードセットを変更して繰り返し実行される(シーケンス▲3▼)。
【0028】
(4)制御プログラム22は、前述で決定したコードセットを用い、フラッシュメモリの中で最小のメモリ容量のものの最終アドレスB’についてアクセスする(シーケンス▲4▼)。
【0029】
(5)シーケンス▲4▼のアクセスに対してアクセス可の応答としてtrue“1”が得られた場合、制御プログラム22は、フラッシュメモリの中の次に大きいメモリ容量のものの最終アドレスB’+nについてアクセスし、応答が得られなくなるまで、さらに大きいメモリ容量のものの最終アドレスについてアクセスする(シーケンス▲5▼、▲6▼)。
【0030】
(6)シーケンス▲6▼のアクセスに対して、フラッシュメモリ27からアクセス不可の応答としてfasle“0”が得られた場合、制御プログラム22は、フラッシュメモリ27が、応答が得られた前回のアクセスでの最終アドレスを持つ容量であると確定する(シーケンス▲7▼)。
【0031】
(7)ここまでの処理で、フラッシュメモリ27の種類と容量とを確定できたことになるので、制御プログラム22は、その後、フラッシュメモリ27に対して必要なデータの書き込みを、フラッシュメモリのリード・ライトプログラム23に実行させる(シーケンス▲8▼)。
【0032】
前述した本発明の実施形態は、フラッシュメモリに対するデータの書き込みを例として、その動作を説明したが、フラッシュメモリからのデータの読み出しについても、同様に適用することができる。すなわち、データ読み出しの場合、図3により説明した、書き込み用コードセットに代えて、読み出し用コードセットを使用することによりフラッシュメモリの種類を確定することができる。
【0033】
また、前述した本発明の実施形態は、フラッシュメモリの記憶容量を判定するために、フラッシュメモリの中で最小のメモリ容量のものから大きい方向に、順にそれらの最終アドレスについてアクセスして、アクセス不可の応答としてfasle“0”が得られた場合に、フラッシュメモリ27が、応答が得られた前回のアクセスでの最終アドレスを持つ容量であると確定するとして説明したが、本発明は、フラッシュメモリの中で最大のメモリ容量のものから小さい方向に、順にそれらの最終アドレスについてアクセスし、応答が得られたアクセスでの最終アドレスを持つ容量であると確定するようにすることもできる。
【0034】
前述した本発明の実施形態によれば、フラッシュメモリが、その種類によってアクセスコードが異なる点を利用し、想定されるそれぞれのアクセスコードセットを用いたフラッシュメモリへのアクセスを試行して、アクセスが成功するコードを調べることにより、フラッシュメモリの種類を自動的に確定することができる。また、フラッシュメモリは、同一種でも異なる記憶容量を持つものがあるが、本発明によれば、確定したアクセスコードを使用して、想定される最終アドレスや、最終アドレスを超えるアドレスについてアクセスを行い、その成否により、フラッシュメモリの記憶容量を自動的に確定することができる。本発明の実施形態は、これにより、フラッシュメモリに対する書き込み、読み出し時の作業効率を向上させることができる。
【0035】
【発明の効果】
以上説明したように本発明によれば、書き込み、読み出しを行うフラッシュメモリの種類、記憶容量を自動的に判別して、フラッシュメモリに対する書き込み、読み出しを行うことができ、これにより、作業者の作業負担、作業時間の軽減を図ることができる。
【図面の簡単な説明】
【図1】本発明の一実施形態によりフラッシュメモリに対する書き込みを行う方法の概要を説明する図である。
【図2】本発明の一実施形態によるフラッシュメモリに対するリード・ライト方法を実施する機器の構成を示すブロック図である。
【図3】
書き込みを行う場合の動作シーケンスを示す図である。
【図4】
従来技術によるフラッシュメモリに対する書き込み方法の概要を説明する図で
ある。
【符号の説明】
21 PC
22 制御プログラム
23 フラッシュメモリのリード・ライトプログラム
24 ブルートゥースモジュール
25 BOOTプログラム
26 RAM
27 フラッシュメモリ
28 シリアルインタフェース
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a read / write method for a flash memory, and more particularly, to a read / write method for a flash memory suitable for writing and reading on a flash memory used in a Bluetooth module or the like.
[0002]
[Prior art]
The flash memory used in the Bluetooth module stores firmware for performing overall control of the module, and this firmware may be written or read for an update or the like in some cases. On the other hand, there are a plurality of types of flash memories, control programs that can be controlled differ for each type, and various types have different storage capacities.
[0003]
For this reason, according to the conventional read / write method for a flash memory, when writing and reading to and from a flash memory, a corresponding control program is created for each type of flash memory used, and writing and reading are performed. Previously, it was necessary to determine the control program to be used. Further, in this prior art, when the flash memory is changed to one of a different type and a different capacity, the control program is set again.
[0004]
FIG. 4 is a diagram illustrating an outline of a writing method for a flash memory according to the related art. Now, it is assumed that there are memories A and B as types of flash memories. When information such as firmware is to be written into the memory A, a control program A corresponding to the memory A is prepared. When information such as firmware is to be written into the memory B, Is prepared. When each of the control programs A and B is instructed to write information such as firmware, the information is written to the memories A and B.
[0005]
The types of flash memories and the corresponding control programs do not always correspond one-to-one, and there are cases where several types of flash memories can be controlled by the same control program.
[0006]
Further, as a conventional technique relating to a memory card using this kind of memory, techniques described in Patent Documents 1 and 2 are known.
[0007]
[Patent Document 1]
JP 2000-100196 A
[Patent Document 2]
JP 2000-82122 A
[Problems to be solved by the invention]
As described above, in the method of writing and reading data to and from the flash memory according to the conventional technology, it is necessary to create a control program corresponding to each type of flash memory and determine the control program to be used before writing and reading. Therefore, there is a problem that the work load on the worker is large and the work time is long. In addition, the above-described conventional technique also requires the storage capacity of each flash memory to be checked in advance, which also has a problem that much labor is required.
[0010]
An object of the present invention is to solve the above-described problems of the related art, and to automatically determine the type and storage capacity of a flash memory for performing writing and reading, and to enable writing and reading to and from the flash memory. Accordingly, it is an object of the present invention to provide a read / write method for a flash memory, which can reduce a work load and a working time of an operator.
[0011]
[Means for Solving the Problems]
According to the present invention, an object of the present invention is to provide a read / write method for a flash memory, wherein the control means for controlling read / write to the flash memory uses the fact that the flash memory has different access codes depending on the type thereof. This is achieved by determining the type of the flash memory by trying to access the flash memory using the respective access code, examining the code that successfully accesses the flash memory, and thereafter performing a read or write process. You.
[0012]
Further, the above object is achieved by performing access to an assumed final address or an address exceeding the final address using the determined access code, and determining the storage capacity of the flash memory according to success or failure. .
[0013]
According to the present invention constituted by the above-described means, the type and storage capacity of the flash memory to be written and read can be automatically determined, and the writing and reading to and from the flash memory can be performed. Work load and work time can be reduced.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of a read / write method for a flash memory according to the present invention will be described in detail with reference to the drawings.
[0015]
FIG. 1 is a diagram for explaining an outline of a method for writing to a flash memory according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a configuration of a device for executing a read / write method for a flash memory according to an embodiment of the present invention. FIG. 3 and FIG. 3 are diagrams showing an operation sequence when writing is performed. 2 and 3, 21 is a PC, 22 is a control program, 23 is a flash memory read / write program, 24 is a Bluetooth module, 25 is a BOOT program, 26 is RAM, 27 is flash memory, and 28 is a serial interface. is there.
[0016]
The present invention makes use of the fact that the access command differs for each type of flash memory and that the storage capacity differs for each flash memory, and automatically discriminates the type of flash memory and its storage capacity. This makes it possible to improve read / write efficiency. That is, the control program used in the present invention determines the type of the flash memory by sequentially trying to access the flash memory according to each assumed access code set of the flash memory and examining the code for which the access is successful. are doing. Further, using the access code set, an access is made to an assumed final address or an address exceeding the final address, and the storage capacity of the flash memory is determined based on the success or failure.
[0017]
As described above, according to an embodiment of the present invention, when writing data or the like to a flash memory, two types of memories A and B are used as described in the related art by one type of control program as shown in FIG. It is also possible to write to the flash memory. Although not shown in FIG. 1, the same applies to reading from a flash memory. Although only two types of memories A and B are shown in the figure, the present invention can be applied to more types of flash memories.
[0018]
As shown in FIG. 2, the configuration of a device that implements the read / write method for a flash memory according to an embodiment of the present invention is, for example, a PC 21 having a control program 22 as a control unit and a read / write program 23 for a flash memory. And a Bluetooth module 24 having a flash memory 27 for storing information such as a BOOT program 25, a RAM 26, and firmware. With this configuration, reading from and writing to the flash memory 27 provided in the Bluetooth module 24 can be performed.
[0019]
In the example shown in FIG. 2, the PC 21 and the Bluetooth module 24 are described as being separated from each other and connected by the serial interface 28. However, the present invention is applied to a case where the Bluetooth module 24 is provided inside the PC 21. Can also be applied.
[0020]
Next, an operation when writing information such as firmware to the flash memory 27 in the example shown in FIG. 2 will be described.
[0021]
(1) When the Bluetooth module 24 is started in a boot mode, which is a mode for writing or reading data to or from a flash memory, instead of a mode for the original operation of the bluetooth module, first, the boot program 25 is stored in the RAM 26. Loaded (expanded).
[0022]
(2) The BOOT program 25 loaded into the RAM 26 fetches the control program 22 from the read / write program 23 of the flash memory of the PC 21 and loads the control program 22 into the RAM 26.
[0023]
(3) After the loading of the control program 22 into the RAM 26 is completed, the control program 22 receives information such as firmware to be written to the flash memory 27 from the read / write program 23 of the flash memory of the PC 21 and flashes the information. Write to the memory 27.
[0024]
Next, a process of acquiring the type and storage capacity of the flash memory when writing to the flash memory 27 as described above will be described with reference to the sequence diagram shown in FIG. In this processing, the control program has a code set corresponding to a plurality of types of flash memories, and a plurality of types of final address values determined by the storage capacity of the flash memory, and uses these to determine the type of the flash memory and its type. This is a process of determining the storage capacity and performing writing.
[0025]
(1) The control program 22 loaded in the RAM 26 accesses the flash memory 27 by using one of the prepared code sets, here, the code set A for writing, for a certain period of time, for example, 100 ms. It waits for a response from the flash memory 27 for about one second after (step (1)).
[0026]
(2) If no response is obtained from the flash memory 27 within a certain period of time, the control program 22 accesses the flash memory 27 again using the next code set, here, the write code set B (sequence). (2)).
[0027]
(3) When a response true “1” is obtained from the flash memory 27 during a certain period of time, the control program 22 determines that the type of the flash memory 27 is a type that can use the code set B for writing. Decide to use that codeset. The processing of the sequences (1) and (2) is repeatedly executed by changing the writing code set until a response true "1" is obtained (sequence (3)).
[0028]
(4) Using the code set determined above, the control program 22 accesses the last address B 'of the flash memory having the smallest memory capacity (sequence (4)).
[0029]
(5) If true “1” is obtained as a response indicating that the access is permitted in the access of sequence (4), the control program 22 determines the last address B ′ + n of the next largest memory capacity in the flash memory. Until a response is obtained, access is made to the last address of a memory having a larger memory capacity (sequences (5) and (6)).
[0030]
(6) In response to the access of the sequence (6), if the file “0” is obtained from the flash memory 27 as a response indicating that access is not possible, the control program 22 determines that the flash memory 27 has Is determined to be the capacity having the last address in (7).
[0031]
(7) Since the type and capacity of the flash memory 27 have been determined by the processing up to this point, the control program 22 then writes necessary data to the flash memory 27 by reading the flash memory 27. -Execute the write program 23 (sequence (8)).
[0032]
In the above-described embodiment of the present invention, the operation has been described by taking data writing to a flash memory as an example, but the present invention can be similarly applied to reading data from a flash memory. That is, in the case of data reading, the type of the flash memory can be determined by using the read code set instead of the write code set described with reference to FIG.
[0033]
In addition, in the above-described embodiment of the present invention, in order to determine the storage capacity of the flash memory, those last addresses are sequentially accessed in order from the smallest memory capacity in the flash memory to the largest one, and access is not possible. Has been described, when the file “0” is obtained as a response, the flash memory 27 is determined to have a capacity having the last address in the previous access from which the response was obtained. It is also possible to access the last addresses in order from the one with the largest memory capacity in the direction from the one having the largest memory capacity, and determine that the capacity has the last address in the access for which the response was obtained.
[0034]
According to the embodiment of the present invention described above, the flash memory takes advantage of the fact that the access code differs depending on the type, tries to access the flash memory using each of the assumed access code sets, By examining the successful code, the type of flash memory can be automatically determined. In addition, although there are flash memories of the same type having different storage capacities, according to the present invention, an access is made to an assumed final address or an address exceeding the final address using a determined access code. The storage capacity of the flash memory can be automatically determined based on the success or failure. Thus, the embodiment of the present invention can improve the work efficiency at the time of writing and reading to the flash memory.
[0035]
【The invention's effect】
As described above, according to the present invention, the type and storage capacity of the flash memory for writing and reading can be automatically determined, and writing and reading to and from the flash memory can be performed. The burden and work time can be reduced.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining an outline of a method for performing writing to a flash memory according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of a device that performs a read / write method for a flash memory according to an embodiment of the present invention.
FIG. 3
FIG. 9 is a diagram illustrating an operation sequence when writing is performed.
FIG. 4
FIG. 3 is a diagram illustrating an outline of a writing method for a flash memory according to a conventional technique.
[Explanation of symbols]
21 PC
22 Control Program 23 Flash Memory Read / Write Program 24 Bluetooth Module 25 BOOT Program 26 RAM
27 Flash memory 28 Serial interface

Claims (2)

フラッシュメモリに対するリード・ライト方法において、フラッシュメモリに対するリード・ライトの制御を行う制御手段は、前記フラッシュメモリが、その種類によってアクセスコードが異なることを利用し、想定されるそれぞれのアクセスコードを用いたフラッシュメモリへのアクセスを試行し、アクセスが成功するコードを調べることにより、フラッシュメモリの種類を確定し、その後にリードまたはライトの処理を実行することを特徴とするフラッシュメモリに対するリード・ライト方法。In the read / write method for the flash memory, the control means for controlling the read / write to the flash memory uses each of the assumed access codes by utilizing the fact that the flash memory has different access codes depending on the type. A read / write method for a flash memory, characterized in that the type of the flash memory is determined by examining a code that attempts to access the flash memory and succeeds in access, and then executes a read or write process. 前記確定したアクセスコードを使用して、想定される最終アドレスや、最終アドレスを超えるアドレスについてアクセスを行い、その成否により、フラッシュメモリの記憶容量を確定することを特徴とする請求項1記載のフラッシュメモリに対するリード・ライト方法。2. The flash according to claim 1, wherein an access is made to an assumed final address or an address exceeding the final address using the determined access code, and the storage capacity of the flash memory is determined based on the success or failure. Read / write method for memory.
JP2002351269A 2002-12-03 2002-12-03 Reading/writing method to flash memory Withdrawn JP2004185290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002351269A JP2004185290A (en) 2002-12-03 2002-12-03 Reading/writing method to flash memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002351269A JP2004185290A (en) 2002-12-03 2002-12-03 Reading/writing method to flash memory

Publications (1)

Publication Number Publication Date
JP2004185290A true JP2004185290A (en) 2004-07-02

Family

ID=32753233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002351269A Withdrawn JP2004185290A (en) 2002-12-03 2002-12-03 Reading/writing method to flash memory

Country Status (1)

Country Link
JP (1) JP2004185290A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007334646A (en) * 2006-06-15 2007-12-27 Seiko Epson Corp Method and program for determining command type of flash memory, and method and program for controlling flash memory
JP2008527553A (en) * 2005-01-14 2008-07-24 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Method and device for initializing the startup procedure of a mobile device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008527553A (en) * 2005-01-14 2008-07-24 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Method and device for initializing the startup procedure of a mobile device
EP1681628B1 (en) * 2005-01-14 2016-11-02 Telefonaktiebolaget LM Ericsson (publ) Method and device for initializing a booting procedure of a mobile device
JP2007334646A (en) * 2006-06-15 2007-12-27 Seiko Epson Corp Method and program for determining command type of flash memory, and method and program for controlling flash memory

Similar Documents

Publication Publication Date Title
KR100706246B1 (en) Memory card capable of improving read performance
JPH02214994A (en) Ic card
JP2004118826A (en) System unit booted using flash memory, and its booting method
EP2054800A2 (en) Flash memory access circuit
US20120155175A1 (en) Flash memory device and operation method thereof
US7916975B2 (en) Image processing apparatus and image processing control method
JP4177360B2 (en) Memory controller, flash memory system, and flash memory control method
EP3057100A1 (en) Memory device and operating method of same
JP2004185290A (en) Reading/writing method to flash memory
JP2006202233A (en) Controller and program for same
JPWO2006101123A1 (en) Nonvolatile memory device, nonvolatile memory controller, and nonvolatile memory system
US20040073761A1 (en) Arithmetic unit with reduced startup time and method of loading data
JP2007052558A (en) Flash memory rewrite device, flash memory rewrite method and flash memory rewrite program
JP2010140325A (en) Microcomputer control device
JP5045036B2 (en) Data processing device
KR100970933B1 (en) Apparatus and method for high speed booting an operating system
JP4813823B2 (en) Test system and test method
KR101569001B1 (en) System for configurating fpga data and method therefor
KR100631780B1 (en) Communication method between overlay units and apparatus using same
JP2001092713A (en) Device and method for writing data
KR20170133116A (en) Electronic device and operating method thereof
JP4037941B2 (en) Control device
CN117793697A (en) Bluetooth patch downloading method and device, electronic equipment and storage medium
CN117369889A (en) BOOT starting method, system, equipment and medium for embedded processor
CN118069226A (en) Chip rapid programming method, device and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050509

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080219

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20080314