JPH08212138A - Information processor - Google Patents

Information processor

Info

Publication number
JPH08212138A
JPH08212138A JP2075295A JP2075295A JPH08212138A JP H08212138 A JPH08212138 A JP H08212138A JP 2075295 A JP2075295 A JP 2075295A JP 2075295 A JP2075295 A JP 2075295A JP H08212138 A JPH08212138 A JP H08212138A
Authority
JP
Japan
Prior art keywords
program
rewriting
memory
area
stored
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
JP2075295A
Other languages
Japanese (ja)
Inventor
Hajime Yamazaki
一 山▲崎▼
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2075295A priority Critical patent/JPH08212138A/en
Publication of JPH08212138A publication Critical patent/JPH08212138A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To prevent a program to be remained from being destroyed when down loading a program, etc., from a host computer to a reloadable memory. CONSTITUTION: When executing version up of an image forming device, a host computer 8 reloads the program stored in a flash ROM 1 by down loading it and when reloading the contents of the flash ROM 1, a memory controller 2 performs control such as the applying of a reloading voltage based on a disable signal from a protection circuit 9. When the host computer 8 accesses a basic program stored in the flash ROM 1 by bug of a load program, the protection circuit 9 inhibits the applying of the reloading voltage due to the memory controller 2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばバージョンアッ
プを行うためにメモリのプログラムが書き換え可能な情
報処理装置に関し、特に複写機などの画像形成装置のバ
ージョンアップを行う場合に好適な情報処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus in which a program in a memory can be rewritten to upgrade, for example, an information processing apparatus particularly suitable for upgrading an image forming apparatus such as a copying machine. Regarding

【0002】[0002]

【従来の技術】一般に、メモリに記憶されたプログラム
を変更する場合、書き換え不能なROMそのものを交換
する方法と、書き換え可能なRAM等にダウンロードす
る方法が知られている。例えば図5において、アドレス
バス5、データバス6および制御線7に対してCPU
3、RAM4、ICソケット11を接続し、CPU3の
プログラムが格納されたROM12がICソケット11
に対して着脱自在に接続されている場合にはROM12
を新しいプログラムが格納されたものに交換することに
より、プログラムを変更することができる。
2. Description of the Related Art Generally, when a program stored in a memory is changed, a method of replacing a non-rewritable ROM itself and a method of downloading it to a rewritable RAM are known. For example, in FIG. 5, the CPU for the address bus 5, data bus 6 and control line 7
3, the RAM 4, the IC socket 11 are connected, and the ROM 12 storing the program of the CPU 3 is the IC socket 11
ROM12 if detachably connected to
The program can be changed by replacing the with a new program stored.

【0003】しかしながら、この方法では、プログラム
の一部、例えば基本プログラムはそのままにして他のプ
ログラムを選択的に書き換えることができない。例えば
複写機などの画像形成装置に適用して周辺機器のバージ
ョンアップを行う場合には基本プログラムはそのままに
して周辺機器用の制御プログラムのみを変更することが
できない。また、ROM12を交換するためにICソケ
ット11を必要とするので、当然、その分のコストが上
昇する。
However, according to this method, it is impossible to selectively rewrite a part of a program, for example, a basic program, while leaving another program unchanged. For example, when the peripheral device is upgraded by applying it to an image forming apparatus such as a copying machine, it is not possible to change the control program for the peripheral device without changing the basic program. Moreover, since the IC socket 11 is required to replace the ROM 12, the cost is naturally increased.

【0004】これに対し、図5においてROM12及び
ICソケット11の代わりに書き換え可能なメモリを用
い、このメモリに対してホストコンピュータ8からプロ
グラムをダウンロードすることにより、プログラムの一
部を選択的に書き換えるような方法もある。
On the other hand, in FIG. 5, a rewritable memory is used instead of the ROM 12 and the IC socket 11, and a part of the program is selectively rewritten by downloading the program from the host computer 8 to this memory. There is also such a method.

