JPH08328845A - ROM control program rewriting method - Google Patents

ROM control program rewriting method

Info

Publication number
JPH08328845A
JPH08328845A JP16005795A JP16005795A JPH08328845A JP H08328845 A JPH08328845 A JP H08328845A JP 16005795 A JP16005795 A JP 16005795A JP 16005795 A JP16005795 A JP 16005795A JP H08328845 A JPH08328845 A JP H08328845A
Authority
JP
Japan
Prior art keywords
rom
address
version
control program
data
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
JP16005795A
Other languages
Japanese (ja)
Inventor
Yasuyuki Karasawa
康之 柄沢
Kazuhiro Seki
和洋 関
Hideaki Nishizawa
英秋 西沢
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.)
Hioki EE Corp
Original Assignee
Hioki EE 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 Hioki EE Corp filed Critical Hioki EE Corp
Priority to JP16005795A priority Critical patent/JPH08328845A/en
Publication of JPH08328845A publication Critical patent/JPH08328845A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

(57)【要約】 (修正有) 【目的】 基板に実装され、製品に組み込まれているフ
ラッシュROMをそのブートブロックを含めて簡単に書
き替え可能とする。 【構成】 フラッシュROMに書き込まれているブート
プログラムおよびCPUに対する制御プログラムを外部
記憶手段(ROMボード)に記憶されているバージョン
アップデータにより書き替えるにあたって、フラッシュ
ROMのアドレスをメモリ中の未使用領域のアドレス、
例えば(800000H)〜(BFFFFFH)に変更
した後、その特定領域(000000H)〜(3FFF
FFH)にROMボードからバージョンアップデータを
取り込み、同バージョンアップデータにてフラッシュR
OM内のブートプログラムを含む制御プログラムを書き
替え、しかる後そのバージョンアップされた上記フラッ
シュROMのアドレスを特定領域(000000H)〜
(3FFFFFH)のアドレスに戻す。
(57) [Summary] (Correction) [Purpose] The flash ROM mounted on the board and built into the product can be easily rewritten including its boot block. [Structure] When rewriting the boot program written in the flash ROM and the control program for the CPU with the upgrade data stored in the external storage means (ROM board), the address of the flash ROM is the address of an unused area in the memory. ,
For example, after changing to (800000H) to (BFFFFFH), the specific area (000000H) to (3FFF)
FFH) fetches the version upgrade data from the ROM board, and flash R with the same version upgrade data
The control program including the boot program in the OM is rewritten, and then the address of the flash ROM that has been upgraded is specified area (000000H) to
Return to the address of (3FFFFFH).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はROMの制御プログラム
書替え方法に関し、さらに詳しく言えば、基板に実装さ
れ、すでに製品に組み込まれているROMの内容をその
ブートローダープログラムを含めて、ROMライタなど
によることなく、簡単に書き替え可能としたROMの制
御プログラム書替え方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for rewriting a ROM control program, and more particularly to a ROM writer including the contents of a ROM mounted on a board and already incorporated in a product, including its boot loader program. The present invention relates to a method for rewriting a control program of a ROM that can be easily rewritten without depending on.

【0002】[0002]

