JP6699591B2 - Engine controller - Google Patents

Engine controller Download PDF

Info

Publication number
JP6699591B2
JP6699591B2 JP2017032295A JP2017032295A JP6699591B2 JP 6699591 B2 JP6699591 B2 JP 6699591B2 JP 2017032295 A JP2017032295 A JP 2017032295A JP 2017032295 A JP2017032295 A JP 2017032295A JP 6699591 B2 JP6699591 B2 JP 6699591B2
Authority
JP
Japan
Prior art keywords
engine
engine control
control
storage area
ram
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.)
Active
Application number
JP2017032295A
Other languages
Japanese (ja)
Other versions
JP2018135845A (en
Inventor
中村 友則
友則 中村
鈴木 雅彦
雅彦 鈴木
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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2017032295A priority Critical patent/JP6699591B2/en
Publication of JP2018135845A publication Critical patent/JP2018135845A/en
Application granted granted Critical
Publication of JP6699591B2 publication Critical patent/JP6699591B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Control Of Vehicle Engines Or Engines For Specific Uses (AREA)

Description

本開示は、エンジン制御中にエンジン制御装置がリセットされてもエンジン制御を早く開始する技術に関する。   The present disclosure relates to a technique for early starting engine control even if the engine control device is reset during engine control.

車載のエンジン制御装置の起動時に、盗難防止装置であるイモビライザーを含むエンジン制御装置以外の他の装置による照合結果または診断結果に基づいて、エンジン制御装置によるエンジン制御を許可するか禁止するかを判定することが知られている。   Determines whether to permit or prohibit engine control by the engine control unit based on the collation result or diagnosis result by a device other than the engine control unit including the immobilizer which is an anti-theft device when the vehicle engine control unit is activated Is known to do.

しかし、エンジン制御を実行中にエンジン制御装置のCPUがリセットされてCPUが起動する場合、他の装置による照合結果または診断結果に基づいてCPUによるエンジン制御が許可されるまで、CPUがエンジン制御を開始できないという課題がある。   However, when the CPU of the engine control device is reset and the CPU is activated during execution of the engine control, the CPU controls the engine until the engine control by the CPU is permitted based on the collation result or the diagnosis result by another device. There is a problem that it cannot start.

この課題を解決するため、下記の特許文献1には、エンジンのスタートスイッチがオフになりエンジンが停止しても電力が供給されるバックアップRAMに、エンジン制御中のエンジン回転数または車速を定期的に記憶する技術が記載されている。   In order to solve this problem, in Patent Document 1 below, in a backup RAM to which power is supplied even when the start switch of the engine is turned off and the engine is stopped, the engine speed or vehicle speed during engine control is periodically set. The technology for storing is described in.

バックアップRAMに記憶されているデータは、スタートスイッチがオフからオンになるとき、ならびにエンジン制御中に異常が発生した等の原因でCPUがリセットされて起動するときに初期化されない。   The data stored in the backup RAM is not initialized when the start switch is turned from off to on, and when the CPU is reset and started up due to a failure such as during engine control.

特許文献1に記載の技術によると、CPUがリセットされて起動するときに、バックアップRAMに記憶されているエンジン回転数または車速に基づいて車両が走行中であると判定されると、CPUによるエンジン制御が許可される。   According to the technique described in Patent Document 1, when the CPU is reset and started up, if it is determined that the vehicle is running based on the engine speed or the vehicle speed stored in the backup RAM, the engine by the CPU Control is allowed.

特開2009−175330号公報JP, 2009-175330, A

特許文献1に記載の技術のように、バックアップRAMを搭載すると、スタートスイッチがオフになってもバックアップRAMに電力が供給される。その結果、エンジンの停止中にバックアップRAMのために電力が消費されるという課題がある。   When the backup RAM is mounted as in the technique described in Patent Document 1, power is supplied to the backup RAM even when the start switch is turned off. As a result, there is a problem that power is consumed due to the backup RAM while the engine is stopped.

また、バックアップRAMの容量は電力の供給が遮断されると記憶データが消失するRAMに比べて通常少ないので、車両が走行中であることを示すエンジン回転数または車速等の情報をバックアップRAMに記憶することは避けたい。   Further, since the capacity of the backup RAM is usually smaller than that of the RAM in which stored data is lost when power supply is cut off, information such as engine speed or vehicle speed indicating that the vehicle is traveling is stored in the backup RAM. I want to avoid doing it.

本開示の一態様は、エンジン制御を許可するか禁止するかを示す制御可否情報をエンジンが停止されると電力供給が遮断される揮発性メモリに記憶し、エンジン制御を実行中にエンジン制御装置がリセットされても早くエンジン制御を開始する技術を提供できることが望ましい。   One aspect of the present disclosure stores control enable/disable information indicating whether engine control is permitted or prohibited in a volatile memory in which power supply is cut off when the engine is stopped, and the engine control device is executed during execution of the engine control. It is desirable to be able to provide a technique for starting engine control quickly even if the engine is reset.

本開示の一態様における車載のエンジン制御装置(10)は、制御部(12、S410)と、揮発性メモリ(18)と、メモリ管理部(12、S402、S404、S416、S430〜S436)と、を備えている。   An in-vehicle engine control device (10) according to an aspect of the present disclosure includes a control unit (12, S410), a volatile memory (18), and a memory management unit (12, S402, S404, S416, S430 to S436). , Are provided.

揮発性メモリは、第1の記憶領域(100)と第2の記憶領域(110)とを有し、制御部によるエンジン制御を許可するか禁止するかを示す制御可否情報(112)が第2の記憶領域に記憶され、エンジンのスタートスイッチ(2)によりエンジンの停止が指令されると電力供給が遮断される。   The volatile memory has a first storage area (100) and a second storage area (110), and has second control permission/inhibition information (112) indicating whether to permit or prohibit engine control by the control unit. Is stored in the memory area, and the power supply is cut off when the engine start switch (2) issues an instruction to stop the engine.

メモリ管理部は、スタートスイッチによりエンジンの始動が指令される場合の制御部の第1の起動時と、エンジン制御中に制御部がリセットされる場合の制御部の第2の起動時との両方で第1の記憶領域を初期化し、第1の起動時に第2の記憶領域を初期化してエンジン制御を禁止する値に制御可否情報を設定し、第2の起動時に第2の記憶領域を初期化せず制御可否情報を変更しないように構成されている。   The memory management unit performs both the first startup of the control unit when the start switch issues an instruction to start the engine and the second startup of the control unit when the control unit is reset during engine control. Initializes the first storage area, initializes the second storage area at the first startup, sets control permission information to a value that prohibits engine control, and initializes the second storage area at the second startup. It is configured so that the control permission information is not changed without being converted.

この構成によれば、制御部がリセットされる場合の制御部の第2の起動時に第2の記憶領域を初期化せず制御可否情報を変更しないので、制御部がリセットされて起動するときに揮発性メモリに記憶されている制御可否情報は制御部がリセットされる前の値である。制御部がリセットされる前は、エンジン制御装置によりエンジン制御が実行されており、制御可否情報はエンジン制御を許可する値になっている。   According to this configuration, since the second storage area is not initialized and the control enable/disable information is not changed at the second activation of the control unit when the control unit is reset, when the control unit is reset and activated. The control propriety information stored in the volatile memory is a value before the control unit is reset. Before the control unit is reset, the engine control device executes the engine control, and the control permission/inhibition information has a value that permits the engine control.

これにより、エンジンが停止されると電力供給が遮断される揮発性メモリに制御可否情報を記憶しても、制御部がリセットされて起動するときに制御可否情報はエンジン制御を許可する値になっている。したがって、制御部がリセットされて起動するときにエンジン制御を早く開始できる。   As a result, even if the control enable/disable information is stored in the volatile memory in which the power supply is cut off when the engine is stopped, the control enable/disable information becomes a value that allows engine control when the control unit is reset and starts up. ing. Therefore, the engine control can be started earlier when the control unit is reset and activated.

さらに、エンジン停止中に電力が供給される揮発性メモリを設置する必要がないので、エンジン停止中の電力消費を低減できる。
また、エンジン停止中に電力が供給される揮発性メモリが設置されていたとしても制御可否情報の記憶用には使用しないので、エンジン停止中に電力が供給される揮発性メモリを他の情報の記憶用に使用できる。
Furthermore, since it is not necessary to install a volatile memory to which power is supplied while the engine is stopped, it is possible to reduce power consumption during engine stop.
Even if a volatile memory to which power is supplied while the engine is stopped is not used for storing control enable/disable information, the volatile memory to which power is supplied while the engine is stopped cannot be used for other information. Can be used for memory.

尚、この欄および特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本開示の技術的範囲を限定するものではない。   Note that the reference numerals in parentheses described in this column and the claims indicate the correspondence with the specific means described in the embodiments described below as one aspect, and do not indicate the technical scope of the present disclosure. It is not limited.

本実施形態のエンジン制御装置を示すブロック図。The block diagram which shows the engine control apparatus of this embodiment. RAMの記憶領域を示す説明図。Explanatory drawing which shows the memory area of RAM. エンジン制御処理を示すフローチャート。The flowchart which shows an engine control process. イモビライザーとの照合処理を示すフローチャート。The flowchart which shows the collation process with an immobilizer. CPU起動時の初期化処理を示すフローチャート。6 is a flowchart showing initialization processing when the CPU is activated. CPUの実行状態に応じた制御禁止フラグの値の変化を示すタイムチャート。9 is a time chart showing changes in the value of the control prohibition flag according to the execution state of the CPU.

以下、本開示の実施形態を図に基づいて説明する。
[1.構成]
図1に示すECU10は車両に搭載され、エンジン制御を実行する。ECUはElectronic Control Unitの略である。ECU10が実行するエンジン制御は、例えば、エンジンのトルク制御である。エンジンとして、内燃機関、または内燃機関と電動モータとの併用、または電動モータのいずれが使用されてもよい。
Hereinafter, an embodiment of the present disclosure will be described based on the drawings.
[1. Constitution]
The ECU 10 shown in FIG. 1 is mounted on a vehicle and executes engine control. ECU is an abbreviation for Electronic Control Unit. The engine control executed by the ECU 10 is, for example, engine torque control. As the engine, either an internal combustion engine, a combination of an internal combustion engine and an electric motor, or an electric motor may be used.

ECU10は、エンジンのスタートスイッチ2がオンになりエンジンの始動が指令されると起動してエンジン制御を実行する。ECU10は、スタートスイッチ2がオフになりエンジンの停止が指令されるとエンジン制御を停止する。   When the start switch 2 of the engine is turned on and an instruction to start the engine is issued, the ECU 10 is activated and executes engine control. The ECU 10 stops engine control when the start switch 2 is turned off and an instruction to stop the engine is issued.

ECU10は、起動時に盗難防止装置であるイモビライザー4と通信し、イモビライザー4側での照合が成功してイモビライザー4からエンジン制御を許可されると、エンジン制御を実行する。   The ECU 10 communicates with the immobilizer 4 which is an anti-theft device at the time of activation, and executes the engine control when the immobilizer 4 is successfully verified and the immobilizer 4 permits the engine control.

ECU10は、ハードウェア構成として、CPU12とROM14とバックアップRAM16と通常のRAM18とフラッシュメモリ20とバス22等を備えるマイクロコンピュータを搭載している。ROM14とバックアップRAM16とRAM18とフラッシュメモリ20とは、非遷移的実体的記録媒体である半導体メモリである。ECU10は、一つのマイコンを搭載してもよいし、複数のマイコンを搭載してもよい。   The ECU 10 has, as a hardware configuration, a microcomputer including a CPU 12, a ROM 14, a backup RAM 16, a normal RAM 18, a flash memory 20, a bus 22, and the like. The ROM 14, the backup RAM 16, the RAM 18, and the flash memory 20 are semiconductor memories that are non-transitional physical recording media. The ECU 10 may be equipped with one microcomputer or may be equipped with a plurality of microcomputers.

ECU10の各種機能は、CPU12が非遷移的実体的記録媒体に記憶されているプログラムを実行することにより実現される。このプログラムをCPU12が実行することで、プログラムに対応する方法が実行される。   Various functions of the ECU 10 are realized by the CPU 12 executing the programs stored in the non-transitional substantive recording medium. When the CPU 12 executes this program, the method corresponding to the program is executed.

ECU10の各種機能を実現する手法は、ソフトウェアに限るものではなく、その一部または全部の要素を、論理回路やアナログ回路等を組み合わせたハードウェアを用いてもよい。   The method for realizing the various functions of the ECU 10 is not limited to software, and some or all of the elements may be hardware that combines a logic circuit, an analog circuit, and the like.

ROM14には、書き換えの不要なプログラムおよびデータ等が記憶されている。バックアップRAM16には、スタートスイッチ2がオフになりメインリレーが遮断されても電力が供給される。したがって、バックアップRAM16は揮発性メモリであるが、バックアップRAM16には、スタートスイッチ2がオフになりメインリレーが遮断されても保存したいデータが記憶される。   The ROM 14 stores programs and data that do not need to be rewritten. Electric power is supplied to the backup RAM 16 even if the start switch 2 is turned off and the main relay is cut off. Therefore, although the backup RAM 16 is a volatile memory, the backup RAM 16 stores data to be saved even if the start switch 2 is turned off and the main relay is cut off.

RAM18は、スタートスイッチ2がオフになりメインリレーが遮断されると電力の供給が遮断される揮発性メモリである。RAM18には、CPU12がエンジン制御を実行中に一時的に記憶しておきたいデータが記憶される。   The RAM 18 is a volatile memory in which power supply is cut off when the start switch 2 is turned off and the main relay is cut off. The RAM 18 stores data that the CPU 12 wants to temporarily store while executing the engine control.

書き換え可能な不揮発性メモリであるフラッシュメモリ20には、書き換えられる可能性があり、バッテリが交換されるなど、バッテリからの電力供給が遮断されても保存したいプログラムと、エンジン制御の学習値、診断情報等のデータとが記憶される。   The flash memory 20, which is a rewritable non-volatile memory, has a possibility of being rewritten, and a program to be saved even if the power supply from the battery is cut off such as when the battery is replaced, a learning value for engine control, and a diagnosis. Data such as information is stored.

図2に示すように、RAM18の記憶領域は、ノーマルRAM100の記憶領域とプロテクトRAM110の記憶領域とに分けられている。ノーマルRAM100には、CPU12がエンジン制御を実行中に一時的に保存するデータが記憶される。プロテクトRAM110には、制御禁止フラグ112とチェックサム114とチェックコード116、118とその他のデータとが記憶される。   As shown in FIG. 2, the storage area of the RAM 18 is divided into a storage area of the normal RAM 100 and a storage area of the protect RAM 110. The normal RAM 100 stores data temporarily stored while the CPU 12 is executing engine control. The protect RAM 110 stores a control prohibition flag 112, a checksum 114, check codes 116 and 118, and other data.

制御禁止フラグ112は、オフであればCPU12によるエンジン制御を許可し、オンであればCPU12によるエンジン制御を禁止することを示している。制御禁止フラグ112は、プロテクトRAM110の初期化によりオンに設定される。つまり、プロテクトRAM110が初期化されると、CPU12によるエンジン制御は禁止される。   The control prohibition flag 112 indicates that the engine control by the CPU 12 is permitted when it is off and prohibits the engine control by the CPU 12 when it is on. The control prohibition flag 112 is set to ON by the initialization of the protect RAM 110. That is, when the protect RAM 110 is initialized, engine control by the CPU 12 is prohibited.

制御禁止フラグ112によりエンジン制御が禁止されると、例えばCPU12は、駆動源として内燃機関を備える場合はインジェクタの噴射量を0に設定するか、駆動源として電動モータを備える場合は電動モータへの電力供給を遮断する。   When the engine control is prohibited by the control prohibition flag 112, for example, the CPU 12 sets the injection amount of the injector to 0 when the internal combustion engine is provided as the drive source, or the electric motor to the electric motor when the electric motor is provided as the drive source. Cut off the power supply.

チェックサム114は、プロテクトRAM110のデータをサムチェックするためのデータである。チェックサム114は、プロテクトRAM110が初期化される場合に更新される。   The checksum 114 is data for performing a sum check on the data in the protect RAM 110. The checksum 114 is updated when the protect RAM 110 is initialized.

チェックサム114は、プロテクトRAM110のすべての記憶領域をチェックサム114の設定対象として1個設定されてもよいし、全てではなく一部の記憶領域を設定対象として1個設定されてもよい。また、チェックサム114は、チェックサム114の設定対象となるプロテクトRAM110の記憶領域を複数のブロックに分割し、ブロック毎に設定されてもよい。   One checksum 114 may be set for all storage areas of the protect RAM 110 as the setting target of the checksum 114, or one checksum 114 may be set for some of the storage areas. Further, the checksum 114 may be set for each block by dividing the storage area of the protect RAM 110 to be set by the checksum 114 into a plurality of blocks.

プロテクトRAM110が初期化される場合、チェックコード116にはROM14に記憶されているプログラムのチェックコード120と同じコードが設定され、チェックコード118にはフラッシュメモリ20に記憶されているプログラムのチェックコード122と同じコードが設定される。   When the protect RAM 110 is initialized, the check code 116 is set to the same code as the check code 120 of the program stored in the ROM 14, and the check code 118 is set to the check code 122 of the program stored in the flash memory 20. The same code as is set.

ノーマルRAM100は、スタートスイッチ2がオンになりエンジンが始動される場合のCPU12の起動時と、エンジン制御中にCPU12がリセットされる場合のCPU12の起動時との両方で初期化される。   The normal RAM 100 is initialized both when the CPU 12 is started when the start switch 2 is turned on and the engine is started and when the CPU 12 is reset when the CPU 12 is reset during engine control.

以下、スタートスイッチ2がオンになりエンジンが始動される場合のCPU12の起動時を第2の起動時とも言い、エンジン制御中にCPU12がリセットされる場合のCPU12の起動時を第2の起動時とも言う。   Hereinafter, the start-up time of the CPU 12 when the start switch 2 is turned on and the engine is started is also referred to as the second start-up time, and the start-up time of the CPU 12 when the CPU 12 is reset during engine control is the second start-up time. Also say.

プロテクトRAM110が初期化されるのは、スタートスイッチ2がオフになるとき、ならびに第1の起動時と第2の起動時とにおいて、プロテクトRAM110にECCエラーが発生するか、チェックサム114が不一致であるか、チェックコード116とチェックコード120とが不一致であるか、チェックコード118とチェックコード122とが不一致であるかの場合である。   The protect RAM 110 is initialized because the ECC error occurs in the protect RAM 110 or the checksum 114 does not match when the start switch 2 is turned off and at the first startup and the second startup. This is the case when the check code 116 and the check code 120 do not match or the check code 118 and the check code 122 do not match.

スタートスイッチ2がオンになって起動する第1の起動時においてプロテクトRAM110のデータは不定であるから、チェックサム114が不一致であるか、チェックコード116とチェックコード120とが不一致であるか、チェックコード118とチェックコード122とが不一致であるかのいずれかが発生する。したがって、第1の起動時において、プロテクトRAM110は通常初期化される。   Since the data in the protect RAM 110 is undefined at the first start-up when the start switch 2 is turned on, it is checked whether the checksum 114 does not match or the check code 116 and the check code 120 do not match. Either the code 118 and the check code 122 do not match, which occurs. Therefore, the protect RAM 110 is normally initialized at the first startup.

CPU12がリセットされて起動する第2の起動においてプロテクトRAM110には、CPU12がリセットされる前のデータが記憶されているので、プロテクトRAM110は、通常第2の起動時には初期化されない。   In the second activation in which the CPU 12 is reset and activated, the protect RAM 110 stores the data before the reset of the CPU 12, and therefore the protect RAM 110 is not normally initialized at the second activation.

しかし、例えば、フラッシュメモリ20のプログラムとチェックコード122とが書き換えられた状態でプロテクトRAM110のチェックコード118が更新されず、CPU12がリセットされることがある。この場合、第2の起動時において、プロテクトRAM110のチェックコード118とフラッシュメモリ20のチェックコード122とは不一致なので、プロテクトRAM110は初期化される。   However, for example, the check code 118 of the protect RAM 110 may not be updated and the CPU 12 may be reset while the program of the flash memory 20 and the check code 122 are rewritten. In this case, since the check code 118 of the protect RAM 110 and the check code 122 of the flash memory 20 do not match at the second startup, the protect RAM 110 is initialized.

[2.処理]
(1)エンジン制御処理
図3のフローチャートに基づいて、ECU10が実行するエンジン制御処理を説明する。図3のフローチャートは、前述した第1の起動時と第2の起動時とに実行される。
[2. processing]
(1) Engine Control Processing The engine control processing executed by the ECU 10 will be described based on the flowchart of FIG. The flowchart of FIG. 3 is executed at the above-mentioned first startup and second startup.

S400においてCPU12は、ECU10のセットアップを実行する。CPU12は、セットアップとして、例えば、ノーマルRAM100へのデータ書き込みチェック、ノーマルRAM100からのデータ読みだしチェック、各種制御レジスタの値の設定、他の装置との通信の設定等を実行する。   In S400, the CPU 12 executes the setup of the ECU 10. As the setup, the CPU 12 executes, for example, a data write check to the normal RAM 100, a data read check from the normal RAM 100, setting of values of various control registers, setting of communication with other devices, and the like.

S402においてCPU12は、ノーマルRAM100を0クリアして初期化する。S404においてCPU12は、プロテクトRAM110にECCエラーが発生するか、チェックサム114が一致するか、チェックコード116とチェックコード120とが一致するか、チェックコード118とチェックコード122とが一致するかのデータチェックを行う。データチェックの結果が異常であれば、プロテクトRAM110は初期化され、制御禁止フラグはオンに設定される。S404の処理の詳細は後述される。   In S402, the CPU 12 clears the normal RAM 100 to 0 and initializes it. In S404, the CPU 12 determines whether an ECC error occurs in the protect RAM 110, the checksum 114 matches, the check code 116 and the check code 120 match, or the check code 118 and the check code 122 match. Check. If the result of the data check is abnormal, the protect RAM 110 is initialized and the control prohibition flag is set to ON. Details of the process of S404 will be described later.

S406においてCPU12は、不揮発性メモリであるROM14とフラッシュメモリ20とに対し、サムチェック等によりデータチェックを実行する。
S406の処理の終了後、S408〜S414の処理と、図4に示す照合処理とが実行される。図4に示す照合処理は後述される。
In step S406, the CPU 12 performs a data check on the ROM 14 and the flash memory 20, which are nonvolatile memories, by performing a sum check or the like.
After the processing of S406 ends, the processing of S408 to S414 and the collation processing shown in FIG. 4 are executed. The matching process shown in FIG. 4 will be described later.

S408においてCPU12は、制御禁止フラグ112がオンか否かを判定する。S408の判定がNoであり、制御禁止フラグ112がオフの場合、エンジン制御は許可されているので、S410においてCPU12はエンジン制御を実行する。   In S408, the CPU 12 determines whether the control prohibition flag 112 is on. If the determination in S408 is No and the control prohibition flag 112 is off, engine control is permitted, so in S410, the CPU 12 executes engine control.

制御禁止フラグ112の値は、第1の起動時には不定である。後述するように、制御禁止フラグ112の値は、第1の起動後にイモビライザー4とCPU12とによる照合の結果が正常な場合オフに設定される。制御禁止フラグ112の値は、図6に示すように、エンジン制御の実行中にCPU12がリセットされても初期化されずオフのままであるから、第2の起動時にはオフに設定されている。   The value of the control prohibition flag 112 is indefinite at the first activation. As will be described later, the value of the control prohibition flag 112 is set to OFF when the result of collation by the immobilizer 4 and the CPU 12 is normal after the first activation. As shown in FIG. 6, the value of the control prohibition flag 112 is not initialized even if the CPU 12 is reset during execution of engine control and remains off. Therefore, the value of the control prohibition flag 112 is set to off at the second startup.

S408の判定がYesであり、制御禁止フラグ112がオンの場合、エンジン制御は禁止されているので、S412においてCPU12はエンジン制御を実行しない。S408〜S412の処理は、スタートスイッチ2がオフになり、S414の判定がYesになるまで実行される。   If the determination in S408 is Yes and the control prohibition flag 112 is on, engine control is prohibited, so in S412 the CPU 12 does not execute engine control. The processes of S408 to S412 are executed until the start switch 2 is turned off and the determination of S414 becomes Yes.

S414の判定がYesであり、エンジン制御の実行中にスタートスイッチ2がオフになりプロテクトRAM110への電力供給が遮断されると、次にスタートスイッチ2がオンになりプロテクトRAM110に電力が供給されるときに、プロテクトRAM110の値は不定である。   If the determination in S414 is Yes, and the start switch 2 is turned off and the power supply to the protect RAM 110 is cut off during execution of engine control, then the start switch 2 is turned on and power is supplied to the protect RAM 110. At times, the value of the protect RAM 110 is indefinite.

したがって、制御禁止フラグ112がオンにされずにオフのままであると、スタートスイッチ2がオンになる第1の起動時において、制御禁止フラグ112がオフになっている可能性がある。さらに、第1の起動時にS404において前述したプロテクトRAM110のデータチェックを行っても、チェック結果が正常になり、制御禁止フラグ112がオンに設定されない可能性がある。   Therefore, if the control prohibition flag 112 is not turned on but remains off, the control prohibition flag 112 may be turned off at the first startup when the start switch 2 is turned on. Further, even if the data check of the protect RAM 110 described above is performed in S404 at the first startup, the check result may be normal and the control prohibition flag 112 may not be set to ON.

スタートスイッチ2がオンになりCPU12が起動するときに、制御禁止フラグ112がオフになっていると、後述するイモビライザー4との照合処理の結果が異常であっても、CPU12によるエンジン制御が許可される。   If the control prohibition flag 112 is turned off when the start switch 2 is turned on and the CPU 12 is activated, the engine control by the CPU 12 is permitted even if the result of the collation process with the immobilizer 4 described later is abnormal. It

そこで、S414の判定がYesであり、スタートスイッチ2がオフになると、S416においてCPU12は、プロテクトRAM110を初期化し、制御禁止フラグ112をオンにする。これにより、スタートスイッチ2がオンになりCPU12が起動するときに、制御禁止フラグ112がオフになっている可能性を低減できる。   Therefore, if the determination in S414 is Yes and the start switch 2 is turned off, the CPU 12 initializes the protect RAM 110 and turns on the control prohibition flag 112 in S416. As a result, it is possible to reduce the possibility that the control prohibition flag 112 is turned off when the start switch 2 is turned on and the CPU 12 is activated.

さらに、S416においてCPU12は、プロテクトRAM110を初期化するときに、プロテクトRAM110のチェックサムを算出し、チェックサム114を更新する。さらに、S416においてCPU12は、プロテクトRAM110を初期化するときに、プロテクトRAM110のチェックコード116にROM14に記憶されているプログラムのチェックコード120を設定し、プロテクトRAM110のチェックコード118にフラッシュメモリ20に記憶されているプログラムのチェックコード122を設定する。   Further, in S416, the CPU 12 calculates the checksum of the protect RAM 110 and updates the checksum 114 when the protect RAM 110 is initialized. Further, in S416, when the protect RAM 110 is initialized, the CPU 12 sets the check code 120 of the program stored in the ROM 14 in the check code 116 of the protect RAM 110, and stores it in the flash memory 20 in the check code 118 of the protect RAM 110. The check code 122 of the program being executed is set.

S416においてCPU12は、プロテクトRAM110を初期化するときに、制御禁止フラグ112とチェックサム114とチェックコード116、118と以外のプロテクトRAM110に記憶される他のデータを適宜適切な値に設定する。   In S416, when the protect RAM 110 is initialized, the CPU 12 sets the control prohibition flag 112, the checksum 114, and the check codes 116 and 118 and other data stored in the protect RAM 110 to appropriate values as appropriate.

S418においてCPU12は、メインリレーをオフしてバッテリからECU10への電力供給を遮断する前に、ECU10が実行したエンジン制御の学習値、故障診断情報等をフラッシュメモリ20に記憶する。   In S418, the CPU 12 stores the learning value of engine control executed by the ECU 10, the failure diagnosis information, and the like in the flash memory 20 before turning off the main relay to cut off the power supply from the battery to the ECU 10.

(2)照合処理
図4のフローチャートを実行するタスクは、S406の処理の終了後に起動される。
S420においてCPU12は、イモビライザー4と通信により照合処理を実行する。S422においてCPU12は、イモビライザー4との通信による照合処理の結果が正常であるか否かを判定する。S422の判定がNoであり、照合結果が正常ではなく異常の場合、CPU12は本処理を終了する。この場合、制御禁止フラグは変更されない。
(2) Collation Processing The task that executes the flowchart of FIG. 4 is started after the processing of S406 is completed.
In S420, the CPU 12 communicates with the immobilizer 4 to execute the matching process. In S422, the CPU 12 determines whether or not the result of the matching process by communication with the immobilizer 4 is normal. When the determination in S422 is No and the collation result is abnormal instead of normal, the CPU 12 ends this processing. In this case, the control prohibition flag is not changed.

S422の判定がYesであり、照合結果が正常であれば、S424においてCPU12は、制御禁止フラグをオフにする。これにより、エンジン制御が許可される。
(3)プロテクトRAMのデータチェック処理
図5のフローチャートは、図3のS404で実行される。
If the determination in S422 is Yes and the collation result is normal, the CPU 12 turns off the control prohibition flag in S424. As a result, engine control is permitted.
(3) Protect RAM Data Check Processing The flowchart of FIG. 5 is executed in S404 of FIG.

S430においてCPU12は、プロテクトRAM110に記憶されているチェックコード116とROM14に記憶されているチェックコード120とが一致するか否か、ならびにプロテクトRAM110に記憶されているチェックコード118とフラッシュメモリ20に記憶されているチェックコード122とが一致するか否かを判定する。チェックコードが一致しない理由として以下の(1)、(2)が考えられる。   In S430, the CPU 12 stores whether the check code 116 stored in the protect RAM 110 and the check code 120 stored in the ROM 14 match each other, and stores the check code 118 stored in the protect RAM 110 and the flash memory 20. It is determined whether or not the check code 122 is matched. The following (1) and (2) can be considered as the reasons why the check codes do not match.

(1)スタートスイッチ2がオフになりプロテクトRAM110への電力供給が遮断されたためにプロテクトRAM110のデータが消失した。
(2)エンジン制御の実行中にフラッシュメモリ20のプログラムとチェックコード122とが書き換えられ、書き換えられたプログラムに対応するプロテクトRAM110のチェックコード118が更新されていない。
(1) Since the start switch 2 is turned off and the power supply to the protect RAM 110 is cut off, the data in the protect RAM 110 is lost.
(2) The program of the flash memory 20 and the check code 122 are rewritten during execution of the engine control, and the check code 118 of the protect RAM 110 corresponding to the rewritten program is not updated.

また、S432においてCPU12は、プロテクトRAM110のデータのリード時にECCエラーが発生しているか否かを判定する。ECCエラーが発生する理由として、以下の(1)、(2)が考えられる。   Further, in S432, the CPU 12 determines whether or not an ECC error has occurred when reading the data in the protect RAM 110. The following (1) and (2) can be considered as the reason why the ECC error occurs.

(1)スタートスイッチ2がオフになりプロテクトRAM110への電力供給が遮断されたためにプロテクトRAM110のデータが消失した。
(2)プロテクトRAM110のビットデータが反転した。
(1) Since the start switch 2 is turned off and the power supply to the protect RAM 110 is cut off, the data in the protect RAM 110 is lost.
(2) The bit data of the protect RAM 110 is inverted.

さらに、S434においてCPU12は、プロテクトRAM110に記憶されているチェックサム114がプロテクトRAM110に記憶されているデータから生成したチェックサムと一致するか否かを判定する。チェックサム114が一致しない理由として、スタートスイッチ2がオフになりプロテクトRAM110への電力供給が遮断されたためにプロテクトRAM110のデータが消失したことが考えられる。   Further, in S434, the CPU 12 determines whether the checksum 114 stored in the protect RAM 110 matches the checksum generated from the data stored in the protect RAM 110. The reason why the checksums 114 do not match is that the data in the protect RAM 110 is lost because the start switch 2 is turned off and the power supply to the protect RAM 110 is cut off.

S430またはS432またはS434の判定がNoになると、S436においてCPU12は、プロテクトRAM110を初期化する。具体的には、CPU12は、制御禁止フラグ112をオンにし、プロテクトRAM110のデータからチェックサムを算出して予め設定されたプロテクトRAM110のチェックサム114に書き込み、ROM14とフラッシュメモリ20とにそれぞれ記憶されているチェックコード120、122をプロテクトRAM110のチェックコード116、118に書き込む。   When the determination in S430, S432, or S434 is No, the CPU 12 initializes the protect RAM 110 in S436. Specifically, the CPU 12 turns on the control prohibition flag 112, calculates a checksum from the data of the protect RAM 110, writes the checksum in the preset checksum 114 of the protect RAM 110, and stores it in the ROM 14 and the flash memory 20, respectively. The check codes 120 and 122 are written in the check codes 116 and 118 of the protect RAM 110.

S436においてCPU12は、プロテクトRAM110を初期化するときに、制御禁止フラグ112とチェックサム114とチェックコード116、118と以外のプロテクトRAM110に記憶される他のデータを適宜適切な値に設定する。   In S436, when initializing the protect RAM 110, the CPU 12 sets other data stored in the protect RAM 110 other than the control prohibition flag 112, the checksum 114, and the check codes 116 and 118 to appropriate values as appropriate.

ここで、スタートスイッチ2がオンになると、CPU12とイモビライザー4との間で照合処理が行われる前に、図5のプロテクトRAMのチェック処理が実行される。すると、S430またはS432またはS434の判定はNoになるので、図6に示すように、制御禁止フラグはオンに設定される。   Here, when the start switch 2 is turned on, the protect RAM check process of FIG. 5 is executed before the collation process between the CPU 12 and the immobilizer 4. Then, the determination in S430, S432, or S434 is No, so the control prohibition flag is set to ON, as shown in FIG.

そして、CPU12とイモビライザー4との間で照合処理が行われ、照合結果が正常であれば、図6に示すように制御禁止フラグはオフに設定される。これにより、CPU12によるエンジン制御は許可される。   Then, the collation process is performed between the CPU 12 and the immobilizer 4, and if the collation result is normal, the control prohibition flag is set to OFF as shown in FIG. As a result, the engine control by the CPU 12 is permitted.

図6に示すように、エンジン制御の実行中にCPU12がリセットされても、プロテクトRAM110は初期化されないので、制御禁止フラグ112はオフのままである。チェックサム114にはプロテクトRAM110のデータから算出された正しい値が設定されている。チェックコード118には、フラッシュメモリ20に記憶されているプログラムが書き換えられていない限り、正しい値が設定さている。   As shown in FIG. 6, even if the CPU 12 is reset during execution of engine control, the protect RAM 110 is not initialized, so the control prohibition flag 112 remains off. A correct value calculated from the data of the protect RAM 110 is set in the checksum 114. The check code 118 is set to a correct value unless the program stored in the flash memory 20 is rewritten.

したがって、エンジン制御の実行中にCPU12がリセットされても、図5のデータチェック処理において、S430とS432とS434とにおける判定はYesになり、制御禁止フラグ112はオフのままである。   Therefore, even if the CPU 12 is reset during execution of the engine control, in the data check process of FIG. 5, the determinations in S430, S432, and S434 are Yes, and the control prohibition flag 112 remains off.

これにより、CPU12がリセットされた後の第2の起動時に、CPU12とイモビライザー4との照合処理により制御禁止フラグ112がオフに設定されるのを待つことなく、図3のS408の判定はYesになる。したがって、第2の起動において、CPU12は早くエンジン制御を開始できる。   Thus, at the second startup after the CPU 12 is reset, the determination in S408 of FIG. 3 becomes Yes without waiting for the control prohibition flag 112 to be set to OFF by the collation processing of the CPU 12 and the immobilizer 4. Become. Therefore, in the second activation, the CPU 12 can start the engine control quickly.

[3.効果]
以上説明した上記実施形態では、以下の効果を得ることができる。
(1)CPU12がエンジン制御を実行中にCPU12がリセットされても、プロテクトRAM110は初期化されず、第2の起動時に制御禁止フラグ112とチェックサム114とチェックコード116、118とはCPU12がリセットされる前の値に保持されている。
[3. effect]
In the above-described embodiment, the following effects can be obtained.
(1) Even if the CPU 12 is reset while the CPU 12 is executing engine control, the protect RAM 110 is not initialized, and the control prohibition flag 112, the checksum 114, and the check codes 116 and 118 are reset by the CPU 12 at the second startup. It is held at the value before

これにより、例えば車両が走行しておりCPU12によるエンジン制御が実行中にCPU12がリセットされても、第2の起動時にCPU12とイモビライザー4との照合処理の結果が正常になるまで待機することなく、CPUI2は早くエンジン制御を開始できる。   Thereby, for example, even if the vehicle is traveling and the CPU 12 is reset while the engine control by the CPU 12 is being executed, without waiting until the result of the collation process between the CPU 12 and the immobilizer 4 becomes normal at the second startup, CPUI2 can start engine control early.

(2)本実施形態のようにバックアップRAM16が搭載されている構成でも、制御禁止フラグ112をバックアップRAM16に記憶せず、プロテクトRAM110に記憶するので、バックアップRAM16を他の情報を記憶するために使用できる。   (2) Even in the configuration in which the backup RAM 16 is installed as in the present embodiment, the control prohibition flag 112 is stored in the protect RAM 110 instead of being stored in the backup RAM 16, so the backup RAM 16 is used for storing other information. it can.

(3)スタートスイッチ2がオフになると、CPU12は、プロテクトRAM110を初期化し、制御禁止フラグ112をオンにしてから電力供給の遮断処理を実行する。これにより、スタートスイッチ2がオンになりCPU12が起動するときに、制御禁止フラグ112の値を極力オンに保持できる。その結果、スタートスイッチ2がオンになってからCPU12とイモビライザー4との照合処理が正常にならないと、エンジン制御は禁止される。   (3) When the start switch 2 is turned off, the CPU 12 initializes the protect RAM 110, turns on the control prohibition flag 112, and then executes the power supply cutoff process. As a result, when the start switch 2 is turned on and the CPU 12 is activated, the value of the control prohibition flag 112 can be kept on as much as possible. As a result, the engine control is prohibited unless the matching process between the CPU 12 and the immobilizer 4 becomes normal after the start switch 2 is turned on.

(4)第1の起動時と第2の起動時とのいずれの起動時にも、ECCチェックとチェックサム114とによりプロテクトRAM110のデータの正当性がチェックされるので、プロテクトRAM110のデータが誤った値の場合、プロテクトRAM110を初期化できる。   (4) Since the validity of the data in the protect RAM 110 is checked by the ECC check and the checksum 114 at both the first start-up and the second start-up, the data in the protect RAM 110 is incorrect. If it is a value, the protect RAM 110 can be initialized.

(5)第1の起動時と第2の起動時とのいずれの起動時にも、ROM14に記憶されているチェックコード120とプロテクトRAM110に記憶されているチェックコード116とが一致しているか否か、ならびにフラッシュメモリ20に記憶されているチェックコード122とプロテクトRAM110に記憶されているチェックコード118とが一致しているか否かが判定される。   (5) Whether the check code 120 stored in the ROM 14 and the check code 116 stored in the protect RAM 110 match at the time of both the first startup and the second startup. Also, it is determined whether the check code 122 stored in the flash memory 20 and the check code 118 stored in the protect RAM 110 match.

これにより、例えばエンジン制御中にフラッシュメモリ20に記憶されているプログラムとチェックコード122が書き換えられ、プロテクトRAM110に記憶されているチェックコード118が更新されない場合、チェックコード118が更新されていないことを検出できる。チェックコード118が更新されていない場合には、プロテクトRAM110が初期化されてチェックコード118が更新されるので、フラッシュメモリ20とプロテクトRAM110とに記憶されているチェックコードの整合性を確保できる。   As a result, for example, when the program and the check code 122 stored in the flash memory 20 are rewritten during engine control and the check code 118 stored in the protect RAM 110 is not updated, it is confirmed that the check code 118 is not updated. Can be detected. If the check code 118 is not updated, the protect RAM 110 is initialized and the check code 118 is updated, so that the consistency of the check codes stored in the flash memory 20 and the protect RAM 110 can be ensured.

また、フラッシュメモリ20に記憶されているプログラムとして、イモビライザー4との照合処理を実行するプログラムが書き換えられる場合、プロテクトRAM110に記憶されているチェックコード118が更新されていない場合には、CPU12の起動時に制御禁止フラグ112がオンに設定される。これにより、イモビライザー4と照合処理を実行するECU10のプログラムが正常に作動せず照合結果が正常にならない場合、エンジン制御を禁止できる。   Further, when the program for executing the collation process with the immobilizer 4 is rewritten as the program stored in the flash memory 20, and the check code 118 stored in the protect RAM 110 is not updated, the CPU 12 is activated. At times, the control prohibition flag 112 is set to ON. Accordingly, when the program of the immobilizer 4 and the ECU 10 that executes the matching process do not operate normally and the matching result does not become normal, the engine control can be prohibited.

以上説明した上記実施形態において、ECU10がエンジン制御装置に対応し、CPU12が制御部とメモリ管理部と照合部とに対応し、RAM18が不揮発性メモリに対応し、ノーマルRAM100が第1の記憶領域に対応し、プロテクトRAM110が第2の記憶領域に対応し、制御禁止フラグ112が制御可否情報に対応する。   In the above-described embodiment described above, the ECU 10 corresponds to the engine control device, the CPU 12 corresponds to the control unit, the memory management unit, and the matching unit, the RAM 18 corresponds to the non-volatile memory, and the normal RAM 100 corresponds to the first storage area. The protect RAM 110 corresponds to the second storage area, and the control prohibition flag 112 corresponds to the control enable/disable information.

また、S402、S404、S416、S430〜S436がメモリ管理部の処理に対応し、S410が制御部の処理に対応し、S420〜S424が照合部の処理に対応する。   Further, S402, S404, S416, S430 to S436 correspond to the processing of the memory management unit, S410 corresponds to the processing of the control unit, and S420 to S424 correspond to the processing of the collation unit.

[4.他の実施形態]
(1)スタートスイッチ2がオフになっても、CPU12はプロテクトRAM110を初期化しなくてもよい。これは、スタートスイッチ2がオフになりプロテクトRAM110に電力が供給されないとプロテクトRAM110のデータが消失し、スタートスイッチ2がオンになるときに、図5に示すプロテクトRAM110のデータチェック処理により、プロテクトRAM110が通常初期化されるからである。
[4. Other Embodiments]
(1) Even if the start switch 2 is turned off, the CPU 12 does not have to initialize the protect RAM 110. This is because when the start switch 2 is turned off and power is not supplied to the protect RAM 110, the data in the protect RAM 110 is lost, and when the start switch 2 is turned on, the protect RAM 110 is checked by the data check process shown in FIG. Is normally initialized.

(2)プロテクトRAM110に制御禁止フラグ112を記憶するので、ECU10はバックアップRAM16を搭載しない構成であってもよい。バックアップRAM16を搭載しないことにより、スタートスイッチ2がオフになっている間、バックアップRAM16に電力を供給する必要がないので、バッテリの電力消費を低減できる。   (2) Since the control prohibition flag 112 is stored in the protect RAM 110, the ECU 10 may not be equipped with the backup RAM 16. Since the backup RAM 16 is not mounted, it is not necessary to supply power to the backup RAM 16 while the start switch 2 is off, so that power consumption of the battery can be reduced.

(3)イモビライザー4に限らず、ECU10の起動時に、他の車載の電子制御装置による起動時の診断処理がすべて正常でエンジン制御を開始できると判断してから、CPU12は制御禁止フラグをオフにしてもよい。   (3) Not only when using the immobilizer 4, but when the ECU 10 is started up, the CPU 12 turns off the control prohibition flag after determining that the diagnostic processing at startup by another on-vehicle electronic control device is normal and engine control can be started. You may.

(4)上記実施形態における一つの構成要素が有する複数の機能を複数の構成要素によって実現したり、一つの構成要素が有する一つの機能を複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を一つの構成要素によって実現したり、複数の構成要素によって実現される一つの機能を一つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。尚、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本開示の実施形態である。   (4) A plurality of functions of one constituent element in the above embodiment may be realized by a plurality of constituent elements, or one function of one constituent element may be realized by a plurality of constituent elements. Also, a plurality of functions of a plurality of constituent elements may be realized by one constituent element, or one function realized by a plurality of constituent elements may be realized by one constituent element. Further, a part of the configuration of the above embodiment may be omitted. Further, at least a part of the configuration of the above embodiment may be added or replaced with respect to the configuration of the other above embodiment. Note that all aspects included in the technical idea specified only by the wording recited in the claims are embodiments of the present disclosure.

(5)上述したECU10の他、当該ECU10を構成要素とするエンジン制御システム、当該ECU10としてコンピュータを機能させるためのエンジン制御プログラム、このエンジン制御プログラムを記録した記録媒体、エンジン制御方法など、種々の形態で本開示を実現することもできる。   (5) In addition to the ECU 10 described above, various engine control systems including the ECU 10 as components, an engine control program for causing a computer to function as the ECU 10, a recording medium recording the engine control program, an engine control method, and the like are provided. The present disclosure can be realized in a form.

2:スタートスイッチ、4:イモビライザー、10:ECU(エンジン制御装置)、12:CPU(制御部、メモリ管理部、照合部)、18:RAM(揮発性メモリ)、100:ノーマルRAM(第1の記憶領域)110:プロテクトRAM(第2の記憶領域)、112:制御禁止フラグ(制御可否情報) 2: Start switch, 4: Immobilizer, 10: ECU (engine control unit), 12: CPU (control unit, memory management unit, collation unit), 18: RAM (volatile memory), 100: Normal RAM (first (Storage area) 110: protect RAM (second storage area), 112: control prohibition flag (control enable/disable information)

Claims (5)

車載のエンジン制御装置(10)であって、
エンジン制御を実行する制御部(12、S410)と、
第1の記憶領域(100)と第2の記憶領域(110)とを有し、前記制御部による前記エンジン制御を許可するか禁止するかを示す制御可否情報(112)が前記第2の記憶領域に記憶され、前記エンジンのスタートスイッチ(2)により前記エンジンの停止が指令されると電力供給が遮断されるように構成された揮発性メモリ(18)と、
前記スタートスイッチにより前記エンジンの始動が指令される場合の前記制御部の第1の起動時と、前記エンジン制御の実行中に前記制御部がリセットされる場合の前記制御部の第2の起動時との両方で第1の記憶領域を初期化し、前記第1の起動時に前記第2の記憶領域を初期化して前記エンジン制御を禁止する値に前記制御可否情報を設定し、前記第2の起動時に前記第2の記憶領域を初期化せず前記制御可否情報を変更しないように構成されたメモリ管理部(12、S402、S404、S416、S430〜S436)と、
を備えるエンジン制御装置。
A vehicle-mounted engine control device (10),
A control unit (12, S410) for executing engine control,
The first storage area (100) and the second storage area (110) are provided, and control permission/inhibition information (112) indicating whether to permit or prohibit the engine control by the control unit is included in the second storage area. A volatile memory (18) that is stored in the area and that is configured to cut off the power supply when the start switch (2) of the engine is instructed to stop the engine;
At the first startup of the control unit when the start switch is instructed to start the engine, and at the second startup of the control unit when the control unit is reset during execution of the engine control. And the initialization of the first storage area, the second storage area is initialized at the time of the first startup, and the control availability information is set to a value that prohibits the engine control, and the second startup is performed. A memory management unit (12, S402, S404, S416, S430 to S436) configured not to initialize the second storage area and change the control enable/disable information at times.
An engine control device including.
請求項1に記載のエンジン制御装置であって、
前記第1の起動時と前記第2の起動時とにおいて、イモビライザー(4)との間で照合処理を実行し、照合結果が正常であれば前記制御可否情報を前記エンジン制御を許可する値に設定するように構成された照合部(12、S420〜S424)をさらに備える、
エンジン制御装置。
The engine control device according to claim 1, wherein
At the time of the first startup and at the time of the second startup, collation processing is executed between the immobilizer (4), and if the collation result is normal, the control permission information is set to a value that permits the engine control. Further comprising a matching unit (12, S420 to S424) configured to set,
Engine control unit.
請求項1または2に記載のエンジン制御装置であって、
前記メモリ管理部は、前記第2の起動時に、前記第2の記憶領域に対するデータチェックを実行し、データチェックの結果が異常であれば、前記第2の記憶領域を初期化して前記エンジン制御を禁止する値に前記制御可否情報を設定するように構成されている、
エンジン制御装置。
The engine control device according to claim 1 or 2, wherein
The memory management unit performs a data check on the second storage area at the time of the second startup, and if the result of the data check is abnormal, initializes the second storage area to control the engine. It is configured to set the control permission/prohibition information to a prohibited value,
Engine control unit.
請求項1から3のいずれか一項に記載のエンジン制御装置であって、
前記メモリ管理部は、前記スタートスイッチにより前記エンジンの停止が指令されると、前記第2の記憶領域を初期化して前記エンジン制御を禁止する値に前記制御可否情報を設定するように構成されている、
エンジン制御装置。
The engine control device according to any one of claims 1 to 3,
The memory management unit is configured to initialize the second storage area and set the control permission/inhibition information to a value that prohibits the engine control when the start switch issues an instruction to stop the engine. Is
Engine control unit.
請求項1から4のいずれか一項に記載のエンジン制御装置であって、
前記メモリ管理部は、前記第1の起動時と前記第2の起動時とにおいて、前記第2の記憶領域に記憶されているチェックコード(116、118)と、プログラムのチェックコード(120、122)とが不一致であれば、前記第2の記憶領域を初期化して前記エンジン制御を禁止する値に前記制御可否情報を設定するように構成されている、
エンジン制御装置。
The engine control device according to any one of claims 1 to 4,
The memory management unit checks the check code (116, 118) stored in the second storage area and the check code (120, 122) of the program at the first startup and the second startup. ), the second storage area is initialized and the control permission/inhibition information is set to a value that prohibits the engine control.
Engine control unit.
JP2017032295A 2017-02-23 2017-02-23 Engine controller Active JP6699591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017032295A JP6699591B2 (en) 2017-02-23 2017-02-23 Engine controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017032295A JP6699591B2 (en) 2017-02-23 2017-02-23 Engine controller

Publications (2)

Publication Number Publication Date
JP2018135845A JP2018135845A (en) 2018-08-30
JP6699591B2 true JP6699591B2 (en) 2020-05-27

Family

ID=63365342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017032295A Active JP6699591B2 (en) 2017-02-23 2017-02-23 Engine controller

Country Status (1)

Country Link
JP (1) JP6699591B2 (en)

Also Published As

Publication number Publication date
JP2018135845A (en) 2018-08-30

Similar Documents

Publication Publication Date Title
JP4227149B2 (en) Information storage method for electronic control unit
CN107077407B (en) Vehicle control device
JP2014035730A (en) Vehicle control device
JP2006323776A (en) Information processor
JP2013214303A (en) Method for reading vehicle apparatus control data, method for writing the same data, and device for storing vehicle apparatus data
KR101601751B1 (en) Ecu of vehicle and boot software re-programming method thereof
JP2008165729A (en) Microcomputer
JP6699591B2 (en) Engine controller
JP6708596B2 (en) Electronic control device and control program verification method
JP2002323902A (en) Electronic controller
JP6471510B2 (en) Microcomputer
JP2009026183A (en) Electronic control apparatus for automobile
JP5942778B2 (en) Information processing device
CN111066002A (en) Method for determining the integrity of driving data of a control unit of a motor vehicle
JP2011100416A (en) In-vehicle electronic controller and memory control method
JP7024582B2 (en) In-vehicle control device
JP5516509B2 (en) Program writing system
WO2022215402A1 (en) Vehicle electronic control device and program rewriting method
JP2006291720A (en) Control device
WO2021255984A1 (en) Electronic control device and updating method for control software
JP2011118682A (en) Onboard control device
JP6317653B2 (en) Electronic control device for automobile and data storage method
WO2023002635A1 (en) Information processing device, information processing method, and information processing program
US20230185564A1 (en) Control device and management method
JP2020149428A (en) Electronic controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190423

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200331

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200413

R151 Written notification of patent or utility model registration

Ref document number: 6699591

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250