【0005】なお、書き換え可能なメモリを用いた方法
としては、特開平4−181427号公報、及び特開平
4−283837号公報など開示されている。前者の公
報では、主要動作実行用の処理プログラムを書き換え可
能な不揮発性メモリに格納すると共に、この不揮発性メ
モリ内の処理プログラムを更新するための更新処理プロ
グラムを読み出し専用メモリに格納し、外部インタフェ
ースを介して入力したプログラム書き換え命令に従って
読み出し専用メモリ内の更新処理プログラムを実行する
ことにより、不揮発性メモリ内の処理プログラムを更新
する方法が提案されている。
A method using a rewritable memory is disclosed in Japanese Patent Application Laid-Open Nos. 4-181427 and 4-283837. In the former publication, a processing program for executing a main operation is stored in a rewritable nonvolatile memory, and an update processing program for updating the processing program in this nonvolatile memory is stored in a read-only memory, and an external interface is used. There is proposed a method of updating the processing program in the non-volatile memory by executing the updating processing program in the read-only memory according to the program rewriting instruction input via.

【0006】また、後者の公報では、主要動作実行用の
処理プログラムを書き換え可能な不揮発性メモリに格納
すると共に、プログラムローダと更新プログラムが格納
された例えばメモリカードを接続することにより、メモ
リカードに格納された更新プログラムを不揮発性メモリ
に格納する方法が提案されている。
Further, in the latter publication, a processing program for executing a main operation is stored in a rewritable nonvolatile memory, and a program loader and a memory card storing an update program are connected to each other to connect the memory card to the memory card. A method of storing the stored update program in a non-volatile memory has been proposed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、書き換
え可能なメモリに対してダウンロードすることによりプ
ログラムの一部、例えば基本プログラムはそのままにし
て他のプログラムを選択的に書き換える場合、ロードプ
ログラムのエラー等により残すべきプログラムが破壊さ
れるという問題点がある。
However, when a part of a program, for example, the basic program remains unchanged and another program is selectively rewritten by downloading to a rewritable memory, an error or the like of the load program may occur. There is a problem that the program to be left is destroyed.

【0008】本発明は上記従来の問題点に鑑み、書き換
え可能なメモリに対してホストコンピュータからプログ
ラム等をダウンロードする場合に、残すべきプログラム
が破壊されることを防止することができる情報処理装置
を提供することを目的とする。
In view of the above conventional problems, the present invention provides an information processing apparatus capable of preventing a program to be left from being destroyed when the program or the like is downloaded from a host computer to a rewritable memory. The purpose is to provide.

【0009】[0009]

【課題を解決するための手段】第1の手段は上記目的を
達成するために、書き換えを禁止されるプログラムが格
納される第1の領域と書き換えを許可されるプログラム
が格納される第2の領域とを有する書き換え可能なメモ
リと、前記メモリの第2の領域に格納されたプログラム
を書き換えるメモリ書き換え手段と、前記メモリの書き
換え時に前記第1の領域に対するアクセスを検出した場
合に前記メモリ書き換え手段による書き換えを禁止する
書き換え禁止手段とを備えたことを特徴とする。
In order to achieve the above object, a first means is a second area in which a program in which rewriting is prohibited is stored and a second area in which rewriting is permitted is stored. A rewritable memory having an area, a memory rewriting means for rewriting a program stored in the second area of the memory, and the memory rewriting means when access to the first area is detected during rewriting of the memory And a rewrite prohibition unit that prohibits rewriting by the.

【0010】第2の手段は、第1の手段において前記書
き換え禁止手段による書き換え禁止を手動で解除する解
除手段を更に備えたことを特徴とする。
The second means is characterized by further comprising a releasing means for manually releasing the rewriting prohibition by the rewriting prohibiting means in the first means.

【0011】[0011]