【従来の技術】ROMはもっぱらデータの読出し専用で
あるが、そのうちのPROM(programmabl
e read only memory)は、ユーザー
サイドでデータを書き込んで保存することができる。
2. Description of the Related Art A ROM is exclusively for reading data, but a PROM (programmable
In e read only memory, data can be written and saved on the user side.

【0003】このPROMをさらに分類すると、1度し
か書き込みができないヒューズ・ROMと、消去、再書
込みを可能としたEPROMとがある。任意にデータの
書き替えができる点からすればEPROMは便利である
が、データの消去は例えば紫外線の照射により行なわ
れ、また、データの書込みには専用のEPロムライタを
必要とする。したがって、すでに基板に実装され、製品
に組み込まれた状態ではその書き替えを行なうことは困
難を伴なう。
If the PROM is further classified, there are a fuse ROM that can be written only once and an EPROM that can be erased and rewritten. The EPROM is convenient in that the data can be rewritten arbitrarily, but the data is erased by, for example, irradiation of ultraviolet rays, and a dedicated EP ROM writer is required for writing the data. Therefore, it is difficult to rewrite it when it is already mounted on the board and incorporated in the product.

【0004】これに対して、電気信号にてデータを消去
することができるものとしてフラッシュROMがある。
通常、フラッシュROM内はいくつか(例えば8個)の
ブロックに分けられており、その一つをブートブロック
として使用し、そのブートプロクラム(基本ソフト)に
て他のブロックの書き替えが行なわれる。
On the other hand, there is a flash ROM that can erase data by an electric signal.
Usually, the flash ROM is divided into some (for example, eight) blocks, one of which is used as a boot block, and other blocks are rewritten by the boot program (basic software).

【0005】[0005]

【発明が解決しようとする課題】このように、フラッシ
ュROMによれば、そのブートプログラムにて例えばフ
ロッピーディスク(FD)よりデータを読み出して、他
のブロックの内容を書き替えることができる。しかしな
がら、ブートブロックについては、基板に実装する前の
段階でROMライタにより書き込んでおかなければなら
ない性質上、基板への実装後にはその書き替えが困難で
あり、バージョンアップを行なう上で支障をきたすこと
があった。
As described above, according to the flash ROM, the boot program can read data from, for example, a floppy disk (FD) and rewrite the contents of other blocks. However, since the boot block must be written by the ROM writer before mounting on the board, it is difficult to rewrite the boot block after mounting on the board, which hinders version upgrade. There was an occasion.

【0006】本発明は、このような従来の問題を解決す
るためになされたもので、その目的は、基板に実装さ
れ、製品に組み込まれているフラッシュROMをそのブ
ートブロックを含めて簡単に書き替えることができるよ
うにしたROMの制御プログラム書替え方法を提供する
ことにある。
The present invention has been made to solve such a conventional problem, and an object thereof is to easily write a flash ROM mounted on a substrate and incorporated in a product, including its boot block. Another object of the present invention is to provide a method for rewriting a ROM control program that can be replaced.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、CPUとともに本体基板に実装されてい
て、同CPUにてその読出し、書込みが管理されるメモ
リの先頭アドレスを含む特定領域に電気的に消去可能な
フラッシュROMが割り当てられ、同フラッシュROM
に書き込まれているブートプログラムおよび上記CPU
に対する制御プログラムを外部記憶手段に記憶されてい
るバージョンアップデータにより書き替えるにあたっ
て、上記フラッシュROMのアドレスを上記メモリ中の
未使用領域のアドレスに変更した後、上記特定領域に上
記外部記憶手段からバージョンアップデータを取り込
み、同バージョンアップデータにて上記フラッシュRO
M内のブートプログラムを含む制御プログラムを書き替
え、しかる後そのバージョンアップされた上記フラッシ
ュROMのアドレスを上記特定領域のアドレスに戻すこ
とを特徴としている。
In order to achieve the above object, the present invention is a specific area including a head address of a memory which is mounted on a main body board together with a CPU and whose reading and writing are managed by the CPU. An electrically erasable flash ROM is assigned to
Program written in the CPU and the above CPU
In rewriting the control program for the version update data stored in the external storage means, after changing the address of the flash ROM to the address of an unused area in the memory, the update data from the external storage means is stored in the specific area. The flash RO with the same version update data.
It is characterized in that the control program including the boot program in M is rewritten, and then the upgraded address of the flash ROM is returned to the address of the specific area.

【0008】この場合、上記のアドレス切り替えはアド
レスセレクタによって行なわれる。すなわち、外部記憶
手段がEPROMなどのROMボードからなる場合、そ
のROMボードを本体基板に設けられている接続コネク
タに差し込むことにより、アドレスセレクタにより、上
記特定領域内のフラッシュROMのアドレスが上記メモ
リ中の未使用領域のアドレスに変更されるとともに、上
記特定領域が上記ROMボードからのデータ書込み領域
に指定される。そして、データの書き替え終了後に、R
OMボードが接続コネクタから外されると、フラッシュ
ROMのアドレスがふたたび上記特定領域のアドレスに
戻されることになる。なお、上記外部記憶手段はフロッ
ピーディスクであってもよい。
In this case, the above address switching is performed by the address selector. That is, when the external storage means is a ROM board such as an EPROM, the address of the flash ROM in the specific area is stored in the memory by inserting the ROM board into a connector provided on the main body substrate. Of the unused area, and the specific area is designated as a data writing area from the ROM board. Then, after rewriting the data, R
When the OM board is detached from the connection connector, the address of the flash ROM is returned to the address of the specific area again. The external storage means may be a floppy disk.

【0009】また、上記外部記憶手段から上記特定領域
にバージョンアップデータを取り込んだ後、およびその
特定領域に取り込まれたバージョンアップデータにて、
上記フラッシュROMの内容を書き替えた後に、それぞ
れそれら両データのチェックサムを行なうことが好まし
い。
Further, after the upgrade data is fetched from the external storage means to the specific area, and after the version upgrade data is fetched to the specific area,
After rewriting the contents of the flash ROM, it is preferable to perform a checksum of both of these data.

【0010】一方、上記フラッシュROMのバージョン
をモニタ画面に表示するにあたっては、制御プログラム
のシステムバージョン番号と、ブートプログラムのブー
トバージョン番号とを個別的に分けて表示するとよく、
さらには、そのシステムバージョンおよびブートバージ
ョンの各々について、現在の番号と新たな番号とを併せ
て表示することが、本体プログラムの管理上好ましい。
On the other hand, when displaying the version of the flash ROM on the monitor screen, the system version number of the control program and the boot version number of the boot program may be displayed separately.
Further, it is preferable in view of management of the main body program to display the current number and the new number together for each of the system version and the boot version.

【0011】また、上記外部記憶手段にバージョンアッ
プデータを記憶するにあたっては、その記憶領域の一部
にヘッダ領域を設けて、そのヘッダ領域に機種識別コー
ド、チェックサムデータおよびバージョン番号などの識
別データを書込むようにするとよく、これによればバー
ジョンアップデータを正確に認識できるとともに、その
バージョン番号の管理が簡単になる。
When storing the upgrade data in the external storage means, a header area is provided in a part of the storage area, and identification data such as model identification code, checksum data and version number is stored in the header area. It is preferable to write it in. This makes it possible to accurately recognize the version upgrade data and to easily manage the version number.

【0012】さらには、上記本体基板に書込み可能な外
部記憶装置を備え、上記CPUにて上記フラッシュRO
M内のプログラム情報に基づいてバージョンアップデー
タを作成し、そのバージョンアップデータを上記外部記
憶装置を介してフロッピーディスクなどの外部記憶媒体
に書込み可能とすることが好ましい。これによれば、1
台の製品についてバージョンアップを行なえば、その製
品からバージョンアップデータが複製できることにな
る。
Furthermore, an external storage device that can be written on the main body substrate is provided, and the flash RO is executed by the CPU.
It is preferable that version-up data be created based on the program information in M and the version-up data can be written to an external storage medium such as a floppy disk via the external storage device. According to this, 1
If you upgrade a single product, the upgrade data can be copied from that product.

【0013】[0013]

【作用】バージョンアップを行なう場合、準備段階とし
て、ニューバージョンデータを例えばEPROMなどの
ROMボードに書き込む。そして、そのROMボードを
本体基板に設けられている接続コネクタに差し込むと、
アドレスセレクタにより、フラッシュROMのアドレス
が上記メモリ中の未使用領域のアドレスに変更され、し
かる後上記特定領域にROMボードからバージョンアッ
プデータが取り込まれる。そして、同バージョンアップ
データにてフラッシュROM内のブートプログラムを含
む制御プログラムの書き替えが行なわれ、その終了後に
ROMボードを接続コネクタから外すことにより、その
バージョンアップされたフラッシュROMのアドレスが
上記特定領域のアドレスに戻される。
When the version is upgraded, the new version data is written in a ROM board such as an EPROM as a preparatory step. Then, when the ROM board is inserted into the connector provided on the main board,
The address selector changes the address of the flash ROM to the address of the unused area in the memory, and then the version upgrade data is fetched from the ROM board to the specific area. Then, the control program including the boot program in the flash ROM is rewritten with the same version upgrade data, and after the completion, the ROM board is removed from the connector, so that the address of the upgraded flash ROM is in the specific area. Will be returned to.

【0014】[0014]

【実施例】以下、図面を参照しながら本発明の実施例に
ついて説明する。まず、図1は例えば波形記録計などの
製品に組み込まれる本体基板10が示されている。この
本体基板10には、実際には種々の回路パターンが形成
され、また、抵抗やコンデンサそれに各種の半導体など
が実装されるのであるが、ここでは便宜的にCPU11
と、同CPU11にてその読出し、書込みが管理される
メモリ12のみを示す。また、この本体基板10にはバ
ージョンアップ用のROMボード20が接続されるコネ
クタ13と、外部記憶媒体としてのフロッピーディスク
30との間でデータの授受を行なうフロッピーディスク
ドライブ14とが設けられている。なお、ROMボード
20には、ROMライタによりバージョンアップデータ
が書込まれているものとする。
Embodiments of the present invention will be described below with reference to the drawings. First, FIG. 1 shows a main body substrate 10 incorporated in a product such as a waveform recorder. Various circuit patterns are actually formed on the main body substrate 10, and resistors, capacitors, various semiconductors, etc. are mounted, but here, for convenience, the CPU 11 is used.
Only the memory 12 whose reading and writing are managed by the CPU 11 is shown. Further, the main body substrate 10 is provided with a connector 13 to which a ROM board 20 for version upgrade is connected, and a floppy disk drive 14 for exchanging data with a floppy disk 30 as an external storage medium. . It is assumed that the ROM board 20 has version-up data written by the ROM writer.

【0015】図2には、CPU11側から見たメモリ1
2のアドレスマップが示されている。同図(a)はRO
Mボード20がコネクタ13に接続されていない当初の
場合のアドレスマップで、これによると全メモリ容量は
(000000H)〜(FFFFFFH)までの16M
Bであり、この実施例ではフラッシュROMはこの内の
先頭アドレス(000000H)〜(3FFFFFH)
までの領域に割り当てられている。
FIG. 2 shows the memory 1 viewed from the CPU 11 side.
Two address maps are shown. The same figure (a) is RO
The address map in the initial case where the M board 20 is not connected to the connector 13 shows that the total memory capacity is 16M from (000000H) to (FFFFFFH).
B, and in this embodiment, the flash ROM has a start address (000000H) to (3FFFFFH) in the flash ROM.
Is allocated to the area up to.

【0016】なお、この実施例において(400000
H)〜(7FFFFFH)までは例えばSRAMやI/
Oポートのアドレス領域とされ、残りの(800000
H)〜(FFFFFFH)までは未使用とされている。
In this embodiment, (400000)
H) to (7FFFFFH) are, for example, SRAM and I /
It is used as the O port address area, and the remaining (800,000)
H) to (FFFFFFH) are not used.

