JP2012022432A - Embedded control device, developing method for embedded control device, and embedded control program - Google Patents
Embedded control device, developing method for embedded control device, and embedded control program Download PDFInfo
- Publication number
- JP2012022432A JP2012022432A JP2010158597A JP2010158597A JP2012022432A JP 2012022432 A JP2012022432 A JP 2012022432A JP 2010158597 A JP2010158597 A JP 2010158597A JP 2010158597 A JP2010158597 A JP 2010158597A JP 2012022432 A JP2012022432 A JP 2012022432A
- Authority
- JP
- Japan
- Prior art keywords
- value data
- fixed value
- memory
- read
- program
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、電子機器を制御する組込制御装置に関するものである。 The present invention relates to an embedded control device that controls an electronic device.
組込制御装置の制御動作を記述した制御プログラムは、不揮発性記憶装置に格納されている。また、制御プログラム内で用いられる閾値などの固定値データも、制御プログラムとは別の記憶領域などに格納されている。これらプログラムおよび固定値データは、組込制御装置を市場に出荷した以降は変更しないのが通常であると考えられるため、例えばROM(Read Only Memory)のような読取専用メモリに格納されている場合がある。 A control program describing the control operation of the embedded control device is stored in the nonvolatile storage device. Further, fixed value data such as a threshold value used in the control program is also stored in a storage area separate from the control program. Since these programs and fixed value data are considered to normally not change after the embedded controller is shipped to the market, it is stored in a read-only memory such as a ROM (Read Only Memory). There is.
組込制御装置を開発する過程において、制御プログラム自体とは別に、制御対象である電子機器の特性に合わせて、上記固定値データを調整する必要が生じる場合がある。このとき、固定値データが読取専用メモリに格納されていると、固定値データを定義するソースファイルを修正し、固定値データを格納している記憶領域を全て書き換え直す過程を最初から改めて実施しなければならない。読取専用メモリに格納されているデータは、ファイル単位のような個別書換ができず、ある程度の範囲をまとめて一括書換しなければならないからである。そのため、単に固定値データを修正すれば済む作業であっても、相応の手間がかかり、迅速な開発作業の妨げとなる。 In the process of developing the embedded control device, it may be necessary to adjust the fixed value data in accordance with the characteristics of the electronic device to be controlled separately from the control program itself. At this time, if the fixed value data is stored in the read-only memory, the process of correcting the source file defining the fixed value data and rewriting all the storage areas storing the fixed value data is performed from the beginning. There must be. This is because the data stored in the read-only memory cannot be individually rewritten as in units of files, and must be rewritten in a batch to a certain extent. Therefore, even if it is an operation that only requires correction of fixed value data, it takes a considerable amount of time and hinders a rapid development operation.
上記課題を解決する手法として、ROMエミュレートというものがある。これは、ROM内の固定値データをRAM(Random Access Memory)上に展開し、RAM上で固定値データを修正できるようにしたものである。RAM上に固定値データが展開されているので、値を随時変更しながら、最適な値を探索することができ、ROMに逐一書き込みしなくて済むので、開発効率を向上させることが期待される。 As a technique for solving the above problem, there is a ROM emulation. In this method, fixed value data in the ROM is developed on a RAM (Random Access Memory) so that the fixed value data can be corrected on the RAM. Since fixed value data is developed on the RAM, it is possible to search for an optimum value while changing the value as needed, and it is not necessary to write to the ROM one by one, so that it is expected to improve development efficiency. .
下記特許文献1では、ROMエミュレーションに係る1手法が記載されている。同文献では、マイクロコンピュータがROMエミュレーション機能を備えており、エミュレートするROM上のアドレスをRAM上のアドレスに自動置換することができる。 Japanese Patent Application Laid-Open No. 2004-228561 describes one method related to ROM emulation. In this document, the microcomputer has a ROM emulation function, and the address on the ROM to be emulated can be automatically replaced with the address on the RAM.
下記特許文献2では、タスクテーブルを用いる手法が記載されている。同文献では、変更した定数値データを、不揮発性のRAM領域に配置し、新たに配置した不揮発性のRAM領域を参照するようにタスクテーブルを変更する。これにより、定数値データを書き換えたのと同様の効果を得ることができる。
In the following
上記特許文献1に記載されている技術では、マイクロコンピュータがROM上のアドレスをRAM上のアドレスに置換するROMエミュレーション機能を備える必要があり、一般的なマイクロコンピュータとは異なる構成が必要となる。
In the technique described in
上記特許文献2に記載されている技術では、タスクテーブルを用いて参照順序を管理するソフトウェア構造を設ける必要がある。また、不揮発性RAM領域を備えたマイクロコンピュータを採用する必要がある。したがって特許文献1と同様に、一般的な組込制御プログラムおよびマイクロコンピュータとは異なる構成が必要となる。
In the technique described in
本発明は、上記のような課題を解決するためになされたものであり、一般的な構成を有する演算装置を用いて、読取専用メモリ内に格納されている固定値データを容易に調整することのできる組込制御装置を得ることを目的とする。 The present invention has been made to solve the above-described problems, and easily adjusts fixed value data stored in a read-only memory using an arithmetic device having a general configuration. It is an object to obtain an embedded control device capable of performing the above.
本発明に係る組込制御装置は、読取専用メモリに格納されている固定値データを読み出して読書両用メモリに展開し、読書両用メモリ上の固定値データを参照して制御動作を実行する。 The embedded control device according to the present invention reads fixed value data stored in a read-only memory, develops it in a reading memory, and executes a control operation with reference to the fixed value data in the reading memory.
本発明に係る組込制御装置は、読書両用メモリ上の固定値データを参照して制御動作を実行するので、固定値データを調整するために読取専用メモリへ値を逐一書き込み直す必要はない。これにより、固定値データを調整する作業負担を軽減することができる。また各メモリおよび演算装置は、上述の特許文献1〜2のような特殊機能を備える必要がないので、一般的なマイクロコンピュータを用いて上記機能を実現することができる。
The embedded control device according to the present invention executes the control operation with reference to the fixed value data in the reading / reading memory, so that it is not necessary to rewrite values to the read-only memory in order to adjust the fixed value data. Thereby, the work burden of adjusting the fixed value data can be reduced. Further, each memory and the arithmetic unit do not need to have special functions as in the above-mentioned
<実施の形態1>
図1は、本発明の実施の形態1に係る組込制御装置100の機能ブロック図である。組込制御装置100は、例えば車両の電子制御系統などの電子機器を制御する装置であり、マイクロコンピュータ110、RAM120、ROM130を備える。図1では、マイクロコンピュータ110の内部にRAM120とROM130を内蔵するように記載したが、これに限られるものではなく、例えばそれぞれ個別に構成することもできる。
<
FIG. 1 is a functional block diagram of the embedded
マイクロコンピュータ110は、後述する制御プログラム132を実行することにより制御対象を制御する演算装置である。RAM120は、制御プログラム132が動作する過程で必要となるデータなどを一時的に格納する、読書両用の揮発性メモリである。ROM130は、固定値データ131と制御プログラム132を記憶する、読取専用の不揮発性メモリである。
The
固定値データ131は、例えば閾値データなど、制御プログラム132が動作する上で必要となる固定的な値を保持するデータである。組込制御装置100を市場に出荷する時点で固定値データ131の値は確定済みであり、通常は以後変更されないので、読取専用メモリであるROM130内に格納されている。
The
制御プログラム132は、組込制御装置100が実行する制御動作を記述したソフトウェアプログラムである。制御プログラム132は、制御動作の過程で固定値データ131を参照するように記述されている。ただし、参照先アドレスについて、後述の図2で説明する工夫が施されている。
The
以下では、説明の便宜上、制御プログラム132などの各プログラムを動作主体として記載する場合があるが、実際に各プログラムを実行するのはマイクロコンピュータ110などの演算装置であることを付言しておく。
In the following, for convenience of explanation, each program such as the
図2は、組込制御装置100が稼動しているときの各メモリの様子を示す図である。組込制御装置100の電源がONになると、マイクロコンピュータ110は制御プログラム132を読み出し、これを実行する。制御プログラム132は、ROM130上に格納されている固定値データ131を読み出し、RAM120上に固定値データ121として展開(値をコピーして書き込む)する。以後制御プログラム132は、RAM120上の固定値データ121を参照して制御動作を実行する。
FIG. 2 is a diagram illustrating a state of each memory when the embedded
なお、上記説明では、制御プログラム132が固定値データ131を読み出してRAM120上に展開することとしたが、マイクロコンピュータ110を初期化する処理を実施する初期化プログラムを別途設け、同初期化プログラムが同様の処理を実施するように構成することもできる。以下の実施形態でも同様である。
In the above description, the
図3は、制御プログラム132が動作開始する際の初期処理を説明するフローチャートである。以下、図3の各ステップについて説明する。
(図3:ステップS300〜S301)
組込制御装置100の電源がONになると、本動作フローが開始される。組込制御装置100は、マイクロコンピュータ110をリセットして初期化する。
FIG. 3 is a flowchart for explaining an initial process when the
(FIG. 3: Steps S300 to S301)
When the power supply of the embedded
(図3:ステップS302〜S303)
組込制御装置100は、制御プログラム132が動作するために必要なレジスタ(図示せず)を設定する。また、RAM120の全記憶領域を初期化する。
(図3:ステップS304)
マイクロコンピュータ110は、制御プログラム132を実行する。制御プログラム132は、RAM120上に固定値データ121を書き込むべき先頭アドレスおよび終端アドレスを取得する。
(FIG. 3: Steps S302 to S303)
The embedded
(FIG. 3: Step S304)
The
(図3:ステップS305)
制御プログラム132は、ROM130から固定値データ131を読み込む先頭アドレスを取得する。
(図3:ステップS304〜S305:補足)
ステップS304〜S305で取得する先頭アドレス値および終端アドレス値は、例えば制御プログラム132の一部として組み込んでおいてもよいし、ROM130上の適当な記憶領域上に固定的に記憶させておいてもよい。
(FIG. 3: Step S305)
The
(FIG. 3: Steps S304 to S305: Supplement)
The start address value and the end address value acquired in steps S304 to S305 may be incorporated as part of the
(図3:ステップS306)
制御プログラム132は、ステップS305(または後述するステップS308)で得たアドレスにアクセスし、ROM130が格納している固定値データ131を順に読み込む。次に制御プログラム132は、ステップS304(または後述するステップS309)で得たアドレスにアクセスし、ROM130から読み込んだ固定値データ131を、固定値データ121としてRAM120に書き込む。
(図3:ステップS306:補足)
本ステップにおいて、必ずしも固定値データ131全体を一度にRAM120へ書き込む必要はなく、複数回に分けて書き込んでもよい。この場合、ステップS306〜S309を複数回繰り返すことになる。
(FIG. 3: Step S306)
The
(FIG. 3: Step S306: Supplement)
In this step, it is not always necessary to write the entire fixed
(図3:ステップS307)
制御プログラム132は、固定値データ121をRAM120に書き込む先のアドレスが、ステップS304で取得した終端アドレスに達したか否かを判定する。終端アドレスに達していれば本動作フローを終了し、以後は制御動作を実行する。終端アドレスに達していなければ、ステップS308へ進む。
(図3:ステップS308〜S309)
制御プログラム132は、ROM130から固定値データ131を読み込む読込元アドレスを、規定量だけ増やす。また制御プログラム132は、RAM120に固定値データ121を書き込む書込先アドレスを、規定量だけ増やす。各アドレスをインクリメントした後は、ステップS306に戻って同様の処理を繰り返す。
(FIG. 3: Step S307)
The
(FIG. 3: Steps S308 to S309)
The
以上、制御プログラム132が動作開始する際の初期処理を説明した。初期処理が完了すると、制御プログラム132は、ROM130上の固定値データ131に代えて、RAM120上の固定値データ121を参照しながら制御動作を実施する。
The initial process when the
<実施の形態1:まとめ>
以上のように、本実施形態1に係る組込制御装置100は、ROM130が格納している固定値データ131をRAM120上に固定値データ121として展開し、固定値データ121を参照しながら制御動作を実施する。これにより、RAM120上で固定値データ121を変更しながら制御プログラム132を実行することができるので、固定値データ131の値を調整する毎にROM130を書き換える必要がなくなり、開発作業の負担を大幅に削減することができる。
<Embodiment 1: Summary>
As described above, the embedded
なお本実施形態1において、RAM120上の固定値データ121を変更したい場合は、制御プログラム132とは別のRAM書換プログラムなどを介してマイコン110およびRAM120に接続し、固定値データ121を所望の値に書き換えることができる。このRAM書換プログラムは、例えば組込制御装置100の外部の開発作業用コンピュータ上で実行することができる。
In the first embodiment, when the fixed
ROM130を書き換える場合はROM130の動作を完全に終了させておかなければならないが、RAM120内のデータを書き換える際にはRAM120が動作中であってもよい。すなわち、制御プログラム132を実行している途中であっても、固定値データ121を任意の値に書き換えることができるので、この観点でも本発明に係る手法は有利である。
When the
<実施の形態2>
本発明の実施形態2では、実施形態1で説明した組込制御装置100を開発する過程について説明する。実施形態1で既に説明した事項については、適宜説明を省略する。
(開発工程1:固定値データを展開する処理)
制御プログラム132は、制御動作を開始する前に、実施形態1の図3で説明した初期動作を実行して固定値データ131をRAM120上に展開する必要がある。開発者は、組込制御装置100を開発する際に、制御プログラム132の機能の一部として図3の動作フローを開発する必要がある。
<
In the second embodiment of the present invention, a process of developing the embedded
(Development process 1: Processing to expand fixed value data)
The
(開発工程2:展開した固定値データを用いた制御動作)
開発者は、固定値データ131を用いて制御動作を実施するように、制御処理を開発する。具体的には、制御プログラム132内で参照する固定値データを、組込制御プログラムの開発支援ツール上で制御プログラム132に対応付けるなどの作業を実施する。一般的には、本工程において、開発支援ツールはROM130上における固定値データ131の格納先アドレスを記述したアドレステーブルデータを生成する。
(開発工程2:展開した固定値データを用いた制御動作:補足)
組込制御プログラムの開発支援ツールは、制御プログラム132が格納されるROM130上に固定値データが配置されることを想定していると思われる。そのため、本工程で生成される上記アドレステーブルデータには、ROM130上の格納先アドレスが記述されることになる。制御プログラム132は、このアドレステーブルデータに記述されているアドレスから固定値データを読み取ることになる。
(Development process 2: Control action using expanded fixed value data)
The developer develops a control process so that the control operation is performed using the fixed
(Development process 2: Control action using expanded fixed value data: supplement)
The built-in control program development support tool seems to assume that fixed value data is arranged on the
(開発工程3:アドレステーブルを書き換える)
開発工程2で生成されたアドレステーブルは、ROM130上のアドレスを記述している。このアドレスは、固定値データ131を読み出してRAM120に書き込むときに必要になるが、一方で制御プログラム132が制御動作を実施するときには、RAM120上のアドレスを指定する必要がある。そこで、図3の動作フローを実施するために用いるアドレステーブルをそのまま残す一方で、ROM130上の固定値データ131を指すアドレスを記述したアドレステーブルを、RAM120上の固定値データ121を指すアドレスに書き換える必要がある。
(開発工程4:ROM130に書き込む)
開発者は、以上の工程で開発した制御プログラム132、固定値データ131、およびアドレステーブルを、ROM130に書き込む。
(Development process 3: Rewrite the address table)
The address table generated in the
(Development process 4: Write to ROM 130)
The developer writes the
(開発工程5:固定値データ121を調整する)
開発者は、組込制御装置100の外部の開発作業用コンピュータ上でRAM書換プログラムを実行し、RAM120上に展開されている固定値データ121を書き換えながら、制御プログラム132をマイクロコンピュータ110に実行させる。開発者はこの作業を繰り返しながら、制御対象に最も適した固定値データ121の値を探索する。
(開発工程6:ROM130に書き込む)
開発者は、調整後の固定値データ121の値を、ROM130に改めて書き込む。以上の工程により、組込制御装置100の開発が完了する。
(Development process 5: Adjust fixed value data 121)
The developer executes the RAM rewriting program on the development work computer outside the embedded
(Development process 6: Write to ROM 130)
The developer writes the adjusted fixed
<実施の形態2:まとめ>
以上、本実施形態2では、組込制御装置100を開発する工程を説明した。開発工程5において、開発者はRAM120上で固定値データ121を修正することができるので、固定値データを修正する毎に開発工程4または6を実施する必要がない。これにより、開発作業の効率を向上させることができる。
<Embodiment 2: Summary>
As described above, in the second embodiment, the process of developing the embedded
<実施の形態3>
本発明の実施形態3では、実施形態1〜2で説明した手法をさらに発展させ、RAM120上で修正した固定値データ121を自動的にROM130上へ反映する手法を説明する。自動反映に係る構成以外については、実施形態1〜2と同様である。
<
In the third embodiment of the present invention, a method of further developing the method described in the first and second embodiments and automatically reflecting the fixed
図4は、本実施形態3に係る組込制御装置100の機能ブロック図である。本実施形態3では、実施形態1〜2で説明した構成に加え、ROM130は新たに終了処理プログラム134と固定値データ更新プログラム133を格納している。その他の構成は、実施形態1〜2と同様である。
FIG. 4 is a functional block diagram of the embedded
終了処理プログラム134は、マイクロコンピュータ110を動作終了させるときに実施すべき終了処理を記述したプログラムである。マイクロコンピュータ110は、電源をOFFすべき旨の指示を受け取ると、終了処理プログラム134を実行するように構成されている。
The
固定値データ133は、RAM120上に展開されている固定値データ121を、ROM130に書き戻す処理を記述したプログラムである。詳細は後述の図5〜図7で改めて説明する。
The fixed value data 133 is a program describing a process for writing back the fixed
図5は、組込制御装置100が稼動しているときの各メモリの様子を示す図である。組込制御装置100の電源がONになると、マイクロコンピュータ110は制御プログラム132を読み出し、これを実行する。制御プログラム132は、実施形態1の図2と同様に、固定値データ131をRAM120上に展開する。
FIG. 5 is a diagram illustrating a state of each memory when the embedded
図6は、マイクロコンピュータ110が電源OFF指示を受け取ったときの各メモリの様子を示す図である。マイクロコンピュータ110は、電源をOFFすべき旨の指示を受け取ると、ROM130に格納されている終了処理プログラム134を実行する。終了処理プログラム134は、同じくROM130上に格納されている固定値データ更新プログラム133を、RAM120上にコピーする。便宜上、RAM120上にコピーされた固定値データ更新プログラムを、符号123で参照する。終了処理プログラム134は、その他の終了処理を適宜実行する。
FIG. 6 is a diagram showing the state of each memory when the
図7は、終了処理プログラム134の動作が終了した後の各メモリの様子を示す図である。終了処理プログラム134は、終了処理を終了する際に、RAM120上に格納されている固定値データ更新プログラム123を起動する。
FIG. 7 is a diagram illustrating the state of each memory after the operation of the
固定値データ更新プログラム123は、ROM130の動作を完全に終了させた後、RAM120上の固定値データ121を、ROM130上の固定値データ131として書き戻す。これにより、RAM120上で修正された固定値データ121の値を、ROM130上の固定値データ131に反映することができる。
The fixed value data update program 123 completes the operation of the
なお、固定値データ更新プログラム123が固定値データ121を書き戻す前にROM130を先に動作終了させるのは、ROM130が動作していると、データを書き込むことができないからである。
The reason why the
本実施形態3において、終了処理プログラム134と固定値データ更新プログラム133は、制御プログラム132とは別のプログラムとして説明したが、これら各プログラムのうちいずれか2以上を、一体的に構成することもできる。
In the third embodiment, the
<実施の形態3:まとめ>
以上のように、本実施形態3に係る組込制御装置100によれば、マイクロコンピュータ110が終了するときに、RAM120上の固定値データ更新プログラム123によって固定値データ121がROM130に自動的に書き戻される。これにより、RAM120上で修正した固定値データ121をROM130に書き込み直す作業を省略することができるので、開発作業をさらに効率化することができる。
<Embodiment 3: Summary>
As described above, according to the embedded
また、本実施形態3によれば、固定値データ121をROM130に書き戻す処理は自動的に実施されるので、誤った値をROM130に書き込むなどのミスを起こす可能性が少なくなり、結果として組込制御装置100の品質・性能を向上させることができる。
Further, according to the third embodiment, the process of writing the fixed
なお、本実施形態3で説明した構成を採用する場合、組込制御装置100を開発する工程において、終了処理プログラム134と固定値データ更新プログラム133を開発する工程が新たに増える。ただし、この開発工程は1度のみでよい。反面、実施形態2で説明した開発工程6を省略することができる。開発工程6は、新たな制御対象向けに固定値データ131を調整する度に発生するので、これを省略できる効果は大きいと思われる。
When the configuration described in the third embodiment is adopted, in the process of developing the embedded
<実施の形態4>
以上の実施形態1〜3では、開発工程の効率を考慮し、制御プログラム132はRAM120上の固定値データ121を参照して制御動作を実施するように構成した。しかし、固定値データ131を調整し終えた後は、あえて固定値データ121を用いる必要もなくなる。
<
In the above first to third embodiments, the
そこで、組込制御装置100を市場に出荷する時点では、固定値データ131をRAM120に展開する処理を削除し、制御プログラム132が固定値データ131を参照して制御動作を実施するように、改めて制御プログラム132を構成し直してもよい。
Therefore, when the embedded
100:組込制御装置、110:マイクロコンピュータ、120:RAM、130:ROM、131:固定値データ、132:制御プログラム、133:固定値データ更新プログラム、134:終了処理プログラム。 100: Embedded control device, 110: Microcomputer, 120: RAM, 130: ROM, 131: Fixed value data, 132: Control program, 133: Fixed value data update program, 134: End processing program.
Claims (8)
前記電子機器を制御する動作を記述した制御プログラムと、
前記制御プログラムおよび前記制御プログラム内で用いられる固定値データを読み取り専用で記憶する読取専用メモリと、
データを読み書き両用で記憶する読書メモリと、
前記制御プログラムを実行して前記電子機器を制御する演算部と、
を備え、
前記制御プログラムは、
前記固定値データを前記読取専用メモリから読み出して前記読書メモリに展開する処理と、
前記読書メモリに展開された前記固定値データを用いて前記動作を実行する処理と、
を記述しており、
前記演算部は、
前記制御プログラムの記述にしたがって前記固定値データを前記読取専用メモリから読み出して前記読書メモリに展開し、その固定値データを用いて前記動作を実行する
ことを特徴とする組込制御装置。 An embedded control device for controlling an electronic device,
A control program describing an operation for controlling the electronic device;
A read-only memory that stores the control program and fixed value data used in the control program in a read-only manner;
Reading memory that stores data for both reading and writing;
An arithmetic unit that executes the control program to control the electronic device;
With
The control program is
A process of reading the fixed value data from the read-only memory and expanding it into the reading memory;
Processing to execute the operation using the fixed value data developed in the reading memory;
Is described,
The computing unit is
The embedded control apparatus, wherein the fixed value data is read from the read-only memory according to a description of the control program, developed in the reading memory, and the operation is executed using the fixed value data.
前記演算部を動作終了させるときに実行すべき終了処理を記述した終了処理プログラムと、
前記読書メモリ上に展開されている前記固定値データを前記読取専用メモリに書き込む処理を記述した固定値データ更新プログラムと、
を記憶しており、
前記終了処理プログラムはさらに、
前記固定値データ更新プログラムを前記読書メモリに複製する処理、前記読取専用メモリを動作終了させる処理、および前記固定値データ更新プログラムを起動する処理を記述しており、
前記演算部は、
前記演算部を動作終了させるべき旨の信号を受け取ると、
前記終了処理プログラムを実行して前記固定値データ更新プログラムを前記読書メモリに複製した後に前記読取専用メモリを動作終了させ、
前記読書メモリに複製した前記固定値データ更新プログラムを実行して前記読書メモリ上に展開されている前記固定値データを前記読取専用メモリに書き込む
ことを特徴とする請求項1記載の組込制御装置。 The read-only memory is
An end processing program describing an end processing to be executed when the operation of the arithmetic unit is ended;
A fixed value data update program describing a process of writing the fixed value data developed on the reading memory to the read-only memory;
Remember
The termination processing program further includes
A process for copying the fixed value data update program to the reading memory, a process for terminating the operation of the read-only memory, and a process for starting the fixed value data update program;
The computing unit is
When receiving a signal to terminate the operation of the arithmetic unit,
After the execution of the termination processing program and copying the fixed value data update program to the reading memory, the read-only memory is terminated.
The embedded control device according to claim 1, wherein the fixed value data update program copied to the reading memory is executed to write the fixed value data developed on the reading memory to the read-only memory. .
前記制御プログラムおよび前記制御プログラム内で用いられる固定値データを読み取り専用で記憶する読取専用メモリと、
データを読み書き両用で記憶する読書メモリと、
前記制御プログラムを実行して前記電子機器を制御する演算部と、
を備えた組込制御装置を開発する方法であって、
前記制御プログラム内に、
前記固定値データを前記読取専用メモリから読み出して前記読書メモリに展開する処理と、
前記読書メモリに展開された前記固定値データを用いて前記動作を実行する処理と、
を記述するステップと、
前記制御プログラムおよび前記制御プログラム内で用いられる固定値データを前記読取専用メモリに書き込むステップと、
を有することを特徴とする組込制御装置の開発方法。 A control program describing the operation of controlling the electronic device;
A read-only memory that stores the control program and fixed value data used in the control program in a read-only manner;
Reading memory that stores data for both reading and writing;
An arithmetic unit that executes the control program to control the electronic device;
A method for developing an embedded control device comprising:
In the control program,
A process of reading the fixed value data from the read-only memory and expanding it into the reading memory;
Processing to execute the operation using the fixed value data developed in the reading memory;
Steps to describe
Writing the control program and fixed value data used in the control program to the read-only memory;
An embedded control device development method characterized by comprising:
前記読取専用メモリ上のアドレスとして設定されている前記固定値データの読取元アドレスを、前記制御プログラムが前記固定値データを前記読書メモリ上に展開する書込先アドレスに置き換える
ことを特徴とする請求項3記載の組込制御装置の開発方法。 In the step of describing the process of executing the operation using the fixed value data in the control program,
The read source address of the fixed value data set as an address on the read only memory is replaced with a write destination address where the control program develops the fixed value data on the read memory. Item 4. A method for developing an embedded control device according to Item 3.
前記調整された前記固定値データを用いて前記制御プログラムを実行するステップと、
前記電子機器を制御するのに適した前記固定値データを探索するステップと、
を有することを特徴とする請求項3または4記載の組込制御装置の開発方法。 Adjusting the fixed value data developed in the reading memory using a reading memory rewriting program different from the control program;
Executing the control program using the adjusted fixed value data;
Searching the fixed value data suitable for controlling the electronic device;
The embedded control device development method according to claim 3, wherein the embedded control device is developed.
前記読書メモリ上に展開されている前記固定値データを前記読取専用メモリに書き込む固定値データ更新プログラムと、
を開発するステップを有し、
当該ステップにおいて、前記終了処理プログラム内に、
前記固定値データ更新プログラムを前記読書メモリに複製する処理、前記読取専用メモリを動作終了させる処理、および前記固定値データ更新プログラムを起動する処理
を記述し、前記演算部が動作終了するときに前記終了処理プログラムと前記固定値データ更新プログラムを前記演算部に実行させて前記読書メモリ上に展開されている前記固定値データを前記読取専用メモリに書き込ませる
ことを特徴とする請求項3から5のいずれか1項記載の組込制御装置の開発方法。 An end processing program describing an end processing to be executed when the operation of the arithmetic unit is ended;
A fixed value data update program for writing the fixed value data developed on the reading memory into the read-only memory;
Has the steps to develop and
In this step, in the end processing program,
A process for copying the fixed value data update program to the reading memory, a process for terminating the operation of the read-only memory, and a process for starting the fixed value data update program are described, and when the operation unit finishes the operation, 6. The end value processing program and the fixed value data update program are executed by the arithmetic unit so that the fixed value data developed on the reading memory is written to the read-only memory. A method for developing an embedded control device according to any one of the preceding claims.
前記制御プログラムおよび前記制御プログラム内で用いられる固定値データを読み取り専用で記憶する読取専用メモリと、
データを読み書き両用で記憶する読書メモリと、
前記制御プログラムを実行して前記電子機器を制御する演算部と、
を備えた組込制御装置上で実行されるように構成されており、
前記制御プログラムは、前記演算部に、
前記固定値データを前記読取専用メモリから読み出して前記読書メモリに展開する処理と、
前記読書メモリに展開された前記固定値データを用いて前記動作を実行する処理と、
を実行させる処理を記述していることを特徴とする組込制御プログラム。 A control program describing an operation for controlling an electronic device,
A read-only memory that stores the control program and fixed value data used in the control program in a read-only manner;
Reading memory that stores data for both reading and writing;
An arithmetic unit that executes the control program to control the electronic device;
Configured to be executed on an embedded control device with
The control program is stored in the calculation unit.
A process of reading the fixed value data from the read-only memory and expanding it into the reading memory;
Processing to execute the operation using the fixed value data developed in the reading memory;
A built-in control program characterized in that it describes a process for executing
前記読書メモリ上に展開されている前記固定値データを前記読取専用メモリに書き込む処理を記述した固定値データ更新プログラムと、
を有し、
前記終了処理プログラムは、前記演算部に、
前記固定値データ更新プログラムを前記読書メモリに複製する処理、前記読取専用メモリを動作終了させる処理、および前記固定値データ更新プログラムを起動する処理を実行させる処理を記述している
ことを特徴とする請求項7記載の組込制御プログラム。 An end processing program describing an end processing to be executed when the operation of the arithmetic unit is ended;
A fixed value data update program describing a process of writing the fixed value data developed on the reading memory to the read-only memory;
Have
The termination processing program is stored in the calculation unit.
It describes a process for copying the fixed value data update program to the reading memory, a process for ending the operation of the read only memory, and a process for starting the fixed value data update program. The embedded control program according to claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010158597A JP2012022432A (en) | 2010-07-13 | 2010-07-13 | Embedded control device, developing method for embedded control device, and embedded control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010158597A JP2012022432A (en) | 2010-07-13 | 2010-07-13 | Embedded control device, developing method for embedded control device, and embedded control program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012022432A true JP2012022432A (en) | 2012-02-02 |
JP2012022432A5 JP2012022432A5 (en) | 2012-10-25 |
Family
ID=45776698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010158597A Withdrawn JP2012022432A (en) | 2010-07-13 | 2010-07-13 | Embedded control device, developing method for embedded control device, and embedded control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012022432A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291148A (en) * | 2020-02-27 | 2020-06-16 | 广东电网有限责任公司 | Method and system for generating protection fixed value visual configuration diagram based on GIS (geographic information System) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05158680A (en) * | 1991-12-06 | 1993-06-25 | Nec Niigata Ltd | Rom rewrite processing system |
JP2000284958A (en) * | 1999-03-31 | 2000-10-13 | Seiko Epson Corp | Information processor and information storage medium |
JP2001075799A (en) * | 1999-09-06 | 2001-03-23 | Kenwood Corp | Device and method for correcting operation program for electronic equipment |
-
2010
- 2010-07-13 JP JP2010158597A patent/JP2012022432A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05158680A (en) * | 1991-12-06 | 1993-06-25 | Nec Niigata Ltd | Rom rewrite processing system |
JP2000284958A (en) * | 1999-03-31 | 2000-10-13 | Seiko Epson Corp | Information processor and information storage medium |
JP2001075799A (en) * | 1999-09-06 | 2001-03-23 | Kenwood Corp | Device and method for correcting operation program for electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291148A (en) * | 2020-02-27 | 2020-06-16 | 广东电网有限责任公司 | Method and system for generating protection fixed value visual configuration diagram based on GIS (geographic information System) |
CN111291148B (en) * | 2020-02-27 | 2023-05-26 | 广东电网有限责任公司 | Method and system for generating protection fixed value visualization configuration diagram based on GIS (geographic information System) |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7490177B2 (en) | System method for performing a direct memory access for automatically copying initialization boot code in a new memory architecture | |
JP4554900B2 (en) | Device using NAND flash memory for system drive and data storage | |
JP5220747B2 (en) | Nonvolatile storage device and nonvolatile storage system | |
JP5783809B2 (en) | Information processing apparatus, activation method, and program | |
JP4713867B2 (en) | Memory controller, memory device, and memory controller control method | |
TW201931111A (en) | Memory device and associated boot code loading method of electronic device | |
JP2013520744A (en) | Method and apparatus for generating minimum boot image | |
JP2006350430A (en) | Memory controller, flash memory system and control method for flash memory | |
JP2006120082A (en) | Memory card, semiconductor device, and control method for memory card | |
JP6070360B2 (en) | Information processing apparatus and processing method thereof | |
JP2010500682A (en) | Flash memory access circuit | |
JP2005157528A (en) | Memory device | |
CN111026417A (en) | Embedded equipment upgrading method and embedded equipment | |
JP4177360B2 (en) | Memory controller, flash memory system, and flash memory control method | |
JP2009048557A (en) | Data update device, data update method, and data update program | |
JP6575157B2 (en) | Firmware download method and firmware embedded device | |
JP2012022432A (en) | Embedded control device, developing method for embedded control device, and embedded control program | |
CN110825421A (en) | Firmware upgrading method and system and readable storage medium | |
US7107407B2 (en) | Arithmetic unit with reduced startup time and method of loading data | |
US20070103989A1 (en) | Data processing device having flash ROM, and a flash ROM data erasing method | |
JPWO2012077604A1 (en) | Processing apparatus, program update method, and program | |
CN114138314A (en) | CPU microcode upgrading method, system and related assembly | |
KR102434126B1 (en) | Apparatus for processing programmable logic controller program | |
JP2004013536A (en) | Flash memory rewrite control system and method, program for operating processe in flash memory rewrite control method, and information storage medium | |
JP5521437B2 (en) | Portable terminal device, software update method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120907 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120907 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130513 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130521 |
|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20130711 |