【作用】第1の手段では、書き換えを禁止されるプログ
ラムが書き換え可能なメモリの第1の領域に格納され、
書き換えを許可されるプログラムが第2の領域に格納さ
れ、書き換え時に第1の領域に対するアクセスを検出し
た場合に書き換えが禁止される。したがって、書き換え
可能なメモリに対してホストコンピュータからプログラ
ム等をダウンロードする場合に、第1の領域に格納され
た残すべきプログラムが破壊されることを防止すること
ができる。
In the first means, the program whose rewriting is prohibited is stored in the first area of the rewritable memory,
The rewritable program is stored in the second area, and rewriting is prohibited when access to the first area is detected during rewriting. Therefore, when the program or the like is downloaded from the host computer to the rewritable memory, it is possible to prevent the program to be left stored in the first area from being destroyed.

【0012】第2の手段では、書き換え禁止を手動で解
除する解除手段を更に備えたので、メモリに格納された
プログラムを全て書き換えることができる。
In the second means, since the release means for manually releasing the rewrite prohibition is further provided, all the programs stored in the memory can be rewritten.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図1は本発明に係る情報処理装置の一実施例を示
すブロック図、図2は図1のフラッシュROMおよびR
AMのアドレスマップを示す説明図、図3は図1の保護
回路を詳細に示す回路図、図4は図3の保護回路の変形
例を示す回路図である。
Embodiments of the present invention will be described below with reference to the drawings. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention, and FIG. 2 is a flash ROM and R of FIG.
3 is an explanatory diagram showing an AM address map, FIG. 3 is a circuit diagram showing the protection circuit of FIG. 1 in detail, and FIG. 4 is a circuit diagram showing a modification of the protection circuit of FIG.

【0014】図1において、アドレス線A1〜A23よ
り成るアドレスバス5、データ線D0〜D7より成るデ
ータバス6および1線の制御線7に対して、CPU3
と、CPU3の作業エリアとして用いられるRAM4
と、CPU3のプログラムなどが格納されるフラッシュ
ROM(EEPROM)1と、保護回路9及びホストコ
ンピュータ8が接続されている。
In FIG. 1, for the address bus 5 formed of address lines A1 to A23, the data bus 6 formed of data lines D0 to D7, and the control line 7 of one line, the CPU 3 is provided.
And a RAM4 used as a work area for the CPU3
A flash ROM (EEPROM) 1 in which a program of the CPU 3 and the like are stored, a protection circuit 9 and a host computer 8 are connected.

【0015】この装置を画像形成装置に適用した場合、
CPU3はフラッシュROM1に格納されたプログラム
とRAM4の作業エリアを用いて画像形成装置を制御す
る。ホストコンピュータ8は画像形成装置をバージョン
アップする場合にフラッシュROM1に格納されたプロ
グラムをダウンロードにより書き換え、メモリコントロ
ーラ2はフラッシュROM1の内容の書き換え時に保護
回路9からのディスエーブル信号に基づいて書き換え電
圧を印加する等の制御を行う。保護回路9はホストコン
ピュータ8がロードプログラムのバグにより、フラッシ
ュROM1に格納された基本プログラムに対してアクセ
スした場合にメモリコントローラ2による書き換え電圧
の印加を禁止する。
When this apparatus is applied to an image forming apparatus,
The CPU 3 controls the image forming apparatus by using the program stored in the flash ROM 1 and the work area of the RAM 4. The host computer 8 rewrites the program stored in the flash ROM 1 by downloading when the image forming apparatus is upgraded, and the memory controller 2 sets the rewrite voltage based on the disable signal from the protection circuit 9 when rewriting the content of the flash ROM 1. Control such as application. The protection circuit 9 prohibits the application of the rewriting voltage by the memory controller 2 when the host computer 8 accesses the basic program stored in the flash ROM 1 due to a bug in the load program.