【0017】これに対して、ROMボード20がコネク
タ13に接続されると、図2(b)に示されているよう
に、フラッシュROMの領域が未使用領域中の例えば
(800000H)〜(BFFFFFH)とされ、それ
までフラッシュROMの領域とされていた(00000
0H)〜(3FFFFFH)の領域にROMボード20
のバージョンアップデータが書き込まれる。
On the other hand, when the ROM board 20 is connected to the connector 13, the area of the flash ROM is, for example, (800000H) to (BFFFFFH) in the unused area as shown in FIG. 2B. ), And was used as a flash ROM area until then (000000
ROM board 20 in the area from 0H) to (3FFFFFH)
The version upgrade data of is written.

【0018】そして、そのバージョンアップデータにて
フラッシュROMのブートブロックを含むすべての領域
(ブロック)の書き替えが行なわれ、その確認後、RO
Mボード20をコネクタ13から外すことにより、バー
ジョンアップされたフラッシュROMの領域が図(a)
のように、(000000H)〜(3FFFFFH)の
領域に戻される。
Then, all areas (blocks) including the boot block of the flash ROM are rewritten with the version-up data, and after confirmation, RO
The area of the flash ROM that has been upgraded by removing the M board 20 from the connector 13 is shown in Figure (a).
As shown in, the data is returned to the area of (000000H) to (3FFFFFH).

