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 PDF

Info

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
Application number
JP2010158597A
Other languages
Japanese (ja)
Other versions
JP2012022432A5 (en
Inventor
Norio Murayama
規雄 村山
Hiroshi Natori
拓志 名取
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems 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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2010158597A priority Critical patent/JP2012022432A/en
Publication of JP2012022432A publication Critical patent/JP2012022432A/en
Publication of JP2012022432A5 publication Critical patent/JP2012022432A5/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an embedded control device which can easily adjust fixed-value data stored in a read-only memory by using a processing unit having general structure.SOLUTION: An embedded control device read-outs fixed-value data stored in a read-only memory to expand the fixed-value data into a random access memory, refers to the fixed-value data on the random access memory to execute control action.

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 Patent Document 2, a method using a task table is described. In this document, the changed constant value data is arranged in a non-volatile RAM area, and the task table is changed so as to refer to the newly arranged non-volatile RAM area. Thereby, the same effect as rewriting constant value data can be acquired.

特開2000−181744号公報JP 2000-181744 A 特開平4−259046号公報JP-A-4-259046

上記特許文献1に記載されている技術では、マイクロコンピュータがROM上のアドレスをRAM上のアドレスに置換するROMエミュレーション機能を備える必要があり、一般的なマイクロコンピュータとは異なる構成が必要となる。   In the technique described in Patent Document 1, it is necessary for the microcomputer to have a ROM emulation function for replacing the address on the ROM with the address on the RAM, and a configuration different from that of a general microcomputer is required.

上記特許文献2に記載されている技術では、タスクテーブルを用いて参照順序を管理するソフトウェア構造を設ける必要がある。また、不揮発性RAM領域を備えたマイクロコンピュータを採用する必要がある。したがって特許文献1と同様に、一般的な組込制御プログラムおよびマイクロコンピュータとは異なる構成が必要となる。   In the technique described in Patent Document 2, it is necessary to provide a software structure for managing the reference order using a task table. Further, it is necessary to employ a microcomputer having a nonvolatile RAM area. Therefore, similarly to Patent Document 1, a configuration different from a general embedded control program and a microcomputer is required.

本発明は、上記のような課題を解決するためになされたものであり、一般的な構成を有する演算装置を用いて、読取専用メモリ内に格納されている固定値データを容易に調整することのできる組込制御装置を得ることを目的とする。   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 Patent Documents 1 and 2, and thus the above functions can be realized using a general microcomputer.

実施の形態1に係る組込制御装置100の機能ブロック図である。3 is a functional block diagram of the embedded control device 100 according to Embodiment 1. FIG. 組込制御装置100が稼動しているときの各メモリの様子を示す図である。It is a figure which shows the mode of each memory when the embedded control apparatus 100 is working. 制御プログラム132が動作開始する際の初期処理を説明するフローチャートである。It is a flowchart explaining the initial process when the control program 132 starts operation | movement. 実施形態3に係る組込制御装置100の機能ブロック図である。FIG. 10 is a functional block diagram of an embedded control device 100 according to a third embodiment. 組込制御装置100が稼動しているときの各メモリの様子を示す図である。It is a figure which shows the mode of each memory when the embedded control apparatus 100 is working. マイクロコンピュータ110が電源OFF指示を受け取ったときの各メモリの様子を示す図である。It is a figure which shows the mode of each memory when the microcomputer 110 receives the power OFF instruction | indication. 終了処理プログラム134の動作が終了した後の各メモリの様子を示す図である。It is a figure which shows the mode of each memory after the operation | movement of the completion | finish process program 134 is complete | finished.

<実施の形態1>
図1は、本発明の実施の形態1に係る組込制御装置100の機能ブロック図である。組込制御装置100は、例えば車両の電子制御系統などの電子機器を制御する装置であり、マイクロコンピュータ110、RAM120、ROM130を備える。図1では、マイクロコンピュータ110の内部にRAM120とROM130を内蔵するように記載したが、これに限られるものではなく、例えばそれぞれ個別に構成することもできる。
<Embodiment 1>
FIG. 1 is a functional block diagram of the embedded control device 100 according to Embodiment 1 of the present invention. The embedded control device 100 is a device that controls an electronic device such as an electronic control system of a vehicle, and includes a microcomputer 110, a RAM 120, and a ROM 130. In FIG. 1, the microcomputer 120 is described so as to include the RAM 120 and the ROM 130, but the present invention is not limited to this. For example, the microcomputer 110 may be configured individually.

マイクロコンピュータ110は、後述する制御プログラム132を実行することにより制御対象を制御する演算装置である。RAM120は、制御プログラム132が動作する過程で必要となるデータなどを一時的に格納する、読書両用の揮発性メモリである。ROM130は、固定値データ131と制御プログラム132を記憶する、読取専用の不揮発性メモリである。   The microcomputer 110 is an arithmetic device that controls a control target by executing a control program 132 described later. The RAM 120 is a volatile memory for reading and reading that temporarily stores data and the like necessary in the process of operating the control program 132. The ROM 130 is a read-only nonvolatile memory that stores fixed value data 131 and a control program 132.

固定値データ131は、例えば閾値データなど、制御プログラム132が動作する上で必要となる固定的な値を保持するデータである。組込制御装置100を市場に出荷する時点で固定値データ131の値は確定済みであり、通常は以後変更されないので、読取専用メモリであるROM130内に格納されている。   The fixed value data 131 is data that holds a fixed value necessary for the operation of the control program 132 such as threshold data. When the embedded control device 100 is shipped to the market, the value of the fixed value data 131 has already been determined and is not normally changed thereafter, so it is stored in the ROM 130 which is a read-only memory.

制御プログラム132は、組込制御装置100が実行する制御動作を記述したソフトウェアプログラムである。制御プログラム132は、制御動作の過程で固定値データ131を参照するように記述されている。ただし、参照先アドレスについて、後述の図2で説明する工夫が施されている。   The control program 132 is a software program describing a control operation executed by the embedded control device 100. The control program 132 is described so as to refer to the fixed value data 131 in the course of the control operation. However, the reference address is devised to be described later with reference to FIG.

以下では、説明の便宜上、制御プログラム132などの各プログラムを動作主体として記載する場合があるが、実際に各プログラムを実行するのはマイクロコンピュータ110などの演算装置であることを付言しておく。   In the following, for convenience of explanation, each program such as the control program 132 may be described as an operation subject. However, it is added that the program is actually executed by an arithmetic unit such as the microcomputer 110.

図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 control device 100 is operating. When the built-in control device 100 is turned on, the microcomputer 110 reads the control program 132 and executes it. The control program 132 reads the fixed value data 131 stored on the ROM 130 and expands it as the fixed value data 121 on the RAM 120 (copy and write the value). Thereafter, the control program 132 refers to the fixed value data 121 on the RAM 120 and executes a control operation.

なお、上記説明では、制御プログラム132が固定値データ131を読み出してRAM120上に展開することとしたが、マイクロコンピュータ110を初期化する処理を実施する初期化プログラムを別途設け、同初期化プログラムが同様の処理を実施するように構成することもできる。以下の実施形態でも同様である。   In the above description, the control program 132 reads the fixed value data 131 and develops it on the RAM 120. However, an initialization program for performing a process for initializing the microcomputer 110 is provided separately. It can also be configured to perform similar processing. The same applies to the following embodiments.

図3は、制御プログラム132が動作開始する際の初期処理を説明するフローチャートである。以下、図3の各ステップについて説明する。
(図3:ステップS300〜S301)
組込制御装置100の電源がONになると、本動作フローが開始される。組込制御装置100は、マイクロコンピュータ110をリセットして初期化する。
FIG. 3 is a flowchart for explaining an initial process when the control program 132 starts to operate. Hereinafter, each step of FIG. 3 will be described.
(FIG. 3: Steps S300 to S301)
When the power supply of the embedded control device 100 is turned on, this operation flow is started. The embedded control device 100 resets and initializes the microcomputer 110.

(図3:ステップS302〜S303)
組込制御装置100は、制御プログラム132が動作するために必要なレジスタ(図示せず)を設定する。また、RAM120の全記憶領域を初期化する。
(図3:ステップS304)
マイクロコンピュータ110は、制御プログラム132を実行する。制御プログラム132は、RAM120上に固定値データ121を書き込むべき先頭アドレスおよび終端アドレスを取得する。
(FIG. 3: Steps S302 to S303)
The embedded control device 100 sets a register (not shown) necessary for the control program 132 to operate. Also, the entire storage area of the RAM 120 is initialized.
(FIG. 3: Step S304)
The microcomputer 110 executes the control program 132. The control program 132 acquires the start address and the end address at which the fixed value data 121 is to be written on the RAM 120.

(図3:ステップS305)
制御プログラム132は、ROM130から固定値データ131を読み込む先頭アドレスを取得する。
(図3:ステップS304〜S305:補足)
ステップS304〜S305で取得する先頭アドレス値および終端アドレス値は、例えば制御プログラム132の一部として組み込んでおいてもよいし、ROM130上の適当な記憶領域上に固定的に記憶させておいてもよい。
(FIG. 3: Step S305)
The control program 132 acquires a head address for reading the fixed value data 131 from the ROM 130.
(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 control program 132, for example, or may be fixedly stored in an appropriate storage area on the ROM 130. Good.

(図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 control program 132 accesses the address obtained in step S305 (or step S308 described later), and sequentially reads the fixed value data 131 stored in the ROM 130. Next, the control program 132 accesses the address obtained in step S304 (or step S309 described later), and writes the fixed value data 131 read from the ROM 130 into the RAM 120 as the fixed value data 121.
(FIG. 3: Step S306: Supplement)
In this step, it is not always necessary to write the entire fixed value data 131 to the RAM 120 at a time, and it may be written in a plurality of times. In this case, steps S306 to S309 are repeated a plurality of times.

(図3:ステップS307)
制御プログラム132は、固定値データ121をRAM120に書き込む先のアドレスが、ステップS304で取得した終端アドレスに達したか否かを判定する。終端アドレスに達していれば本動作フローを終了し、以後は制御動作を実行する。終端アドレスに達していなければ、ステップS308へ進む。
(図3:ステップS308〜S309)
制御プログラム132は、ROM130から固定値データ131を読み込む読込元アドレスを、規定量だけ増やす。また制御プログラム132は、RAM120に固定値データ121を書き込む書込先アドレスを、規定量だけ増やす。各アドレスをインクリメントした後は、ステップS306に戻って同様の処理を繰り返す。
(FIG. 3: Step S307)
The control program 132 determines whether or not the address to which the fixed value data 121 is written in the RAM 120 has reached the end address acquired in step S304. If the end address has been reached, this operation flow is terminated, and thereafter the control operation is executed. If the end address has not been reached, the process proceeds to step S308.
(FIG. 3: Steps S308 to S309)
The control program 132 increases the read source address for reading the fixed value data 131 from the ROM 130 by a specified amount. Further, the control program 132 increases the write destination address for writing the fixed value data 121 in the RAM 120 by a specified amount. After incrementing each address, the process returns to step S306 and the same processing is repeated.

以上、制御プログラム132が動作開始する際の初期処理を説明した。初期処理が完了すると、制御プログラム132は、ROM130上の固定値データ131に代えて、RAM120上の固定値データ121を参照しながら制御動作を実施する。   The initial process when the control program 132 starts operation has been described above. When the initial processing is completed, the control program 132 performs a control operation while referring to the fixed value data 121 on the RAM 120 instead of the fixed value data 131 on the ROM 130.

<実施の形態1:まとめ>
以上のように、本実施形態1に係る組込制御装置100は、ROM130が格納している固定値データ131をRAM120上に固定値データ121として展開し、固定値データ121を参照しながら制御動作を実施する。これにより、RAM120上で固定値データ121を変更しながら制御プログラム132を実行することができるので、固定値データ131の値を調整する毎にROM130を書き換える必要がなくなり、開発作業の負担を大幅に削減することができる。
<Embodiment 1: Summary>
As described above, the embedded control apparatus 100 according to the first embodiment expands the fixed value data 131 stored in the ROM 130 as the fixed value data 121 on the RAM 120, and performs a control operation while referring to the fixed value data 121. To implement. As a result, the control program 132 can be executed while changing the fixed value data 121 on the RAM 120. Therefore, it is not necessary to rewrite the ROM 130 every time the value of the fixed value data 131 is adjusted, greatly increasing the burden of development work. Can be reduced.

なお本実施形態1において、RAM120上の固定値データ121を変更したい場合は、制御プログラム132とは別のRAM書換プログラムなどを介してマイコン110およびRAM120に接続し、固定値データ121を所望の値に書き換えることができる。このRAM書換プログラムは、例えば組込制御装置100の外部の開発作業用コンピュータ上で実行することができる。   In the first embodiment, when the fixed value data 121 on the RAM 120 is to be changed, the fixed value data 121 is connected to the microcomputer 110 and the RAM 120 via a RAM rewriting program or the like different from the control program 132, and the fixed value data 121 is set to a desired value. Can be rewritten. This RAM rewriting program can be executed, for example, on a development work computer outside the embedded control apparatus 100.

ROM130を書き換える場合はROM130の動作を完全に終了させておかなければならないが、RAM120内のデータを書き換える際にはRAM120が動作中であってもよい。すなわち、制御プログラム132を実行している途中であっても、固定値データ121を任意の値に書き換えることができるので、この観点でも本発明に係る手法は有利である。   When the ROM 130 is rewritten, the operation of the ROM 130 must be completely terminated. However, when the data in the RAM 120 is rewritten, the RAM 120 may be in operation. That is, since the fixed value data 121 can be rewritten to an arbitrary value even while the control program 132 is being executed, the method according to the present invention is advantageous from this viewpoint.

<実施の形態2>
本発明の実施形態2では、実施形態1で説明した組込制御装置100を開発する過程について説明する。実施形態1で既に説明した事項については、適宜説明を省略する。
(開発工程1:固定値データを展開する処理)
制御プログラム132は、制御動作を開始する前に、実施形態1の図3で説明した初期動作を実行して固定値データ131をRAM120上に展開する必要がある。開発者は、組込制御装置100を開発する際に、制御プログラム132の機能の一部として図3の動作フローを開発する必要がある。
<Embodiment 2>
In the second embodiment of the present invention, a process of developing the embedded control device 100 described in the first embodiment will be described. A description of the matters already described in the first embodiment will be omitted as appropriate.
(Development process 1: Processing to expand fixed value data)
The control program 132 needs to expand the fixed value data 131 on the RAM 120 by executing the initial operation described with reference to FIG. 3 of the first embodiment before starting the control operation. When the developer develops the embedded control device 100, the developer needs to develop the operation flow of FIG. 3 as a part of the function of the control program 132.

(開発工程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 value data 131. Specifically, work such as associating fixed value data referred in the control program 132 with the control program 132 on the development support tool of the embedded control program is performed. In general, in this step, the development support tool generates address table data describing the storage destination address of the fixed value data 131 on the ROM 130.
(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 ROM 130 in which the control program 132 is stored. For this reason, the storage address on the ROM 130 is described in the address table data generated in this step. The control program 132 reads the fixed value data from the address described in the address table data.

(開発工程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 2 describes addresses on the ROM 130. This address is required when the fixed value data 131 is read and written to the RAM 120. On the other hand, when the control program 132 performs a control operation, it is necessary to specify an address on the RAM 120. Therefore, while the address table used for implementing the operation flow of FIG. 3 is left as it is, the address table describing the address indicating the fixed value data 131 on the ROM 130 is rewritten to the address indicating the fixed value data 121 on the RAM 120. There is a need.
(Development process 4: Write to ROM 130)
The developer writes the control program 132, fixed value data 131, and address table developed in the above process in the ROM 130.

(開発工程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 control apparatus 100, and causes the microcomputer 110 to execute the control program 132 while rewriting the fixed value data 121 developed on the RAM 120. . The developer searches the value of the fixed value data 121 most suitable for the control target while repeating this operation.
(Development process 6: Write to ROM 130)
The developer writes the adjusted fixed value data 121 in the ROM 130 again. Through the above steps, the development of the embedded control device 100 is completed.

<実施の形態2:まとめ>
以上、本実施形態2では、組込制御装置100を開発する工程を説明した。開発工程5において、開発者はRAM120上で固定値データ121を修正することができるので、固定値データを修正する毎に開発工程4または6を実施する必要がない。これにより、開発作業の効率を向上させることができる。
<Embodiment 2: Summary>
As described above, in the second embodiment, the process of developing the embedded control device 100 has been described. In the development process 5, the developer can modify the fixed value data 121 on the RAM 120, so that it is not necessary to perform the development process 4 or 6 every time the fixed value data is modified. Thereby, the efficiency of development work can be improved.

<実施の形態3>
本発明の実施形態3では、実施形態1〜2で説明した手法をさらに発展させ、RAM120上で修正した固定値データ121を自動的にROM130上へ反映する手法を説明する。自動反映に係る構成以外については、実施形態1〜2と同様である。
<Embodiment 3>
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 value data 121 corrected on the RAM 120 onto the ROM 130 will be described. Except for the configuration relating to automatic reflection, the configuration is the same as in the first and second embodiments.

図4は、本実施形態3に係る組込制御装置100の機能ブロック図である。本実施形態3では、実施形態1〜2で説明した構成に加え、ROM130は新たに終了処理プログラム134と固定値データ更新プログラム133を格納している。その他の構成は、実施形態1〜2と同様である。   FIG. 4 is a functional block diagram of the embedded control device 100 according to the third embodiment. In the third embodiment, in addition to the configurations described in the first and second embodiments, the ROM 130 newly stores an end processing program 134 and a fixed value data update program 133. Other configurations are the same as those in the first and second embodiments.

終了処理プログラム134は、マイクロコンピュータ110を動作終了させるときに実施すべき終了処理を記述したプログラムである。マイクロコンピュータ110は、電源をOFFすべき旨の指示を受け取ると、終了処理プログラム134を実行するように構成されている。   The termination processing program 134 is a program that describes termination processing to be performed when the microcomputer 110 is terminated. The microcomputer 110 is configured to execute the end processing program 134 when receiving an instruction to turn off the power.

固定値データ133は、RAM120上に展開されている固定値データ121を、ROM130に書き戻す処理を記述したプログラムである。詳細は後述の図5〜図7で改めて説明する。   The fixed value data 133 is a program describing a process for writing back the fixed value data 121 developed on the RAM 120 to the ROM 130. Details will be described later with reference to FIGS.

図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 control device 100 is operating. When the built-in control device 100 is turned on, the microcomputer 110 reads the control program 132 and executes it. The control program 132 expands the fixed value data 131 on the RAM 120 as in FIG. 2 of the first embodiment.

図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 microcomputer 110 receives a power-off instruction. When the microcomputer 110 receives an instruction to turn off the power, the microcomputer 110 executes a termination processing program 134 stored in the ROM 130. The end processing program 134 copies the fixed value data update program 133 that is also stored in the ROM 130 onto the RAM 120. For convenience, the fixed value data update program copied onto the RAM 120 is referred to by reference numeral 123. The termination processing program 134 executes other termination processing as appropriate.

図7は、終了処理プログラム134の動作が終了した後の各メモリの様子を示す図である。終了処理プログラム134は、終了処理を終了する際に、RAM120上に格納されている固定値データ更新プログラム123を起動する。   FIG. 7 is a diagram illustrating the state of each memory after the operation of the termination processing program 134 is terminated. The end processing program 134 activates the fixed value data update program 123 stored on the RAM 120 when the end processing ends.

固定値データ更新プログラム123は、ROM130の動作を完全に終了させた後、RAM120上の固定値データ121を、ROM130上の固定値データ131として書き戻す。これにより、RAM120上で修正された固定値データ121の値を、ROM130上の固定値データ131に反映することができる。   The fixed value data update program 123 completes the operation of the ROM 130 and then writes back the fixed value data 121 on the RAM 120 as the fixed value data 131 on the ROM 130. As a result, the value of the fixed value data 121 corrected on the RAM 120 can be reflected in the fixed value data 131 on the ROM 130.

なお、固定値データ更新プログラム123が固定値データ121を書き戻す前にROM130を先に動作終了させるのは、ROM130が動作していると、データを書き込むことができないからである。   The reason why the ROM 130 is first terminated before the fixed value data update program 123 writes back the fixed value data 121 is that data cannot be written when the ROM 130 is operating.

本実施形態3において、終了処理プログラム134と固定値データ更新プログラム133は、制御プログラム132とは別のプログラムとして説明したが、これら各プログラムのうちいずれか2以上を、一体的に構成することもできる。   In the third embodiment, the end processing program 134 and the fixed value data update program 133 have been described as programs different from the control program 132. However, any two or more of these programs may be configured integrally. it can.

<実施の形態3:まとめ>
以上のように、本実施形態3に係る組込制御装置100によれば、マイクロコンピュータ110が終了するときに、RAM120上の固定値データ更新プログラム123によって固定値データ121がROM130に自動的に書き戻される。これにより、RAM120上で修正した固定値データ121をROM130に書き込み直す作業を省略することができるので、開発作業をさらに効率化することができる。
<Embodiment 3: Summary>
As described above, according to the embedded control apparatus 100 according to the third embodiment, the fixed value data 121 is automatically written to the ROM 130 by the fixed value data update program 123 on the RAM 120 when the microcomputer 110 is terminated. Returned. As a result, the work of rewriting the fixed value data 121 corrected on the RAM 120 into the ROM 130 can be omitted, so that the development work can be made more efficient.

また、本実施形態3によれば、固定値データ121をROM130に書き戻す処理は自動的に実施されるので、誤った値をROM130に書き込むなどのミスを起こす可能性が少なくなり、結果として組込制御装置100の品質・性能を向上させることができる。   Further, according to the third embodiment, the process of writing the fixed value data 121 back to the ROM 130 is automatically performed, so that the possibility of making an error such as writing an incorrect value to the ROM 130 is reduced, and as a result The quality and performance of the embedded control device 100 can be improved.

なお、本実施形態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 control device 100, the process of developing the end processing program 134 and the fixed value data update program 133 is newly increased. However, this development process only needs to be performed once. On the other hand, the development process 6 described in the second embodiment can be omitted. Since the development process 6 occurs every time the fixed value data 131 is adjusted for a new control target, it seems that the effect of omitting this is great.

<実施の形態4>
以上の実施形態1〜3では、開発工程の効率を考慮し、制御プログラム132はRAM120上の固定値データ121を参照して制御動作を実施するように構成した。しかし、固定値データ131を調整し終えた後は、あえて固定値データ121を用いる必要もなくなる。
<Embodiment 4>
In the above first to third embodiments, the control program 132 is configured to execute the control operation with reference to the fixed value data 121 on the RAM 120 in consideration of the efficiency of the development process. However, it is not necessary to use the fixed value data 121 after adjusting the fixed value data 131.

そこで、組込制御装置100を市場に出荷する時点では、固定値データ131をRAM120に展開する処理を削除し、制御プログラム132が固定値データ131を参照して制御動作を実施するように、改めて制御プログラム132を構成し直してもよい。   Therefore, when the embedded control device 100 is shipped to the market, the process of expanding the fixed value data 131 into the RAM 120 is deleted, and the control program 132 refers to the fixed value data 131 and executes the control operation again. The control program 132 may be reconfigured.

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.
JP2010158597A 2010-07-13 2010-07-13 Embedded control device, developing method for embedded control device, and embedded control program Withdrawn JP2012022432A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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