【0016】ここで、CPU3が例えばモトローラ社の
68000系のような場合、図2に示すようにCPU3
がフラッシュROM1及びRAM4に対してアクセス可
能な領域は「000000h」番地から「FFFFFF
h」番地までである。図2は一例として複写機などの画
像形成装置に適用した場合のフラッシュROM1及びR
AM4の領域を示し、フラッシュROM1の領域は「0
00000h」番地から「00FFFFh」番地までの
画像形成装置を動作させるための基本プログラム格納領
域と、「010000h」番地から「0FFFFFh」
番地までの周辺機器制御用のプログラム格納領域により
構成されている。また、図2に示す例では、「1000
00h」番地から「FFFFFFh」番地までがRAM
4やCPU3のI/O領域等により構成されている。
If the CPU 3 is, for example, a Motorola 68000 series CPU, then the CPU 3 as shown in FIG.
Can access the flash ROM1 and RAM4 from "000000h" to "FFFFFF"
up to the h "address. FIG. 2 shows, as an example, a flash ROM 1 and R when applied to an image forming apparatus such as a copying machine.
The area of AM4 is shown, and the area of the flash ROM1 is "0.
A basic program storage area for operating the image forming apparatus from the address "00000h" to the address "00FFFFh" and the address "0FFFFFh" from the address "010000h"
It is composed of a program storage area for controlling peripheral devices up to the address. Further, in the example shown in FIG.
RAM from "00h" to "FFFFFFh"
4 and the I / O area of the CPU 3 and the like.

【0017】このような構成において、ホストコンピュ
ータ8からフラッシュROM1の基本プログラム格納領
域以外の内容を書き換える場合、指定アドレスをアドレ
ス線A1〜A23上に送出すると共に書き換えデータを
データバス6上に送出することにより指定番地のプログ
ラムやデータを書き換えることができる。
In such a configuration, when the host computer 8 rewrites the contents of the flash ROM 1 other than the basic program storage area, the designated address is sent to the address lines A1 to A23 and the rewrite data is sent to the data bus 6. By doing so, the program and data at the specified address can be rewritten.

【0018】この場合、アドレスバス5の上位のアドレ
ス線A16〜A23上の値は、「000000h」番地
から「00FFFFh」番地までの基本プログラム格納
領域をアクセスするときには全て「0」となり、他の
「010000h」番地から「FFFFFFh」番地ま
でをアクセスするときにはいずれかが「1」となる。
In this case, the values on the upper address lines A16 to A23 of the address bus 5 are all "0" when accessing the basic program storage area from the address "000000h" to the address "00FFFFh", and other " When accessing from the address "010000h" to the address "FFFFFFh", any one becomes "1".

【0019】そこで、保護回路9は図3に示すようなO
R回路で構成され、アドレスバス5のアドレス線A16
〜A23のいずれかが「1」の場合にメモリコントロー
ラ2による書き換え電圧の印加を許可する。すなわち、
ホストコンピュータ8のロードプログラムのバグによ
り、アクセスすべきでない基本プログラム格納領域をア
クセスした場合には、アドレス線A16〜A23の全て
が「0」になるので、保護回路9がメモリコントローラ
2による書き換え電圧の印加を禁止し、したがって、基
本プログラムが破壊されることを防止することができ
る。
Therefore, the protection circuit 9 has an O level as shown in FIG.
Address line A16 of address bus 5
When any of A23 to A23 is "1", the application of the rewriting voltage by the memory controller 2 is permitted. That is,
When a basic program storage area that should not be accessed is accessed due to a bug in the load program of the host computer 8, all of the address lines A16 to A23 become "0", so the protection circuit 9 causes the memory controller 2 to rewrite the voltage. Can be prohibited, thus preventing the basic program from being destroyed.

【0020】なお、画像形成装置に適用した場合、周辺
機器のパラメータとして線速、クラッチのオン/オフタ
イミングデータをバージョンアップする場合にこのサブ
ルーチンを周辺プログラム領域に格納することにより、
画像形成装置を効率的にバージョンアップすることがで
きる。
When applied to the image forming apparatus, this subroutine is stored in the peripheral program area when the linear speed and the clutch on / off timing data are upgraded as the parameters of the peripheral equipment.
The image forming apparatus can be efficiently upgraded.