【0019】このようにアドレスを切り替える切替え回
路(アドレスセレクタ)の一例が図3に示されている。
この切替え回路40はデコーダ41と、セレクタ部42
とを備え、上記コネクタ13の特定ピン、この例では1
番ピンが「H」レベルか「L」レベルかによって、RO
Mボード20の存在を検出するようにしている。
An example of the switching circuit (address selector) for switching the address in this way is shown in FIG.
The switching circuit 40 includes a decoder 41 and a selector section 42.
And a specific pin of the connector 13, which is 1 in this example.
Depending on whether the pin number is "H" level or "L" level, RO
The presence of the M board 20 is detected.

【0020】すなわち、ROMボード20が接続されて
いない場合、1番ピンは「H」レベルであるが、ROM
ボード20が接続されると、その1番ピンは同ROMボ
ード20のGNDに接続されるため、「L」レベルに転
ずる。
That is, when the ROM board 20 is not connected, the 1st pin is at the "H" level, but the ROM
When the board 20 is connected, its 1st pin is connected to the GND of the same ROM board 20, so that it shifts to the “L” level.

【0021】デコーダ41のセレクト入力Bには、CP
U11から24ビット構成のアドレス信号の最上位ビッ
ト(MSB)であるA23が入力され、セレクト入力A
には、その次位ビット(MSB−1)のA22が入力さ
れる。また、イネーブル入力(反転入力)Gにはアドレ
ス有効信号が反転入力される。
The select input B of the decoder 41 has CP
A23, which is the most significant bit (MSB) of the 24-bit address signal, is input from U11 to select input A
A22 of the next most significant bit (MSB-1) is input to. An address valid signal is inverted and input to the enable input (inversion input) G.

【0022】一方、デコーダ41の出力Y0は(000
000H)〜(3FFFFFH)のアドレス領域、出力
Y1は(400000H)〜(7FFFFFH)のアド
レス領域、出力Y2は(800000H)〜(BFFF
FFH)の領域、出力Y3は(C00000H)〜(F
FFFFFH)の領域をそれぞれ受け持っている。
On the other hand, the output Y0 of the decoder 41 is (000
000H) to (3FFFFFH) address area, output Y1 is (400000H) to (7FFFFFH) address area, and output Y2 is (800000H) to (BFFF).
FFH) area, output Y3 is (C00000H) to (F
FFFFFH) area.

【0023】セレクタ部42は、上記1番ピンに接続さ
れたインバータ回路42aと、2つのインバートナンド
回路42b,42cと、このインバートナンド回路42
b,42cの各出力を入力とするインバートオア回路4
2dとを備えている。
The selector section 42 has an inverter circuit 42a connected to the first pin, two invert NAND circuits 42b and 42c, and this invert NAND circuit 42.
Inverting OR circuit 4 with each output of b and 42c as input
2d and.

【0024】インバートナンド回路42bの一方の入力
には1番ピンに接続され、他方の入力にはデコーダ41
の出力Y2が接続されている。また、インバートナンド
回路42cの一方の入力にはインバータ回路42aの出
力が接続され、他方の入力はデコーダ41の出力Y0が
接続されている。
One input of the invert NAND circuit 42b is connected to the first pin, and the other input is connected to the decoder 41.
Output Y2 of is connected. The output of the inverter circuit 42a is connected to one input of the invert NAND circuit 42c, and the output Y0 of the decoder 41 is connected to the other input.

【0025】このアドレス切替え回路40により、図2
のアドレスマップにおいて、ROMボード20がコネク
タ13に接続されていない場合のフラッシュROMの領
域(同図(a)参照)と、ROMボード20がコネクタ
13に接続された状態におけるフラッシュROMの領域
およびROMボードの領域(同図(b)参照)とがそれ
ぞれ設定される。
With this address switching circuit 40, as shown in FIG.
In the address map of FIG. 2, the area of the flash ROM when the ROM board 20 is not connected to the connector 13 (see FIG. 11A), the area of the flash ROM when the ROM board 20 is connected to the connector 13 and the ROM The board area (see FIG. 11B) is set respectively.

【0026】まず、ROMボード20が接続されていな
い場合について説明すると、CPU11が(00000
0H)〜(3FFFFFH)をアクセスしたとき、A2
3,A22およびアドレス有効の反転信号がともにLと
なるため、Y0=L,Y2=Hとなる。このとき、1番
ピンはHに吊られているため、インバータ回路42aの
出力はL、したがって一方のインバートナンド回路42
bの出力がL、他方のインバートナンド回路42cの出
力がHとなるため、フラッシュROM領域はLとなる。
なお、ROMボード領域もLとなるが、ROMボードは
接続されていないため、この2つの領域が重なることは
ない。
First, the case where the ROM board 20 is not connected will be described.
0H)-(3FFFFFH) is accessed, A2
3, A22 and the inversion signal of the address valid are both L, so that Y0 = L and Y2 = H. At this time, since the 1st pin is hung at H, the output of the inverter circuit 42a is L, and therefore one of the invert NAND circuit 42a
Since the output of b is L and the output of the other invert NAND circuit 42c is H, the flash ROM area is L.
The ROM board area is also L, but since the ROM board is not connected, these two areas do not overlap.

【0027】続いて、CPU11が(800000H)
〜(BFFFFFH)をアクセスしたとき、A23,A
22およびアドレス有効の反転信号がともにLとなるた
め、Y0=H,Y2=Lとなる。1番ピンが「H」のた
め、一方のインバートナンド回路42bの出力がHとな
り、Y0=Hにより他方のインバートナンド回路42c
の出力がHとなり、どちらの領域もLとはならない。
Subsequently, the CPU 11 (800,000H)
~ (BFFFFFH) is accessed, A23, A
Since both 22 and the address inversion signal are L, Y0 = H and Y2 = L. Since the 1st pin is "H", the output of one invert NAND circuit 42b becomes H, and the other invert NAND circuit 42c becomes Y0 = H.
Output becomes H, and neither region becomes L.

【0028】次に、ROMボード20が接続されている
場合について説明する。CPU11が(000000
H)〜(3FFFFFH)をアクセスしたとき、A2
3,A22およびアドレス有効の反転信号がともにLと
なるため、Y0=L,Y2=Hとなる。このとき、1番
ピンはLに転じており、かつ、Y2=Hであるため、一
方のインバートナンド回路42bの出力がHとなる。ま
た、インバータ回路42aの出力Hと、Y0=Lとによ
り他方のインバートナンド回路42cの出力がHとな
る。これにより、フラッシュROM領域がHで、Y0=
LによりROMボード領域はLとなるため、ROMボー
ド領域がアクセスされることになる。
Next, the case where the ROM board 20 is connected will be described. CPU11 is (000000
H)-(3FFFFFH) is accessed, A2
3, A22 and the inversion signal of the address valid are both L, so that Y0 = L and Y2 = H. At this time, the output of one of the invert NAND circuits 42b becomes H, because the 1st pin has changed to L and Y2 = H. Also, the output H of the inverter circuit 42a and Y0 = L cause the output of the other inverter NAND circuit 42c to become H. As a result, the flash ROM area is H and Y0 =
Since the ROM board area becomes L due to L, the ROM board area is accessed.

【0029】続いて、CPU11が(800000H〜
BFFFFFH)をアクセスしたときは、A23=H、
A22およびアドレス有効の反転信号がLとなるため、
Y0=H、Y2=Lとなる。1番ピンがLでY2=Lで
あるため、一方のインバートナンド回路42bの出力が
Lとなる。このとき、インバータ回路42aの出力Tが
H、また、Y0=Hのため他方のインバートナンド回路
42cの出力がHとなる。よって、フラッシュROM領
域がLとなり、同フラッシュROM領域がアクセスされ
る。参考までに、デコーダ41の機能表を次表に示す。
Then, the CPU 11 (800000H-
BFFFFFH), A23 = H,
Since the inversion signal of A22 and address valid becomes L,
Y0 = H and Y2 = L. Since the first pin is L and Y2 = L, the output of one of the invert NAND circuits 42b becomes L. At this time, the output T of the inverter circuit 42a is H, and since Y0 = H, the output of the other inversion NAND circuit 42c is H. Therefore, the flash ROM area becomes L, and the same flash ROM area is accessed. For reference, the function table of the decoder 41 is shown in the following table.

【0030】[0030]

【表1】 [Table 1]

【0031】次に、図4および図5のフローチャートに
したがって、ROMボード20によるフラッシュROM
のバージョンアップの手順を説明する。図4は大筋のフ
ローチャートであり、まず電源を投入し、隠しコマンド
を入力することにより、図5に示されているROMボー
ド20によるバージョンアップ動作に入る。なお、隠し
コマンドは、例えば図示しない操作部のSYSTEMキ
ーとSTATUSキーとを同時に押すことにより得られ
る。
Next, according to the flow charts of FIGS. 4 and 5, a flash ROM using the ROM board 20.
The procedure for version upgrade is explained. FIG. 4 is a general flow chart. First, the power is turned on and a hidden command is input to start the version upgrade operation by the ROM board 20 shown in FIG. The hidden command can be obtained, for example, by simultaneously pressing the SYSTEM key and the STATUS key of the operation unit (not shown).

【0032】図5のフローチャートにおいて、まず、モ
ニタにバージョンアップの画面が表示される。その表示
例が図6に示されているが、この実施例では制御プログ
ラムのシステムバージョンと、ブートプログラムのブー
トバージョンとが別々に、しかも現在のバージョン番号
と、これからアップしようとする新たなバージョン番号
とがそれぞれ表示される。また、バージョンアップする
かどうかを促す表示もなされる。
In the flowchart of FIG. 5, first, a screen for version upgrade is displayed on the monitor. An example of the display is shown in FIG. 6, but in this embodiment, the system version of the control program and the boot version of the boot program are separate, and the current version number and the new version number to be updated from now on. And are displayed respectively. In addition, there is also a message prompting you to upgrade.

【0033】そこで、バージョンアップYESのキーを
押すと、ROMボード20から上記した(000000
H)〜(3FFFFFH)の領域にバージョンアップデ
ータが読み込まれ、そのチェックサムがとられ、ROM
ボード20のチェックサムと比較される。そのチェック
サムがOKであれば、次にそのバージョンアップデータ
により、(800000H)〜(BFFFFFH)の領
域にあるフラッシュROMの内容が書き替えられる。
Then, when the version up YES key is pressed, the above (000000) is read from the ROM board 20.
H) to (3FFFFFH) area, the version upgrade data is read, the checksum is taken, ROM
It is compared with the checksum of board 20. If the checksum is OK, then the contents of the flash ROM in the area (800000H) to (BFFFFFH) are rewritten by the version upgrade data.

【0034】しかる後、その書き替えられたフラッシュ
ROMのチェックサムがとられ、(000000H)〜
(3FFFFFH)の領域のROMボード20のチェッ
クサムとの比較が行なわれ、OKであれば終了のキー操
作があるまでモニタ画面に終了のメッセージを表示し、
終了のキー操作がなされた時点でバージョンアップを確
定する。そして、ROMボード20をコネクタ13から
外すことにより、バージョンアップされたフラッシュR
OMのアドレスが元の領域である(000000H)〜
(3FFFFFH)に戻される。
Then, the checksum of the rewritten flash ROM is taken, and (000000H) to
The checksum of the ROM board 20 in the (3FFFFFH) area is compared, and if OK, an end message is displayed on the monitor screen until the end key operation is made.
The version upgrade is confirmed when the end key operation is performed. Then, by removing the ROM board 20 from the connector 13, the flash R is upgraded.
OM address is the original area (000000H) ~
It is returned to (3FFFFFH).