【0021】ここで、図3に示す構成の保護回路9で
は、基本プログラムの書き換えを含むバージョンアップ
を行う場合には、基本プログラムを書き換えることがで
きない。そこで、図4に示すように保護回路9とメモリ
コントローラ2の間にDIPスイッチ13とプルアップ
抵抗14を追加することにより基本プログラムを書き換
えることができる。
In the protection circuit 9 having the configuration shown in FIG. 3, the basic program cannot be rewritten when the version upgrade including the rewriting of the basic program is performed. Therefore, as shown in FIG. 4, the basic program can be rewritten by adding the DIP switch 13 and the pull-up resistor 14 between the protection circuit 9 and the memory controller 2.

【0022】すなわち、図4において、DIPスイッチ
13は通常オン状態に設定され、図3に示す動作と同一
となる。これに対し、基本プログラムの書き換え時にD
IPスイッチ13がオフ側に操作されると、メモリコン
トローラ2に対する制御信号はプルアップ抵抗14によ
り常にハイ状態になり、書き換え電圧の印加が許可され
る。したがって、図4に示すような回路を設けることに
より、基本プログラム以外の書き換えと基本プログラム
を含む書き換えを選択的に行うことができる。なお、D
IPスイッチ13はユーザが簡単に操作できないような
位置に配置することが望ましい。
That is, in FIG. 4, the DIP switch 13 is normally set to the ON state, and the operation is the same as that shown in FIG. On the other hand, when rewriting the basic program, D
When the IP switch 13 is operated to the off side, the control signal to the memory controller 2 is always in the high state by the pull-up resistor 14, and the application of the rewriting voltage is permitted. Therefore, by providing a circuit as shown in FIG. 4, rewriting other than the basic program and rewriting including the basic program can be selectively performed. Note that D
It is desirable to arrange the IP switch 13 at a position where the user cannot easily operate it.

【0023】[0023]

【発明の効果】以上説明したように請求項1記載の発明
は、書き換えを禁止されるプログラムがメモリの第1の
領域に格納され、書き換えを許可されるプログラムが第
2の領域に格納され、書き換え時に第1の領域に対する
アクセスを検出した場合に書き換えが禁止されるので、
書き換え可能なメモリに対してホストコンピュータから
プログラム等をダウンロードする場合に、第1の領域に
格納された残すべきプログラムが破壊されることを防止
することができる。
As described above, according to the first aspect of the invention, the program whose rewriting is prohibited is stored in the first area of the memory, and the program whose rewriting is permitted is stored in the second area. Since rewriting is prohibited when access to the first area is detected during rewriting,
When a program or the like is downloaded from the host computer to the rewritable memory, it is possible to prevent the program to be left stored in the first area from being destroyed.

【0024】請求項2記載の発明は、書き換え禁止を手
動で解除する解除手段を更に備えたので、メモリに格納
されたプログラムを全て書き換えることができる。
According to the second aspect of the present invention, further provided is a releasing means for manually releasing the rewriting prohibition, so that all the programs stored in the memory can be rewritten.

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

【図1】本発明に係る情報処理装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention.

【図2】図1のフラッシュROMおよびRAMのアドレ
スマップを示す説明図である。
FIG. 2 is an explanatory diagram showing an address map of a flash ROM and a RAM of FIG.

【図3】図1の保護回路を詳細に示す回路図である。FIG. 3 is a circuit diagram showing the protection circuit of FIG. 1 in detail.

【図4】図3の保護回路の変形例を示す回路図である。FIG. 4 is a circuit diagram showing a modified example of the protection circuit of FIG.

【図5】従来の情報処理装置の一実施例を示すブロック
図である。
FIG. 5 is a block diagram showing an embodiment of a conventional information processing apparatus.

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