【0035】上記実施例はバージョンアップデータをR
OMボード20に格納した例であるが、そのバージョン
アップデータをフロッピーディスクに記憶させても、同
様にフラッシュROMをバージョンアップすることがで
きる。
In the above embodiment, the version-up data is R
This is an example in which the flash ROM is stored in the OM board 20, but the flash ROM can also be upgraded by storing the version upgrade data in a floppy disk.

【0036】このように、本発明によればフラッシュR
OMをそのブートブロックを含めてバージョンアップす
ることができるが、さらにこのバージョンアップデータ
を複製して他の同種機器に与えることも可能である。そ
の例が図7のフローチャートに示されている。すなわ
ち、フラッシュROMの内容が上記のように新たなバー
ジョンアップデータに書き替えられたことを前提とし
て、電源投入後に隠しコマンドキー、例えばFDキーと
カーソルキーとを同時に押すことにより、CPU11は
バージョンアップデータ作成モードに入る。
Thus, according to the present invention, the flash R
Although it is possible to upgrade the OM including its boot block, it is also possible to copy this upgrade data and give it to other similar equipment. An example thereof is shown in the flowchart of FIG. That is, on the assumption that the contents of the flash ROM are rewritten with the new version upgrade data as described above, the CPU 11 simultaneously presses the hidden command key, for example, the FD key and the cursor key after the power is turned on, so that the CPU 11 creates the version upgrade data. Enter the mode.

【0037】これにより、フラッシュROMのプログラ
ム情報がバージョンアップデータに変換される。この変
換方式としては、例えばフラッシュROMのビットデー
タをそのまま移し替えてもよく、もしくはそのデータを
任意に圧縮してもよい。しかる後、そのバージョンアッ
プデータをフロッピーディスクドライブ14を介して外
部記憶媒体としてのフロッピーディスク30に書き込
む。このようにして、そのフロッピーディスク30に
て、これをROMライタとして他の製品に搭載されてい
るフラッシュROMの内容を書き替えることができる。
As a result, the program information in the flash ROM is converted into version upgrade data. As the conversion method, for example, the bit data of the flash ROM may be directly transferred or the data may be arbitrarily compressed. Thereafter, the version upgrade data is written in the floppy disk 30 as an external storage medium via the floppy disk drive 14. In this way, the contents of the flash ROM mounted in other products can be rewritten on the floppy disk 30 by using the floppy disk 30 as a ROM writer.

【0038】なお、このようにフロッピーディスク30
にバージョンアップデータを書き込むにしても、また、
バージョンアップデータをROMライタにてROMボー
ド20に書き込むにしても、バージョンアップデータの
書込み領域とは別に、図8に示されているように、ヘッ
ダ領域を設け、同ヘッダ領域に機種識別コード、チェッ
クサムデータおよびバージョン番号などの識別データを
書き込むことが好ましい。これによれば、より確実にバ
ージョンアップデータを書き込むことができるととも
に、そのバージョン番号を管理するうえで好ましい。
In this way, the floppy disk 30
Even if you write the version upgrade data to,
Even if the version-up data is written to the ROM board 20 by the ROM writer, a header area is provided as shown in FIG. It is preferred to write identification data such as data and version number. This is preferable for more surely writing the version upgrade data and managing the version number.

【0039】[0039]

【発明の効果】以上説明したように、本発明によれば、
基板に実装され、製品に組み込まれた後においても、フ
ラッシュROMの内容をそのブートブロック(ブートプ
ログラム)を含めて、きわめて簡単に書き替え(バージ
ョンアップ)することが可能となる。
As described above, according to the present invention,
Even after being mounted on a board and incorporated into a product, the contents of the flash ROM, including its boot block (boot program), can be rewritten (version up) very easily.

【0040】また、制御プログラムのシステムバージョ
ンとブートプログラムのブートバージョンとを個別的に
モニタ画面に表示するようにしたことにより、適格にバ
ージョン管理を行なうことができる。
Further, since the system version of the control program and the boot version of the boot program are individually displayed on the monitor screen, version management can be appropriately performed.

【0041】さらには、機器本体にバージョンアップデ
ータ作成機能を持たせたことにより、その1台の機器本
体を親として、他の機器に対してのバージョンアップデ
ータを作成することが可能となり、別途にROMライタ
を用意する必要がなくなる。
Furthermore, since the device main body has the version upgrade data creation function, it is possible to create version upgrade data for other devices by using that one device main body as a parent, and a separate ROM. There is no need to prepare a writer.

【0042】加えて、そのバージョンアップデータを作
成するにあたって、別途にヘッダ領域を設けて、その領
域に機種識別コードなどの識別情報を格納することによ
り、バージョンアップデータをより正確に認識すること
ができるとともに、異なる機種に対する誤バージョンア
ップを防止することができる。
In addition, when creating the version-up data, a header area is separately provided, and identification information such as a model identification code is stored in the area, so that the version-up data can be recognized more accurately. , It is possible to prevent wrong version upgrade for different models.

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

【図1】本発明が適用される例えば波形記録計に組み込
まれる本体基板の構成を概略的に示した模式図。
FIG. 1 is a schematic diagram schematically showing a configuration of a main body substrate incorporated in, for example, a waveform recorder to which the present invention is applied.

【図2】CPUから見たメモリのアドレスマップを示し
た模式図。
FIG. 2 is a schematic diagram showing an address map of a memory viewed from a CPU.

【図3】アドレスセレクタの構成の一例を示したブロッ
ク線図。
FIG. 3 is a block diagram showing an example of a configuration of an address selector.

【図4】フラッシュROMのデータ書き替え時のメイン
フローチャート。
FIG. 4 is a main flowchart when rewriting data in a flash ROM.

【図5】ROMボードによりフラッシュROMのデータ
を書き替える際の具体的なフローチャート。
FIG. 5 is a specific flowchart for rewriting the data in the flash ROM by the ROM board.

【図6】バージョンアップ時のモニタ画面の表示例を示
した説明図。
FIG. 6 is an explanatory diagram showing a display example of a monitor screen at the time of version upgrade.

【図7】バージョンアップデータ作成モード時のフロー
チャート。
FIG. 7 is a flowchart in a version upgrade data creation mode.

【図8】バージョンアップデータをROMボードなどに
格納する際にヘッダ領域を設け、そのヘッダ領域に格納
されるIDコードなどを示した模式図。
FIG. 8 is a schematic diagram showing a header area provided when storing version-up data in a ROM board or the like and showing an ID code or the like stored in the header area.

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

10 本体基板 11 CPU 12 メモリ 13 コネクタ 14 フロッピーディスクドライブ 20 ROMボード 30 フロッピーディスク 10 Main Board 11 CPU 12 Memory 13 Connector 14 Floppy Disk Drive 20 ROM Board 30 Floppy Disk

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 CPUとともに本体基板に実装されてい
て、同CPUにてその読出し、書込みが管理されるメモ
リの先頭アドレスを含む特定領域に電気的に消去可能な
フラッシュROMが割り当てられ、同フラッシュROM
に書き込まれているブートプログラムおよび上記CPU
に対する制御プログラムを外部記憶手段に記憶されてい
るバージョンアップデータにより書き替えるにあたっ
て、上記フラッシュROMのアドレスを上記メモリ中の
未使用領域のアドレスに変更した後、上記特定領域に上
記外部記憶手段からバージョンアップデータを取り込
み、同バージョンアップデータにて上記フラッシュRO
M内のブートプログラムを含む制御プログラムを書き替
え、しかる後そのバージョンアップされた上記フラッシ
ュROMのアドレスを上記特定領域のアドレスに戻すこ
とを特徴とするROMの制御プログラム書替え方法。
1. A flash ROM, which is mounted on a main body board together with a CPU and whose reading and writing is managed by the CPU, is assigned to an electrically erasable flash ROM in a specific area including a start address of the memory. ROM
Program written in the CPU and the above CPU
In rewriting the control program for the version update data stored in the external storage means, after changing the address of the flash ROM to the address of an unused area in the memory, the update data from the external storage means is stored in the specific area. The flash RO with the same version update data.
A method of rewriting a control program of a ROM, characterized in that a control program including a boot program in M is rewritten, and then the upgraded address of the flash ROM is returned to the address of the specific area.
【請求項2】 上記外部記憶手段がEPROMなどのR
OMボードからなるとともに、上記本体基板にはそのR
OMボードの接続コネクタおよび上記メモリのアドレス
セレクタが設けられ、同アドレスセレクタは上記接続コ
ネクタからのROMボード接続信号を受けて、上記特定
領域内のフラッシュROMのアドレスを上記メモリ中の
未使用領域のアドレスに変更するとともに、上記特定領
域を上記ROMボードからのデータ書込み領域に指定
し、上記ROMボードが上記接続コネクタから外される
と、上記フラッシュROMのアドレスを上記特定領域の
アドレスに戻すことを特徴とする請求項1に記載のRO
Mの制御プログラム書替え方法。
2. The external storage means is an R such as an EPROM.
It consists of an OM board, and the main board has the R
A connection connector for the OM board and an address selector for the memory are provided, and the address selector receives the ROM board connection signal from the connection connector and transfers the address of the flash ROM in the specific area to the unused area in the memory. In addition to changing the address, the specific area is designated as a data writing area from the ROM board, and when the ROM board is removed from the connection connector, the address of the flash ROM is returned to the address of the specific area. RO according to claim 1, characterized in that
Rewriting method of M control program.
【請求項3】 上記外部記憶手段がフロッピーディスク
からなることを特徴とする請求項1に記載のROMの制
御プログラム書替え方法。
3. The method according to claim 1, wherein the external storage means is a floppy disk.
【請求項4】 上記外部記憶手段から上記特定領域にバ
ージョンアップデータを取り込んだ後、両者のチェック
サムが行なわれることを特徴とする請求項1に記載のR
OMの制御プログラム書替え方法。
4. The R according to claim 1, wherein after the version-up data is fetched from the external storage means to the specific area, a checksum of both is performed.
OM control program rewriting method.
【請求項5】 上記特定領域に取り込まれたバージョン
アップデータにて、上記フラッシュROMの内容を書き
替えた後、両者のチェックサムが行なわれることを特徴
とする請求項1に記載のROMの制御プログラム書替え
方法。
5. The control program for the ROM according to claim 1, wherein after the contents of the flash ROM are rewritten with the version-up data taken into the specific area, a checksum of both is performed. Rewriting method.
【請求項6】 上記フラッシュROMのバージョンをモ
ニタ画面に表示するにあたって、制御プログラムのシス
テムバージョン番号と、ブートプログラムのブートバー
ジョン番号とが個別的に分けて表示されることを特徴と
する請求項1に記載のROMの制御プログラム書替え方
法。
6. The system version number of the control program and the boot version number of the boot program are separately displayed when the version of the flash ROM is displayed on the monitor screen. A method for rewriting the control program of the ROM described in 1.
【請求項7】 上記フラッシュROMをバージョンアッ
プする際には、上記システムバージョンおよび上記ブー
トバージョンの各々について、現在の番号と新たな番号
とが併せて表示されることを特徴とする請求項6に記載
のROMの制御プログラム書替え方法。
7. The version number of the flash ROM is updated, and the current number and the new number are displayed together for each of the system version and the boot version. A method for rewriting the control program in the described ROM.
【請求項8】 上記外部記憶手段にバージョンアップデ
ータを記憶するにあたって、その記憶領域の一部にヘッ
ダ領域が設けられ、同ヘッダ領域に機種識別コード、チ
ェックサムデータおよびバージョン番号などの識別デー
タが書込まれることを特徴とする請求項1に記載のRO
Mの制御プログラム書替え方法。
8. When storing the upgrade data in the external storage means, a header area is provided in a part of the storage area, and identification data such as a model identification code, checksum data and version number is written in the header area. RO according to claim 1, characterized in that
Rewriting method of M control program.
【請求項9】 上記本体基板に書込み可能な外部記憶装
置を備え、上記CPUにて上記フラッシュROM内のプ
ログラム情報に基づいてバージョンアップデータを作成
し、そのバージョンアップデータを上記外部記憶装置を
介してフロッピーディスクなどの外部記憶媒体に書込み
可能としたことを特徴とする請求項1に記載のROMの
制御プログラム書替え方法。
9. An external storage device writable on the main body substrate is provided, version upgrade data is created by the CPU based on program information in the flash ROM, and the version upgrade data is stored in a floppy disk via the external storage device. The method for rewriting a control program in a ROM according to claim 1, wherein the method is writable to an external storage medium such as a disk.
JP16005795A 1995-06-02 1995-06-02 ROM control program rewriting method Pending JPH08328845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16005795A JPH08328845A (en) 1995-06-02 1995-06-02 ROM control program rewriting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16005795A JPH08328845A (en) 1995-06-02 1995-06-02 ROM control program rewriting method