1 フラッシュROM 2 メモリコントローラ 8 ホストコンピュータ 9 保護回路 13 DIPスイッチ 14 プルアップ抵抗 1 Flash ROM 2 Memory controller 8 Host computer 9 Protection circuit 13 DIP switch 14 Pull-up resistor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 書き換えを禁止されるプログラムが格納
される第1の領域と書き換えを許可されるプログラムが
格納される第2の領域とを有する書き換え可能なメモリ
と、 前記メモリの第2の領域に格納されたプログラムを書き
換えるメモリ書き換え手段と、 前記メモリの書き換え時に前記第1の領域に対するアク
セスを検出した場合に前記メモリ書き換え手段による書
き換えを禁止する書き換え禁止手段と、を備えた情報処
理装置。
1. A rewritable memory having a first area for storing a program for which rewriting is prohibited and a second area for storing a program for which rewriting is permitted, and a second area of the memory. An information processing apparatus comprising: a memory rewriting unit that rewrites a program stored in the memory; and a rewriting prohibiting unit that prohibits rewriting by the memory rewriting unit when an access to the first area is detected when rewriting the memory.
【請求項2】 前記書き換え禁止手段による書き換え禁
止を手動で解除する解除手段を更に備えたことを特徴と
する請求項1記載の情報処理装置。
2. The information processing apparatus according to claim 1, further comprising a releasing unit that manually releases the rewriting prohibition by the rewriting prohibition unit.
JP2075295A 1995-02-08 1995-02-08 Information processor Pending JPH08212138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2075295A JPH08212138A (en) 1995-02-08 1995-02-08 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2075295A JPH08212138A (en) 1995-02-08 1995-02-08 Information processor

Publications (1)

Publication Number Publication Date
JPH08212138A true JPH08212138A (en) 1996-08-20

Family

ID=12035928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2075295A Pending JPH08212138A (en) 1995-02-08 1995-02-08 Information processor

Country Status (1)

Country Link
JP (1) JPH08212138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006178867A (en) * 2004-12-24 2006-07-06 Nec Saitama Ltd Cpu system using flash memory, flash memory protection circuit and its flash memory protection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006178867A (en) * 2004-12-24 2006-07-06 Nec Saitama Ltd Cpu system using flash memory, flash memory protection circuit and its flash memory protection method

Similar Documents

Publication Publication Date Title
US6148441A (en) Method for reprogramming flash ROM in a personal computer implementing an EISA bus system
US8156280B2 (en) Data protection for non-volatile semiconductor memory using block protection
KR100415371B1 (en) Computer
JPH07117920B2 (en) Method and apparatus for updating firmware resident in electrically erasable programmable read-only memory
US5933595A (en) Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory
KR100223844B1 (en) Option circuit
KR100310486B1 (en) Microcumputer
JP3805195B2 (en) Program rewriting apparatus and program rewriting method
JPH08212138A (en) Information processor
JP3918434B2 (en) Information processing device
JPH06314202A (en) Image-forming device
JPH08305561A (en) Method and device for down-loading firmware
JPH11282690A (en) Method for writing control program, information processor and information processing system
JP2001344156A (en) Device with flash memory and data rewriting method
JP2004287712A (en) Electronic device
JP2002073360A (en) Start information rewrite device
JP3730684B2 (en) Display device for programmable controller and display information writing method thereof
JPH11167525A (en) Nonvolatile-memory mixedly mounted microcomputer and nonvolatile memory rewriting method thereof, and recording medium where nonvolatile memory rewriting program of nonvolatile-memory mixedly mounted microcomputer is recorded
JPH1040094A (en) Program controller for firmware
JPH05143315A (en) Version up method for firmware
JP2002268891A (en) Device controller
CN117130545A (en) Method for managing areas of sensitive data in flash memory
JP2003167609A (en) Programmable controller, user program update method therefor, recording medium, and program
JPH05233892A (en) Write controller for ic card
JPH0477903A (en) Programmable sequence controller