Publications (1)

Publication Number Publication Date
JPH08328845A true JPH08328845A (en) 1996-12-13

Family

ID=15706980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16005795A Pending JPH08328845A (en) 1995-06-02 1995-06-02 ROM control program rewriting method

Country Status (1)

Country Link
JP (1) JPH08328845A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000000888A (en) * 1998-06-05 2000-01-15 윤종용 Memory program changing and reading method
JP2002222084A (en) * 2001-01-24 2002-08-09 Fujitsu Ltd Semiconductor storage device, sector address conversion circuit, address conversion method, and method of using semiconductor storage device
US6583889B1 (en) 1998-11-18 2003-06-24 Panasonic Communications Co., Ltd. Facsimile apparatus and program rewriting method
KR100408872B1 (en) * 2000-01-28 2003-12-11 엔이씨 일렉트로닉스 코포레이션 Method of rewriting program in flash microcomputer
KR100642529B1 (en) * 1997-09-30 2008-01-30 소니 가부시끼 가이샤 External storage apparatus and data processing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100642529B1 (en) * 1997-09-30 2008-01-30 소니 가부시끼 가이샤 External storage apparatus and data processing method
KR20000000888A (en) * 1998-06-05 2000-01-15 윤종용 Memory program changing and reading method
US6583889B1 (en) 1998-11-18 2003-06-24 Panasonic Communications Co., Ltd. Facsimile apparatus and program rewriting method
KR100408872B1 (en) * 2000-01-28 2003-12-11 엔이씨 일렉트로닉스 코포레이션 Method of rewriting program in flash microcomputer
JP2002222084A (en) * 2001-01-24 2002-08-09 Fujitsu Ltd Semiconductor storage device, sector address conversion circuit, address conversion method, and method of using semiconductor storage device

Similar Documents

Publication Publication Date Title
EP0977121B1 (en) Non-volatile memory, recording apparatus and recording method
JPH05327582A (en) Program memory rewrite system for portable telephone set
JP4315488B2 (en) Data storage device, data processing device, data processing system and data processing method
JPH1115705A (en) Memory management method, recording medium, and memory management device
WO2003056433A1 (en) Memory device and recording/reproducing apparatus using the same
JPH1173379A (en) Data management device, data management method, and storage medium
US6990554B2 (en) Data rewriting apparatus, control method, and recording medium
JP2002278783A (en) System for rewriting firmware
JPH08328845A (en) ROM control program rewriting method
JP2845839B2 (en) Radio selective call receiver
JP2002268711A (en) Programmable display unit and plotting program for the same and recording medium with its plotting program recorded
JP2738611B2 (en) Electronic equipment
JP4362777B2 (en) Programming device, symbol automatic registration method, program, and recording medium
EP4664264A1 (en) Gpt backup and recovery method, and related device
JPH10283172A (en) Flash rom data rewrite system
JP2812285B2 (en) Network interface card for printer
JP2000172917A (en) Controller for vending machine
JP2000062294A (en) Printing equipment
JP2001331328A (en) Information processing apparatus and information processing method
JPH1021068A (en) Electronics
JP2000148466A (en) Information processing apparatus and control program updating method in information processing apparatus
CN120447916A (en) Information burning method, system, device and storage medium
JPH0822404A (en) File management system
JPH08286948A (en) Software development support device and method
JP2002007179A (en) Information processing device, file system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040401

A131 Notification of reasons for refusal

Effective date: 20040428

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040908