JP2010195220A - Electric power steering device - Google Patents

Electric power steering device Download PDF

Info

Publication number
JP2010195220A
JP2010195220A JP2009042998A JP2009042998A JP2010195220A JP 2010195220 A JP2010195220 A JP 2010195220A JP 2009042998 A JP2009042998 A JP 2009042998A JP 2009042998 A JP2009042998 A JP 2009042998A JP 2010195220 A JP2010195220 A JP 2010195220A
Authority
JP
Japan
Prior art keywords
storage
program
block
application program
abnormality detection
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.)
Granted
Application number
JP2009042998A
Other languages
Japanese (ja)
Other versions
JP5223724B2 (en
Inventor
Nobuaki Kogure
伸昭 木暮
Takumi Negishi
巧 根岸
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.)
NSK Ltd
Original Assignee
NSK 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 NSK Ltd filed Critical NSK Ltd
Priority to JP2009042998A priority Critical patent/JP5223724B2/en
Publication of JP2010195220A publication Critical patent/JP2010195220A/en
Application granted granted Critical
Publication of JP5223724B2 publication Critical patent/JP5223724B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Steering Control In Accordance With Driving Conditions (AREA)
  • Power Steering Mechanism (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electric power steering device in which a program is restored when a storage abnormality occurs in a program storage part such as an ROM. <P>SOLUTION: In the electric power steering device having an electronic control device 13 that controls an electric motor 12 generating a steering assistance force for a steering mechanism, the electronic control device 13 includes a main storage part 15c that stores an application program for controlling the electric motor and a storage abnormality detection program for the application program, and a redundant storage part 15d that stores at least the application program. When an abnormality of the application program in the main storage part 15c is detected by the execution of the storage abnormality detection program, the control of the electric motor is continued based on the application program stored in the redundant storage part 15d. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、操舵系に対して操舵補助力を付与する電動機を制御する電動パワーステアリング装置に係り、特に、アプリケーションプログラムを格納する記憶部に記憶異常が発生した場合に自動的に修復するようにした電動パワーステアリング装置に関する。   The present invention relates to an electric power steering apparatus that controls an electric motor that applies a steering assist force to a steering system, and in particular, automatically corrects when a storage abnormality occurs in a storage unit that stores an application program. The present invention relates to an electric power steering apparatus.

この種の電動パワーステアリング装置としては、ROM領域は複数の所定数のバイトデータからなるセルから成り、制御対象に対して制御を行う通常制御期間と制御用コンピュータの故障診断を行う診断用期間からなるマシンサイクルで制御を行う制御手段と、診断用期間毎に複数のセルのうち一部載せるデータの加算を行い、前回診断用期間に得られた一部のセルのデータの加算値に今回診断用期間に他の一部のセルのデータを加算し、ROM領域の全てのセルについてのデータの加算値が得られたとき、加算値の合計と規定値とを比較する演算手段を備え、演算手段による加算値の合計と規定値との比較に基づいて故障検出を行う制御用コンピュータが知られている(例えば、特許文献1参照)。   In this type of electric power steering device, the ROM area is composed of a plurality of cells composed of a predetermined number of byte data, and includes a normal control period for controlling the controlled object and a diagnostic period for performing fault diagnosis of the control computer. The control means that performs control in the machine cycle and the addition of data that is partly placed in a plurality of cells for each diagnosis period, and the current diagnosis is performed on the addition value of the data of some cells obtained in the previous diagnosis period Computation means for comparing the sum of the added values with the specified value when the data of all the cells in the ROM area are obtained by adding the data of some other cells to the period of use, and There is known a control computer that performs failure detection based on a comparison between a sum of addition values by means and a prescribed value (see, for example, Patent Document 1).

また、自動車のエンジン制御用ECUに備えられるマイコンのRAMの記憶領域を、高ブロック、中ブロック及び低ブロックの3つのブロックに分け、RAMに記憶されるべきデータも、当該データの異常が自動車の安全性に与える影響度の大きさに応じて3種類のグループに分類されており、その影響度の大きいグループから順に、高ブロック、中ブロック、低ブロックにそれぞれ記憶し、CPUは、上記各ブロックを、上記影響度の大きいデータが記憶されるブロックほど高い頻度(すなわち、高>中>低)で診断し、異常を検出した場合にはフェイルセーフ処理を行うようにしたメモリ診断装置及び制御装置が知られている(例えば、特許文献2参照)。   In addition, the storage area of the microcomputer RAM provided in the engine control ECU of the automobile is divided into three blocks, a high block, a medium block, and a low block, and the data to be stored in the RAM is also an abnormality of the automobile. It is classified into three types of groups according to the degree of impact on safety, and the blocks are stored in the high block, medium block, and low block in order from the group with the largest impact level. Is a memory diagnosis device and a control device that perform a fail-safe process when an abnormality is detected in a block in which data having a large influence degree is stored, and the block is stored with high frequency (that is, high> medium> low). Is known (see, for example, Patent Document 2).

2004−133635号公報2004-133635 gazette 2003−323353号公報No. 2003-323353

このように、上記特許文献1及び2に記載れた従来例にあっては、マイクロコンピュータ起動からアシスト制御介し前に実施されるメモリ初期診断でメモリ故障が検出された場合、又はアシスト制御中に実施されるメモリ常時診断でメモリ故障が検出された場合、フェイルセーフ処理として、アシスト制御を停止、又はモータへの通電を遮断、又はマイクロコンピュータをリセットし、システムが重大な故障モードに至ることを防止している。   As described above, in the conventional examples described in Patent Documents 1 and 2, when a memory failure is detected in the initial memory diagnosis performed before the start of the microcomputer through the assist control, or during the assist control. When a memory failure is detected by the continuous memory diagnosis that is performed, as a fail-safe process, the assist control is stopped, the power to the motor is cut off, or the microcomputer is reset, and the system reaches a serious failure mode. It is preventing.

しかしなから、中型車や大型車への電動パワーステアリング装置の採用拡大に伴い、ステアリング機構を操舵する際に大きな操舵力を必要とすることになり、ROM故障時にアシスト制御を停止、又はモータへの通電を遮断、又はマイクロコンピュータをリセットすることにより操舵補助力の発生を停止した場合、運転者に過大な負担を強いることになり、必ずしも得策とは言えなくなってきているという未解決の課題がある。   However, with the expansion of the adoption of electric power steering devices for medium-sized and large vehicles, a large steering force is required when steering the steering mechanism, and assist control is stopped when the ROM fails or the motor is switched to the motor. If the generation of steering assist force is stopped by shutting off the power to the vehicle or resetting the microcomputer, the driver will be overburdened, and there is an unsolved problem that it is not necessarily a good measure. is there.

そこで、本発明は、上記従来例の未解決の課題に着目してなされたものであり、ROM等のプログラム記憶部に記憶異常が発生したときに、プログラムを修復することが可能な電動パワーステアリング装置を提供することを目的としている。   Accordingly, the present invention has been made paying attention to the unsolved problems of the above-described conventional example, and an electric power steering capable of restoring a program when a storage abnormality occurs in a program storage unit such as a ROM. The object is to provide a device.

上記目的を達成するために、本発明に係る請求項1記載の電動パワーステアリング装置は、操舵機構に対して操舵補助力を発生する電動モータを制御する電子制御装置を備えた電動パワーステアリング装置であって、
前記電子制御装置は、前記電動モータを制御するアプリケーションプログラム及び当該アプリケーションプログラムの記憶異常検出プログラムを格納する主記憶部と、少なくとも前記アプリケーションプログラムを格納する冗長記憶部とを備え、前記記憶異常検出プログラムを実行することにより、前記主記憶部のアプリケーションプログラムの異常が検出されたときに、前記冗長記憶部に記憶されているアプリケーションプログラムに基づいて電動モータの制御を継続することを特徴としている。
In order to achieve the above object, an electric power steering apparatus according to claim 1 of the present invention is an electric power steering apparatus including an electronic control unit that controls an electric motor that generates a steering assist force with respect to a steering mechanism. There,
The electronic control device includes an application program for controlling the electric motor, a main storage unit for storing a storage abnormality detection program for the application program, and a redundant storage unit for storing at least the application program, and the storage abnormality detection program When the abnormality of the application program in the main storage unit is detected, the control of the electric motor is continued based on the application program stored in the redundant storage unit.

このような構成であれば、主記憶部に記憶されているアプリケーションプログラムの記憶異常を検出したときに、該当するアプリケーションプログラムを冗長記憶部から読み出して主記憶部のアプリケーションプログラムを書換えたり、RAMに格納したりすることにより、記憶異常となったアプリケーションプログラムを修復することができ、正常な操舵補助制御を中断することなく継続することができる。   With such a configuration, when a storage abnormality of the application program stored in the main storage unit is detected, the corresponding application program is read from the redundant storage unit and the application program in the main storage unit is rewritten, or the RAM is stored in the RAM. By storing the application program, it is possible to repair the application program in which the memory abnormality occurred, and to continue normal steering assist control without interruption.

また、本発明に係る請求項2記載の電動パワーステアリング装置は、前記主記憶部は、前記アプリケーションプログラム及び記憶異常検出プログラムを格納する第1の格納領域と、起動プログラムと前記第1の格納領域内のアプリケーションプログラムを書換更新するためのブートプログラムを格納する第2の格納領域とを有するフラッシュROMで構成され、前記記憶異常検出プログラムを実行することにより、前記アプリケーションプログラムの記憶異常を検出したときに、前記ブートプログラムを実行することにより、前記冗長記憶部に記憶されているアプリケーションプログラムを前記第1の格納領域に書換更新することを特徴としている。   In the electric power steering apparatus according to claim 2, the main storage unit stores a first storage area for storing the application program and a storage abnormality detection program, a start program, and the first storage area. A flash ROM having a second storage area for storing a boot program for rewriting and updating the application program in the memory, and when the storage abnormality of the application program is detected by executing the storage abnormality detection program In addition, the application program stored in the redundant storage unit is rewritten and updated in the first storage area by executing the boot program.

このような構成であれば、主記憶部をアプリケーションプログラム及び記憶異常検出プログラムを格納する第1の格納領域と、起動プログラムと前記第1の格納領域内のアプリケーションプログラムを書換更新するためのブートプログラムを格納する第2の格納領域を有するフラッシュROMで構成することにより、記憶異常となったアプリケーションプログラムの修復を容易に行うことができる。   With such a configuration, the main storage unit has a first storage area for storing an application program and a storage abnormality detection program, and a boot program for rewriting and updating the startup program and the application program in the first storage area. By using the flash ROM having the second storage area for storing the application program, it is possible to easily repair the application program in which the storage error has occurred.

また、本発明に係る請求項3記載の電動パワーステアリング装置は、前記第1の格納領域は、少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを複数に分割して格納する小さな記憶容量の複数のブロックとを有し、前記記憶異常検出プログラムは、前記第1の格納領域のブロック毎に記憶異常を検出するように構成され、当該記憶異常検出プログラムによって記憶異常となったブロックが検出されたときに、該当するブロックに対応して前記冗長記憶部に記憶されているブロックを読出して第1の記憶領域の該当ブロックを書換更新することを特徴としている。   According to a third aspect of the present invention, in the electric power steering apparatus according to the third aspect, the first storage area is a small block that stores at least the specific block that stores the memory abnormality detection program and the application program divided into a plurality of parts. A block in which a storage abnormality is detected by the storage abnormality detection program, and the storage abnormality detection program is configured to detect a storage abnormality for each block of the first storage area. Is detected, the block stored in the redundant storage unit is read corresponding to the corresponding block, and the corresponding block in the first storage area is rewritten and updated.

この構成であれば、小さな容量のブロック単位で記憶異常検出を行い、記憶異常を生じたブロックのみを冗長記憶部に記憶されている対応するブロックに格納されているプログラムで書換更新するので、書換更新処理を容易に行うことができる。
また、本発明に係る請求項4記載の電動パワーステアリング装置は、前記主記憶部は、RAMをさらに有し、前記記憶異常検出プログラムは、記憶異常となったブロックを書換更新後に記憶異常が解消されないときに、前記冗長記憶部の該当ブロックを前記RAMに書込み、前記第2の記憶領域に記憶されているブートプログラムは、記憶異常検出プログラムで記憶異常を検出した第1の記憶領域のブロックをアクセスする際に、前記RAMに格納されているブロックをアクセスするように構成されていることを特徴としている。
With this configuration, storage abnormality detection is performed in units of small-capacity blocks, and only the block in which the storage abnormality has occurred is rewritten and updated with the program stored in the corresponding block stored in the redundant storage unit. Update processing can be performed easily.
According to a fourth aspect of the present invention, in the electric power steering apparatus according to the fourth aspect, the main storage unit further includes a RAM, and the storage abnormality detection program eliminates the storage abnormality after rewriting and updating the block in which the storage abnormality has occurred. If not, the corresponding block of the redundant storage unit is written into the RAM, and the boot program stored in the second storage area is the block of the first storage area in which the storage abnormality is detected by the storage abnormality detection program. When accessing, it is configured to access a block stored in the RAM.

この構成であれば、主記憶部の記憶異常が生じたブロックを冗長記憶部に記憶されているブロックのプログラムで書換更新したときに、記憶異常が解消しないときには、該当ブロックをRAMに書込み、該当ブロックをアクセスするときにはRAMに格納されているブロックをアクセスすることにより、アプリケーションプログラムを実行することができ、主記憶部のブロックが異常となっても操舵補助制御を継続することができる。   With this configuration, when a block in which a storage abnormality has occurred in the main storage unit is rewritten and updated with a block program stored in the redundant storage unit, if the storage abnormality is not resolved, the corresponding block is written to the RAM, When accessing the block, the application program can be executed by accessing the block stored in the RAM, and the steering assist control can be continued even if the block of the main storage unit becomes abnormal.

また、本発明に係る請求項5に記載の電動パワーステアリング装置は、前記主記憶部は少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを所定数に分割して格納する小さな記憶容量の複数のブロックとを有するROMと、RAMとで構成され、前記冗長記憶部は、前記ROMと同様に少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを所定数に分割して格納する小さな記憶容量の複数のブロックとを有し、前記記憶異常検出プログラムはブロック毎に記憶異常を検出するように構成され、当該記憶異常検出プログラムによって、記憶異常のブロックが検出されたときに、該当するブロックを前記冗長記憶部から読出して前記RAMに書込み、前記主記憶部の記憶異常となったブロックをアクセスする際に、前記RAM上のブロックをアクセスすることを特徴としている。   According to a fifth aspect of the present invention, in the electric power steering apparatus according to the fifth aspect, the main memory unit stores at least a specific block that stores the memory abnormality detection program, and a small memory that stores the application program divided into a predetermined number. The redundant storage unit divides at least a specific block for storing the storage abnormality detection program and the application program into a predetermined number in the same manner as the ROM, and includes a ROM having a plurality of blocks having a capacity. The storage abnormality detection program is configured to detect a storage abnormality for each block, and a storage abnormality block is detected by the storage abnormality detection program. The corresponding block is read from the redundant storage unit and written to the RAM. It is seen, in accessing the block became storing abnormality of the main memory unit, is characterized by accessing the blocks on the RAM.

この構成であれば、ROMに記憶異常検出プログラム及びアプリケーションプログラムがブロック単位で記憶されており、記憶異常検出プログラムを実行することにより、ブロック単位に記憶異常を検出することができ、記憶異常を検出したブロックについて冗長記憶部に記憶されているブロックをRAMに書込み、該当ブロックをアクセスする際に、RAMに格納されたブロックをアクセスすることにより、ROMのブロックが異常となっても操舵補助制御を継続することができる。   With this configuration, the storage abnormality detection program and application program are stored in the ROM in the block unit, and by executing the storage abnormality detection program, the storage abnormality can be detected in the block unit, and the storage abnormality is detected. When the block stored in the redundant storage unit is written to the RAM and the corresponding block is accessed, the block stored in the RAM is accessed, so that the steering assist control is performed even if the ROM block becomes abnormal. Can continue.

本発明によれば、主記憶部に記憶されているアプリケーションプログラムに記憶異常が検出されたときに、冗長記憶部に記憶されているアプリケーションプログラムで書換更新することにより、アプリケーションプログラムを修復し、操舵補助制御を中止したり、中断したりすることなく、操舵補助制御を継続することができるという効果が得られる。
また、主記憶部に複数のブロックに分けてアプリケーションプログラムを記憶するとともに、冗長記憶部にも同様に複数のブロックに分けてアプリケーションプログラムを記憶することにより、記憶異常となったブロック単位で書換更新が可能となり、アプリケーションプログラムの修復処理を容易に行うことができる。
According to the present invention, when a storage abnormality is detected in the application program stored in the main storage unit, the application program is repaired and updated by rewriting and updating with the application program stored in the redundant storage unit. There is an effect that the steering assist control can be continued without stopping or interrupting the assist control.
In addition to storing application programs in multiple blocks in the main storage unit and storing application programs in multiple blocks in the redundant storage unit as well, rewriting and updating is performed in units of blocks in which storage errors occurred. This makes it possible to easily repair the application program.

本発明による電動パワーステアリング装置の構成を示す概略構成図である。It is a schematic block diagram which shows the structure of the electric power steering apparatus by this invention. コントローラの具体的構成を示すブロック図である。It is a block diagram which shows the specific structure of a controller. フラッシュメモリ上のプログラム構成を示す説明図である。It is explanatory drawing which shows the program structure on a flash memory. 操舵補助制御処理を示すフローチャートである。It is a flowchart which shows a steering assistance control process. 記憶異常検出処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of a memory | storage abnormality detection process sequence. コントローラの機能ブロック図である。It is a functional block diagram of a controller. フラッシュROM及びROMを複数のブロックに分割した場合の実施形態を示す説明図である。It is explanatory drawing which shows embodiment at the time of dividing | segmenting flash ROM and ROM into a some block. 主記憶部としてROMを適用した場合の実施形態を示す説明図である。It is explanatory drawing which shows embodiment at the time of applying ROM as a main memory part. 図8の記憶異常検出処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the memory | storage abnormality detection process procedure of FIG.

以下、本発明の実施の形態を図面を参照しながら説明する。
図1は、本発明の一実施形態を示す電動パワーステアリング装置の概略構成図である。
図1において、1は、ステアリングホイールであり、ステアリングホイール1に運転者から作用される操舵力が入力軸2aと出力軸2bとを有するステアリングシャフト2に伝達される。ステアリングシャフト2は、入力軸2aの一端がステアリングホイール1に連結され、他端は、トルクセンサ3を介して出力軸2bの一端に連結されている。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a schematic configuration diagram of an electric power steering apparatus showing an embodiment of the present invention.
In FIG. 1, reference numeral 1 denotes a steering wheel. A steering force applied to the steering wheel 1 from a driver is transmitted to a steering shaft 2 having an input shaft 2a and an output shaft 2b. The steering shaft 2 has one end of the input shaft 2 a connected to the steering wheel 1 and the other end connected to one end of the output shaft 2 b via the torque sensor 3.

出力軸2bに伝達された操舵力は、ユニバーサルジョイント4を介してロアシャフト5に伝達され、さらに、ユニバーサルジョイント6を介してピニオンシャフト7に伝達される。ピニオンシャフト7に伝達された操舵力は、ステアリングギヤ8を介してタイロッド9に伝達され、図示しない転舵輪を転舵させる。ここで、ステアリングギヤ8は、ピニオンシャフト7に連結されたピニオン8aとピニオン8aに噛合するラック8bとを有するラックアンドピニオン形式に構成され、ピニオン8aに伝達された回転運動をラック8bで直進運動に変換している。   The steering force transmitted to the output shaft 2 b is transmitted to the lower shaft 5 via the universal joint 4 and further transmitted to the pinion shaft 7 via the universal joint 6. The steering force transmitted to the pinion shaft 7 is transmitted to the tie rod 9 via the steering gear 8 to steer a steered wheel (not shown). Here, the steering gear 8 is configured in a rack and pinion type having a pinion 8a connected to the pinion shaft 7 and a rack 8b meshing with the pinion 8a, and the rotational motion transmitted to the pinion 8a is linearly moved by the rack 8b. Has been converted.

ステアリングシャフト2の出力軸2bには、補助操舵力を出力軸2bに伝達する減速ギヤ10が連結されており、減速ギヤ10には、補助操舵力を発生する電動モータ12の出力軸が連結されている。
トルクセンサ3は、ステアリングホイール1に付与されて入力軸2aに伝達された操舵トルクを検出するもので、例えば、操舵トルクを入力軸2a及び出力軸2b間に介挿した図示しないトーションバーの捩れ角変位に変換し、この捩れ角変位を非接触の磁気センサで検出するように構成されている。
A reduction gear 10 that transmits auxiliary steering force to the output shaft 2b is connected to the output shaft 2b of the steering shaft 2, and an output shaft of an electric motor 12 that generates auxiliary steering force is connected to the reduction gear 10. ing.
The torque sensor 3 detects the steering torque applied to the steering wheel 1 and transmitted to the input shaft 2a. For example, the torsion bar (not shown) in which the steering torque is interposed between the input shaft 2a and the output shaft 2b is used. It converts into angular displacement, and it is comprised so that this torsional angular displacement may be detected with a non-contact magnetic sensor.

トルクセンサ3から出力されるトルク検出値Tは、コントローラ13に入力される。コントローラ13には、トルク検出値Tの他に車速センサ14で検出した車速検出値Vおよび電動モータ12に流れるモータ電流検出値Imdも入力され、入力されるトルク検出値Tおよび車速検出値Vに応じた操舵補助力を電動モータ12で発生する操舵補助指令値Irefを算出し、算出した操舵補助指令値Irefとモータ電流検出値Imdとにより、電動モータ12に供給する駆動電流をフィードバック制御する。   The detected torque value T output from the torque sensor 3 is input to the controller 13. In addition to the torque detection value T, the controller 13 also receives a vehicle speed detection value V detected by the vehicle speed sensor 14 and a motor current detection value Imd flowing through the electric motor 12, and the inputted torque detection value T and vehicle speed detection value V are inputted. A steering assist command value Iref that generates the corresponding steering assist force in the electric motor 12 is calculated, and the drive current supplied to the electric motor 12 is feedback-controlled based on the calculated steering assist command value Iref and the motor current detection value Imd.

次に、コントローラ13の構成を説明する。
図2は、コントローラ13の構成を示すブロック図である。
コントローラ13は、図3に示すように、電動モータ12の制御処理を実行するマイクロコンピュータ15と、マイクロコンピュータ15から出力されるモータ駆動電流Imtに基づいて電動モータ12に供給する駆動電流を制御するモータ駆動回路17と、電動モータ12の出力電流であるモータ電流を検出するモータ電流検出回路18とを備えている。
Next, the configuration of the controller 13 will be described.
FIG. 2 is a block diagram showing the configuration of the controller 13.
As shown in FIG. 3, the controller 13 controls the drive current supplied to the electric motor 12 based on the microcomputer 15 that executes control processing of the electric motor 12 and the motor drive current Imt output from the microcomputer 15. A motor drive circuit 17 and a motor current detection circuit 18 that detects a motor current that is an output current of the electric motor 12 are provided.

マイクロコンピュータ15には、トルクセンサ3で検出したトルク検出値Tおよびモータ電流検出回路18で検出したモータ電流検出値ImdがそれぞれA/D変換器21および、22でデジタル値に変換されて入力される。
マイクロコンピュータ15は、トルク検出値T、車速検出値Vおよびモータ電流検出値Imdが入力される入力インタフェース回路15aと、トルク検出値T、車速検出値Vおよびモータ電流検出値Imdに基づいて電動モータ12を駆動制御して操舵トルクに応じた操舵補助力を発生する操舵補助制御処理を実行する中央処理装置15bと、中央処理装置15bで実行する操舵補助制御処理プログラム、記憶異常検出プログラム等のアプリケーションプログラムを格納する主記憶部としてのフラッシュROM15cと、このフラッシュROMに格納されているアプリケーションプログラムと同一のアプリケーションプログラムが記憶されている冗長記憶部としてのROM15dと、トルク検出値Tおよびモータ電流検出値Imd等の検出データ、中央処理装置15bで実行する操舵制御処理の処理過程で必要とするデータや処理結果を記憶するRAM15eと、出力インタフェース回路15fとを有する。
A torque detection value T detected by the torque sensor 3 and a motor current detection value Imd detected by the motor current detection circuit 18 are converted into digital values by the A / D converters 21 and 22, respectively, and inputted to the microcomputer 15. The
The microcomputer 15 includes an input interface circuit 15a to which the torque detection value T, the vehicle speed detection value V, and the motor current detection value Imd are input, and the electric motor based on the torque detection value T, the vehicle speed detection value V, and the motor current detection value Imd. The central processing unit 15b that executes steering assist control processing that controls the drive 12 to generate steering assisting force according to the steering torque, and the steering assist control processing program that is executed by the central processing unit 15b, the memory abnormality detection program, and the like A flash ROM 15c as a main storage unit for storing the program, a ROM 15d as a redundant storage unit for storing the same application program as the application program stored in the flash ROM, a torque detection value T and a motor current detection value Detection data such as Imd A motor, a RAM15e for storing data and processing results required during processing of the steering control processing executed by the central processing unit 15b, and an output interface circuit 15f.

フラッシュROM15cには、図3に示すように、操舵制御処理を中央処理装置15bに実行させるためのメインプログラムとなる操舵制御処理プログラム、フラッシュROM15cの記憶領域の異常を検出する記憶異常検出プログラム等のアプリケーションプログラムを格納する記憶内容が書換え可能な第1の記憶領域21と、中央処理装置15bにブートを行なわせるためのブートプログラムおよび中央処理装置15bに上述した第1の記憶領域の書換更新を行なわせるための書換更新プログラムを記憶する第2の記憶領域22とを備えている。   As shown in FIG. 3, the flash ROM 15c includes a steering control processing program as a main program for causing the central processing unit 15b to execute steering control processing, a storage abnormality detection program for detecting abnormality in the storage area of the flash ROM 15c, and the like. The first storage area 21 in which the storage contents for storing the application program can be rewritten, the boot program for causing the central processing unit 15b to boot, and the central processing unit 15b perform the above-described rewriting update of the first storage area. And a second storage area 22 for storing a rewrite update program for generating the program.

第2の記憶領域22は、第2記憶領域22内の先頭アドレスを含む第2記憶領域22内の前半部分にブートプログラムが記憶されており、第2記憶領域内の後半部分に書換プログラムが記憶されており、この第2の記憶領域22は書換えが不可能に構成されている。
中央処理装置15bは、操舵補助制御処理のブート時にフラッシュROM15cの第2の記憶領域の先頭アドレスにアクセスし、アクセスした第2記憶領域22に記憶されているブートプログラムにしたがって操舵補助制御処理のブートを行なって、操舵補助制御処理を実行する。
In the second storage area 22, the boot program is stored in the first half of the second storage area 22 including the start address in the second storage area 22, and the rewrite program is stored in the second half of the second storage area 22. The second storage area 22 is configured so that it cannot be rewritten.
The central processing unit 15b accesses the start address of the second storage area of the flash ROM 15c when the steering assist control process is booted, and boots the steering assist control process according to the boot program stored in the accessed second storage area 22 To perform steering assist control processing.

この操舵補助制御処理は、図4に示すように、先ず、ステップS1で、トルクセンサ3で検出したトルク検出値Tを読込み、次いでステップS2に移行して、車速検出値Vを読込、次いでステップS3に移行して、トルク検出値T及び車速検出値Vに基づいて図示しない操舵補助指令値算出マップを参照して操舵補助電流指令値Irefを算出してからステップS4に移行する。   As shown in FIG. 4, in this steering assist control process, first, in step S1, the torque detection value T detected by the torque sensor 3 is read, and then the process proceeds to step S2 where the vehicle speed detection value V is read, and then step The process proceeds to S3, a steering assist current command value Iref is calculated with reference to a steering assist command value calculation map (not shown) based on the detected torque value T and the detected vehicle speed V, and then the process proceeds to step S4.

このステップS4では、モータ電流検出回路18で検出したモータ電流検出値Imdを読込み、次いでステップS5に移行して、操舵補助電流指令値Irefからモータ電流検出値Imdを減算して電流偏差ΔIを算出してからステップS6に移行する。
このステップS6では、算出した電流偏差ΔIに基づいてPI制御処理を行なって、モータ駆動電流Imtを算出し、次いでステップS7に移行して、モータ駆動電流Imtをモータ駆動回路17に出力してから操舵補助制御処理を終了する。
In this step S4, the motor current detection value Imd detected by the motor current detection circuit 18 is read, and then the process proceeds to step S5, where the current deviation ΔI is calculated by subtracting the motor current detection value Imd from the steering assist current command value Iref. Then, the process proceeds to step S6.
In this step S6, PI control processing is performed based on the calculated current deviation ΔI to calculate the motor drive current Imt, and then the process proceeds to step S7 to output the motor drive current Imt to the motor drive circuit 17. The steering assist control process is terminated.

また、中央処理装置15bは、コントローラ13の起動時に、第1の記憶領域21に記憶されている記憶異常検出プログラムに基づく図5に示す記憶異常処理を実行し、チェックサムによるフラッシュROM15cの第1の記憶領域21のエラー検出を行なう。この記憶異常処理は、先ず、ステップS11に移行して、第1の記憶領域21内の加算値SUM0を算出し、次いでステップS12に移行して、算出した加算値SUM0が第2の記憶領域21に記憶されている第1の記憶領域21に格納したアプリケーションプログラムの加算値SUMsと一致するか否かを判定する。   Further, when the controller 13 is activated, the central processing unit 15b executes the storage abnormality process shown in FIG. 5 based on the storage abnormality detection program stored in the first storage area 21, and the first processing of the flash ROM 15c by the checksum is performed. The error of the storage area 21 is detected. In this storage abnormality process, first, the process proceeds to step S11 to calculate the addition value SUM0 in the first storage area 21, and then the process proceeds to step S12, where the calculated addition value SUM0 is the second storage area 21. It is determined whether or not it matches with the addition value SUMs of the application program stored in the first storage area 21 stored in.

この判定結果が、加算値SUM0と設定された加算値SUMsとが一致する場合には、第1の記憶領域21には記憶異常が存在しないものと判断して記憶異常検出処理を終了して、前述した図4の操舵補助制御処理に移行する。
また、ステップS12の判定結果が、加算値SUM0と予め設定された加算値SUMsとが不一致であるときには、ステップS13に移行して、第2の記憶領域22に格納されている書換更新プログラムに基づく書換処理を実行する。この書換処理は、冗長記憶部となるROM15dの記憶領域23に記憶されている操舵補助制御プログラム、記憶異常検出プログラムを含むアプリケーションプログラムをフラッシュROM15cの第1の記憶領域着21に書換更新する。
If the determination result is that the addition value SUM0 matches the set addition value SUMs, it is determined that there is no storage abnormality in the first storage area 21, and the storage abnormality detection process is terminated. The process proceeds to the steering assist control process shown in FIG.
On the other hand, when the addition result SUM0 does not match the preset addition value SUMs as a result of the determination in step S12, the process proceeds to step S13 and is based on the rewrite update program stored in the second storage area 22. Rewrite processing is executed. In this rewriting process, the application program including the steering assist control program and the storage abnormality detection program stored in the storage area 23 of the ROM 15d serving as the redundant storage unit is rewritten and updated to the first storage area arrival 21 of the flash ROM 15c.

次いで、ステップS14に移行して、書換更新した第1の記憶領域21の加算値SUM0′を算出し、次いでステップS15に移行して、算出した加算値SUM0′と更新記憶されたアプリケーションプログラムの加算値SUMs′とが一致するか否かを判定し、両者が一致する場合には、書換更新した第1の記憶領域に記憶異常が存在しないものと判断して記憶異常検出処理を終了して前述した図4の操舵補助制御処理に移行する。   Next, the process proceeds to step S14, where the addition value SUM0 'of the first storage area 21 that has been rewritten and updated is calculated. Then, the process proceeds to step S15, where the calculated addition value SUM0' is added to the updated and stored application program. It is determined whether or not the value SUMs ′ matches, and if both match, it is determined that there is no storage abnormality in the rewritten and updated first storage area, the storage abnormality detection process is terminated, and The process proceeds to the steering assist control process of FIG.

また、ステップS15の判定結果が、算出した加算値SUM0′が設定された加算値SUMs′と一致しない場合には、第1の記憶領域21自体に異常が発生しているものと判断して、ステップS16に移行して、操舵補助制御処理を終了させてから記憶異常検出処理を終了する。
また、コントローラ15の機能ブロック図は図6に示すように表される。
If the calculated addition value SUM0 ′ does not match the set addition value SUMs ′, it is determined that an abnormality has occurred in the first storage area 21 itself, The process proceeds to step S16, the steering assist control process is terminated, and then the memory abnormality detection process is terminated.
A functional block diagram of the controller 15 is represented as shown in FIG.

トルクセンサ3で検出されたトルク検出値Tおよび車速センサ14で検出された車速検出値Vが操舵補助電流指令値演算部41に供給され、この操舵補助電流指令値演算部41で、トルク検出値Tおよび車速検出値Vに基づいて図示しない操舵補助電流指令値算出マップを参照して操舵補助電流指令値Irefを算出する。
この操舵補助電流指令値演算部41で算出された操舵補助電流指令値Irefとモータ電流検出回路18で検出されたモータ電流検出値Imdとが減算器42に供給されて、この減算器42で補助電流指令値Irefからモータ電流検出値Imdを減算して電流偏差ΔIを算出し、算出した電流偏差ΔIをPI電流制御部43に供給して電流偏差ΔIに対してPI電流制御処理を実行してモータ電流Imtを算出し、算出したモータ電流Imtをモータ駆動回路17に出力する。また、フラッシュROM15cの記憶異常をROM記憶異常検出部44で検出し、フラッシュROM15cの第1の記憶領域21に異常が発生した場合には、冗長記憶部としてのROM15dに記憶されている操舵補助制御処理プログラム、記憶異常検出プログラム等を含むアプリケーションプログラムをフラッシュROM15cの第1の記憶領域に書換更新し、書換更新したアプリケーションプログラムのチェックサム結果が正常である場合には、そのまま記憶異常検出を終了するが、チェックサム結果が異常であるときにはフェイルセーフ処理部45に伝達してモータ駆動回路17への電源の供給を停止させる。
The torque detection value T detected by the torque sensor 3 and the vehicle speed detection value V detected by the vehicle speed sensor 14 are supplied to the steering auxiliary current command value calculation unit 41, and the torque detection value is calculated by the steering auxiliary current command value calculation unit 41. Based on T and the vehicle speed detection value V, a steering assist current command value Iref is calculated with reference to a steering assist current command value calculation map (not shown).
The steering assist current command value Iref calculated by the steering assist current command value calculation unit 41 and the motor current detection value Imd detected by the motor current detection circuit 18 are supplied to the subtractor 42, and the subtractor 42 assists. The current deviation ΔI is calculated by subtracting the motor current detection value Imd from the current command value Iref, and the calculated current deviation ΔI is supplied to the PI current control unit 43 to execute the PI current control process on the current deviation ΔI. The motor current Imt is calculated, and the calculated motor current Imt is output to the motor drive circuit 17. Further, when the storage abnormality of the flash ROM 15c is detected by the ROM storage abnormality detection unit 44 and an abnormality occurs in the first storage area 21 of the flash ROM 15c, the steering assist control stored in the ROM 15d serving as the redundant storage unit. The application program including the processing program and the storage abnormality detection program is rewritten and updated in the first storage area of the flash ROM 15c. If the checksum result of the rewritten application program is normal, the storage abnormality detection is terminated as it is. However, when the checksum result is abnormal, it is transmitted to the fail-safe processing unit 45 to stop the supply of power to the motor drive circuit 17.

ここで、前述した図4のステップS1〜S3の処理が電流指令値演算部41に対応し、ステップS4及びS5の処理が減算器42に対応し、ステップS6の処理がPI電流制御部43に対応している。また、図5の処理がROM記憶異常検出部44およびフェイルセーフ処理部45に対応している。
次に、上記実施形態の動作を説明する。
Here, the processing in steps S1 to S3 in FIG. 4 described above corresponds to the current command value calculation unit 41, the processing in steps S4 and S5 corresponds to the subtractor 42, and the processing in step S6 corresponds to the PI current control unit 43. It corresponds. 5 corresponds to the ROM storage abnormality detection unit 44 and the fail safe processing unit 45.
Next, the operation of the above embodiment will be described.

今、通常操舵状態では、コントローラ13のマイクロコンピュータ15の中央処理装置15bでフラッシュROM15cの第2の記憶領域21のブート部をアクセスして、操舵補助制御処理プログラムのブートが行なわれて、図4の操舵補助制御処理が実行される。
この操舵補助制御処理では、トルク検出値Tが読み込まれるとともに車速検出値Vが読込まれ(ステップS1,S2)、トルク検出値Tと車速検出値Vとに基づいて操舵補助電流指令値算出マップを参照して操舵補助電流指令値Irefが算出される(ステップS3)
次いで、モータ電流検出値Imdを読込み(ステップS4)、操舵補助電流指令値Irefからモータ電流検出値Imdを減算して電流偏差ΔIを算出し(ステップS5)、算出した電流偏差ΔIをPI電流制御処理を行なってモータ電流Imtを算出し(ステップS6)、算出したモータ電流Imtをモータ駆動回路17に出力することにより、電動モータ12をトルク検出値Tに応じた操舵補助力を発生するように駆動制御する。
Now, in the normal steering state, the central processing unit 15b of the microcomputer 15 of the controller 13 accesses the boot unit of the second storage area 21 of the flash ROM 15c to boot the steering assist control processing program. The steering assist control process is executed.
In this steering assist control process, the torque detection value T and the vehicle speed detection value V are read (steps S1 and S2), and the steering assist current command value calculation map is calculated based on the torque detection value T and the vehicle speed detection value V. The steering assist current command value Iref is calculated with reference to (step S3).
Next, the motor current detection value Imd is read (step S4), the motor current detection value Imd is subtracted from the steering assist current command value Iref to calculate a current deviation ΔI (step S5), and the calculated current deviation ΔI is PI current controlled. Processing is performed to calculate the motor current Imt (step S6), and the calculated motor current Imt is output to the motor drive circuit 17, so that the electric motor 12 generates a steering assist force according to the torque detection value T. Drive control.

そして、電動モータ12で発生された操舵トルクに応じた操舵補助力が減速ギヤ10を介して出力軸2bに伝達される。
このとき、車両が停車している状態でステアリングホイール1を操舵するいわゆる据え切り状態では、図示しない操舵補助電流指令値算出マップの特性線の勾配が大きいことにより、小さいトルク検出値Tで大きな操舵補助電流指令値Irefを算出するので、電動モータ12で大きな操舵補助力を発生して軽い操舵を行うことができる。
Then, a steering assist force corresponding to the steering torque generated by the electric motor 12 is transmitted to the output shaft 2 b via the reduction gear 10.
At this time, in a so-called stationary state in which the steering wheel 1 is steered while the vehicle is stopped, a large steering with a small torque detection value T is caused by a large gradient of a characteristic line of a steering assist current command value calculation map (not shown). Since the auxiliary current command value Iref is calculated, a large steering assist force can be generated by the electric motor 12 to perform light steering.

一方、車両が発進して、所定車速以上となると、操舵補助指令値算出マップの特性線の勾配が小さくなることにより、大きなトルク検出値Tでも小さな操舵補助指令値Irefを算出するので、電動モータ12で発生する操舵補助力が小さくなり、ステアリングホイール1の操舵が軽くなりすぎることを抑制して最適な操舵を行うことができる。
一方、コントローラ13に対して電源が投入された時点で、マイクロコンピュータ15の中央処理装置15bで、フラッシュROM15cの第1の記憶領域21に格納されている記憶異常検出プログラムをブートして、記憶異常検出処理を実行する。この記憶異常検出処理では、操舵補助制御プログラム、記憶異常検出プログラム等のアプリケーションプログラムを格納した第1の記憶領域21の加算値SUM0を算出し、算出したSUM0と予め設定された正常なアプリケーションプログラムの加算値SUMsとが一致するか否かを判定し、両者が一致する場合には第1の記憶領域21に格納されているアプリケーションプログラムが正常であると判断して、操舵補助制御プログラムを読込んで、前述した操舵補助制御処理を実行開始する。
On the other hand, when the vehicle starts and reaches a predetermined vehicle speed or more, the gradient of the characteristic line of the steering assist command value calculation map becomes small, so that a small steering assist command value Iref is calculated even with a large torque detection value T. The steering assist force generated at 12 is reduced, and the steering of the steering wheel 1 can be suppressed from becoming too light and optimal steering can be performed.
On the other hand, when the controller 13 is powered on, the central processing unit 15b of the microcomputer 15 boots the storage abnormality detection program stored in the first storage area 21 of the flash ROM 15c, and the storage abnormality is detected. Perform detection processing. In this memory abnormality detection process, an addition value SUM0 of the first storage area 21 storing application programs such as a steering assist control program and a memory abnormality detection program is calculated, and the calculated SUM0 and a preset normal application program are calculated. It is determined whether or not the added value SUMs matches, and if both match, it is determined that the application program stored in the first storage area 21 is normal, and the steering assist control program is read. Then, execution of the steering assist control process described above is started.

しかしながら、算出した第1の記憶領域21の加算値SUM0が予め設定された正常なアプリケーションプログラムの加算値SUMsと不一致であるときには、書換更新プログラムを実行して、冗長記憶部としてのROMに格納されている正常なアプリケーションプログラムをフラッシュROM15cの第1の記憶領域に書換更新する。
そして、書換更新して新たなアプリケーションプログラムが格納された第1の記憶領域21に対して再度チェックサムを実行して、新たなアプリケーションプログラムが書換更新された第1の記憶領域21の加算値SUM0′と正常なアプリケーションプログラムの加算値SUMs′とが一致するか否かを判定し、両者が一致したときには正常な書換えが行なわれたものと判断して操舵補助制御処理を実行開始する。
However, when the calculated addition value SUM0 of the first storage area 21 does not match the preset addition value SUMs of the normal application program, the rewrite update program is executed and stored in the ROM as the redundant storage unit. The normal application program is rewritten and updated in the first storage area of the flash ROM 15c.
Then, the checksum is executed again on the first storage area 21 in which the new application program is stored after rewriting and updating, and the addition value SUM0 of the first storage area 21 in which the new application program is updated and updated. It is determined whether or not 'and the added value SUMs' of the normal application program match, and when they match, it is determined that normal rewriting has been performed, and execution of the steering assist control process is started.

しかしなから、算出した第1の記憶領域21の加算値SUM0′が正常なアプリケーションプログラムの加算値SUMs′と不一致である場合には、フラッシュROM15cの第1の記憶領域21の記憶領域に異常が発生しているものと判断してモータ駆動回路17への電源供給を停止して、操舵補助制御処理を終了する。
このように、上記実施形態においては、フラッシュROM15cの第1の記憶領域21に格納された操舵補助制御プログラム、記憶異常検出プログラム等のアプリケーションプログラムが正常であるか否かをチェックサムによって診断し、第1の記憶領域21に格納されたアプリケーションプログラムが正常である場合には、操舵補助制御処理を実行開始するが、第1の記憶領域21のチェックサム結果が異常であるときには、書換更新フログラムを実行して冗長記憶部としてのROM15dに記憶されている正常なアプリケーションプログラムをフラッシュROM15cの第1記憶領域21に書換更新するので、異常となったアプリケーションプログラムを修復することができ、操舵補助制御処理を継続することができる。
However, if the calculated addition value SUM0 ′ of the first storage area 21 does not match the addition value SUMs ′ of the normal application program, there is an abnormality in the storage area of the first storage area 21 of the flash ROM 15c. The power supply to the motor drive circuit 17 is stopped because it is determined that it has occurred, and the steering assist control process is terminated.
As described above, in the above embodiment, the checksum is used to diagnose whether application programs such as the steering assist control program and the storage abnormality detection program stored in the first storage area 21 of the flash ROM 15c are normal, When the application program stored in the first storage area 21 is normal, the steering assist control process starts to be executed. When the checksum result in the first storage area 21 is abnormal, the rewrite update program is displayed. Since the normal application program stored in the ROM 15d as the redundant storage unit is executed and rewritten and updated in the first storage area 21 of the flash ROM 15c, the abnormal application program can be repaired and the steering assist control process can be performed. Can continue.

また、フラッシュROM15cの第1の記憶領域21への正常なアプリケーションプログラムの書換更新処理が終了した後にもチェックサム結果が異常であるときには、フラッシュROM15cの第1の記憶領域21に異常が発生しているものと判断して、モータ駆動制御回路17への電源の供給を停止して、電動モータ12の駆動制御を停止するフェイルセーフ処理を実行する。   If the checksum result is abnormal even after the normal application program rewriting / updating process to the first storage area 21 of the flash ROM 15c is completed, an abnormality has occurred in the first storage area 21 of the flash ROM 15c. Therefore, the supply of power to the motor drive control circuit 17 is stopped, and fail-safe processing for stopping the drive control of the electric motor 12 is executed.

なお、上記実施形態においては、フラッシュROM15cの第1の記憶領域21が1つの記憶領域で構成されている場合について説明したが、これに限定されるものではなく、図7に示すように、フラッシュROM15cの第1の記憶領域21を複数のブロックMB1〜MBnに分割し、これらブロックMB1〜MBnに操舵補助制御プログラムおよび記憶異常検出プログラムを含むアプリケーションプログラムを複数に分割して格納するとともに、冗長記憶部としてのROM15dにもブロックMB1′〜MBn′に分割し、これらブロックMB1′〜MBn′に操舵補助制御プログラムおよび記憶異常検出プログラムを含むアプリケーションプログラムを複数に分割して格納する。そして、記憶異常プログラムで、ブロックMB1〜MBn毎にチェックサム診断を行なってブロック単位で異常の発生の有無を検出し、チェックサム結果が異常となったブロックMBi(i=1〜n)に対して冗長記憶部としてのROM15dの対応するブロックMBi′のプログラムデータを書換更新するようにしてもよい。この場合には、書換更新をブロック単位で行なうので、書換更新処理時間を短くすることができる。   In the above embodiment, the case where the first storage area 21 of the flash ROM 15c is configured by one storage area has been described. However, the present invention is not limited to this, and as shown in FIG. The first storage area 21 of the ROM 15c is divided into a plurality of blocks MB1 to MBn, and application programs including a steering assist control program and a storage abnormality detection program are divided into a plurality of blocks MB1 to MBn and stored in a redundant manner. The ROM 15d as a unit is also divided into blocks MB1 ′ to MBn ′, and application programs including a steering assist control program and a storage abnormality detection program are divided into a plurality of blocks MB1 ′ to MBn ′ and stored. Then, the storage abnormality program performs checksum diagnosis for each block MB1 to MBn to detect whether or not an abnormality has occurred in units of blocks, and for the block MBi (i = 1 to n) where the checksum result is abnormal. Thus, the program data of the corresponding block MBi ′ of the ROM 15d as the redundant storage unit may be rewritten and updated. In this case, since the rewrite update is performed in units of blocks, the rewrite update processing time can be shortened.

また、上記実施形態においては、主記憶部としてフラッシュROM15cを適用した場合について説明したが、これに限定されるものではなく、主記憶部として通常のROM15fを適用した場合には、図8に示すように、ROM15dを複数のブロックMB0〜MBnに分割し、これらブロックMB0〜MBnに操舵補助制御プログラムおよび記憶異常検出プログラムを含むアプリケーションプログラムを分割して格納し、このうち記憶異常検出プログラムについては分割せずに特定ブロックとしての先頭のブロックMB0の先頭アドレスから書込むようにし、冗長記憶部としてのROM15dにもROM15fと同様のブロックMB0′〜MBn′に分割し、特定ブロックとしての先頭のブロックMB0′の先頭アドレスに記憶異常検出プログラムを格納すると、ともに残りの操舵補助制御プログラムを含むアプリケーションプログラムを分割して、各ブロックMB0′〜MBn′に格納する。   In the above-described embodiment, the case where the flash ROM 15c is applied as the main storage unit has been described. However, the present invention is not limited to this, and the case where the normal ROM 15f is applied as the main storage unit is illustrated in FIG. As described above, the ROM 15d is divided into a plurality of blocks MB0 to MBn, and the application programs including the steering assist control program and the memory abnormality detection program are divided and stored in these blocks MB0 to MBn, and among these, the memory abnormality detection program is divided. Without writing, the data is written from the head address of the first block MB0 as the specific block, and the ROM 15d as the redundant storage unit is divided into blocks MB0 ′ to MBn ′ similar to the ROM 15f, and the first block MB0 as the specific block is divided. Detect memory error at the start address of Storing programs, both by dividing the application program including the remaining steering assist control program stored in each block MB0'~MBn '.

そして、記憶異常検出プログラムに基づく記憶異常検出処理を図9に示すように実行する。この記憶異常検出処理では、先ず、ステップS21で、ブロックMB0〜MBn毎にチェックサム診断処理を実行する。次いで、ステップS22に移行して、異常となったブロックMBi(i=0〜n)が存在するか否かを判定する。
この判定結果が、異常となったブロックが存在しない場合には、そのまま記憶異常検出処理を終了して操舵補助制御処理を実行し、異常となったブロックMBiが存在する場合には、ステップS22に移行して、該当するブロックMBiに対応する冗長記憶部としてのROM15dのブロックMBi′のプログラムデータをRAMの所定アドレスに格納し、次いでステップS23に移行して、ROM15fのブロックMBiに対する読出アドレスをRAM15eのブロックMBi′の読出アドレスへ変更してから記憶異常検出処理を修理して、操舵補助制御処理に移行する。
Then, a memory abnormality detection process based on the memory abnormality detection program is executed as shown in FIG. In this memory abnormality detection process, first, in step S21, a checksum diagnosis process is executed for each of the blocks MB0 to MBn. Next, the process proceeds to step S22, and it is determined whether there is an abnormal block MBi (i = 0 to n).
If there is no abnormal block as a result of this determination, the storage abnormality detection process is terminated as it is, and the steering assist control process is executed. If there is an abnormal block MBi, the process proceeds to step S22. The program data of the block MBi ′ of the ROM 15d as the redundant storage unit corresponding to the corresponding block MBi is stored in a predetermined address of the RAM, and then the process proceeds to step S23 where the read address for the block MBi of the ROM 15f is stored in the RAM 15e. After changing to the read address of the block MBi ′, the storage abnormality detection process is repaired, and the process proceeds to the steering assist control process.

この場合には、ROM15fのブロックにチェックサム異常が発生した場合に、RAM15eに冗長記憶部15dに記憶されている正常なブロックを格納するので、操舵補助制御を開始又は継続することができる。
さらに、前述した図7の実施形態においても、フラッシュROM15cのブロックMBiが異常と判定されたときに、異常となったブロックMBiに対応する冗長記憶部としてのROM15dのブロックMBi′をRAM15eに書込んで、ブロックMBiをアクセスする際に、RAM15eのブロックMBi′をアクセスするようにしてもよい。
In this case, when a checksum abnormality occurs in the block of the ROM 15f, the normal block stored in the redundant storage unit 15d is stored in the RAM 15e, so that the steering assist control can be started or continued.
Further, also in the embodiment of FIG. 7 described above, when the block MBi of the flash ROM 15c is determined to be abnormal, the block MBi ′ of the ROM 15d as the redundant storage unit corresponding to the abnormal block MBi is written to the RAM 15e. Thus, when accessing the block MBi, the block MBi ′ of the RAM 15e may be accessed.

なお、上記実施の形態においては、コラムアシスト式の電動パワーステアリング装置に本発明を適用した場合について説明したが、これに限定されるものではなく、ラックアシスト式の電動パワーステアリングやピニオンアシスト式の電動パワーステアリング装置にも本発明を適用することができる。   In the above embodiment, the case where the present invention is applied to a column assist type electric power steering apparatus has been described. However, the present invention is not limited to this, and the rack assist type electric power steering or pinion assist type is not limited thereto. The present invention can also be applied to an electric power steering device.

1…ステアリングホイール、 2…ステアリングシャフト、 3…トルクセンサ、 8…ステアリングギヤ、 12…電動モータ、 13…コントローラ、 14…車速センサ、 15…マイクロコンピュータ、 15a…入力インタフェース回路、 15b…中央処理装置、 15c…フラッシュROM、 15d…ROM、 15e…RAM、 15f…出力インタフェース回路、15g…ROM、 17…モータ駆動回路、 18…モータ電流検出回路、21…第1の記憶領域、22…第2の記憶領域、23…記憶領域、41…操舵補助電流指令値演算部、42…減算器、43…PI電流制御部、44…ROM異常検出部、45…フェイルセーフ処理部 DESCRIPTION OF SYMBOLS 1 ... Steering wheel, 2 ... Steering shaft, 3 ... Torque sensor, 8 ... Steering gear, 12 ... Electric motor, 13 ... Controller, 14 ... Vehicle speed sensor, 15 ... Microcomputer, 15a ... Input interface circuit, 15b ... Central processing unit 15c ... Flash ROM, 15d ... ROM, 15e ... RAM, 15f ... Output interface circuit, 15g ... ROM, 17 ... Motor drive circuit, 18 ... Motor current detection circuit, 21 ... First storage area, 22 ... Second Storage area, 23 ... Storage area, 41 ... Steering auxiliary current command value calculation section, 42 ... Subtractor, 43 ... PI current control section, 44 ... ROM abnormality detection section, 45 ... Fail safe processing section

Claims (5)

操舵機構に対して操舵補助力を発生する電動モータを制御する電子制御装置を備えた電動パワーステアリング装置であって、
前記電子制御装置は、前記電動モータを制御するアプリケーションプログラム及び当該アプリケーションプログラムの記憶異常検出プログラムを格納する主記憶部と、少なくとも前記アプリケーションプログラムを格納する冗長記憶部とを備え、
前記記憶異常検出プログラムを実行することにより、前記主記憶部のアプリケーションプログラムの異常が検出されたときに、前記冗長記憶部に記憶されているアプリケーションプログラムによって電動モータの制御を継続することを特徴とする電動パワーステアリング装置。
An electric power steering device including an electronic control device that controls an electric motor that generates a steering assist force for a steering mechanism,
The electronic control device includes an application program that controls the electric motor and a main storage unit that stores a storage abnormality detection program of the application program, and a redundant storage unit that stores at least the application program,
When the abnormality of the application program in the main storage unit is detected by executing the storage abnormality detection program, the control of the electric motor is continued by the application program stored in the redundant storage unit. Electric power steering device.
前記主記憶部は、前記アプリケーションプログラム及び記憶異常検出プログラムを格納する第1の格納領域と、起動プログラムと前記第1の格納領域内のアプリケーションプログラムを書換更新するためのブートプログラムを格納する第2の格納領域とを有するフラッシュROMで構成され、前記記憶異常検出プログラムを実行することにより、前記アプリケーションプログラムの記憶異常を検出したときに、前記ブートプログラムを実行することにより、前記冗長記憶部に記憶されているアプリケーションプログラムを前記第1の格納領域に書換更新することを特徴とする請求項1に記載の電動パワーステアリング装置。   The main storage unit stores a first storage area for storing the application program and a storage abnormality detection program, a second program for storing a boot program for rewriting and updating an activation program and an application program in the first storage area. When the storage abnormality of the application program is detected by executing the storage abnormality detection program, the boot program is executed to store in the redundant storage unit. The electric power steering apparatus according to claim 1, wherein the application program being updated is rewritten and updated in the first storage area. 前記第1の格納領域は、少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを複数に分割して格納する小さな記憶容量の複数のブロックとを有し、
前記記憶異常検出プログラムは、前記第1の格納領域のブロック毎に記憶異常を検出するように構成され、当該記憶異常検出プログラムによって記憶異常となったブロックが検出されたときに、該当するブロックに対応して前記冗長記憶部に記憶されているブロックを読出して第1の記憶領域の該当ブロックを書換更新することを特徴とする請求項2に記載の電動パワーステアリング装置。
The first storage area includes at least a specific block for storing the storage abnormality detection program, and a plurality of blocks having a small storage capacity for storing the application program divided into a plurality of parts,
The storage abnormality detection program is configured to detect a storage abnormality for each block of the first storage area, and when a block having a storage abnormality is detected by the storage abnormality detection program, The electric power steering apparatus according to claim 2, wherein the block stored in the redundant storage unit is read correspondingly and the corresponding block in the first storage area is rewritten and updated.
前記主記憶部は、RAMをさらに有し、前記記憶異常検出プログラムは、記憶異常となったブロックを書換更新後に記憶異常が解消されないときに、前記冗長記憶部の該当ブロックを前記RAMに書込み、前記第2の記憶領域に記憶されているブートプログラムは、記憶異常検出プログラムで記憶異常を検出した第1の記憶領域のブロックをアクセスする際に、前記RAMに格納されているブロックをアクセスするように構成されていることを特徴とする請求項3に記載の電動パワーステアリング装置。   The main storage unit further includes a RAM, and the storage abnormality detection program writes the corresponding block of the redundant storage unit to the RAM when the storage abnormality is not solved after rewriting and updating the block in which the storage abnormality has occurred, The boot program stored in the second storage area accesses the block stored in the RAM when accessing the block of the first storage area where the storage abnormality is detected by the storage abnormality detection program. The electric power steering apparatus according to claim 3, wherein the electric power steering apparatus is configured as follows. 前記主記憶部は少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを所定数に分割して格納する小さな記憶容量の複数のブロックとを有するROMと、RAMとで構成され、前記冗長記憶部は、前記ROMと同様に少なくとも前記記憶異常検出プログラムを格納する特定ブロックと、前記アプリケーションプログラムを所定数に分割して格納する小さな記憶容量の複数のブロックとを有し、前記記憶異常検出プログラムはブロック毎に記憶異常を検出するように構成され、当該記憶異常検出プログラムによって、記憶異常のブロックが検出されたときに、該当するブロックを前記冗長記憶部から読出して前記RAMに書込み、前記主記憶部の記憶異常となったブロックをアクセスする際に、前記RAM上のブロックをアクセスすることを特徴とする請求項1に記載の電動パワーステアリング装置。   The main storage unit is composed of a ROM having at least a specific block for storing the storage abnormality detection program, a plurality of blocks having a small storage capacity for storing the application program by dividing it into a predetermined number, and a RAM, The redundant storage unit has a specific block for storing at least the storage abnormality detection program as in the ROM, and a plurality of blocks having a small storage capacity for storing the application program by dividing it into a predetermined number. The detection program is configured to detect a storage abnormality for each block. When a storage abnormality block is detected by the storage abnormality detection program, the corresponding block is read from the redundant storage unit and written to the RAM. When accessing the block in which the storage error occurred in the main storage unit, The electric power steering apparatus according to claim 1, wherein the accessing the blocks on the serial RAM.
JP2009042998A 2009-02-25 2009-02-25 Electric power steering device Active JP5223724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009042998A JP5223724B2 (en) 2009-02-25 2009-02-25 Electric power steering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009042998A JP5223724B2 (en) 2009-02-25 2009-02-25 Electric power steering device

Publications (2)

Publication Number Publication Date
JP2010195220A true JP2010195220A (en) 2010-09-09
JP5223724B2 JP5223724B2 (en) 2013-06-26

Family

ID=42820411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009042998A Active JP5223724B2 (en) 2009-02-25 2009-02-25 Electric power steering device

Country Status (1)

Country Link
JP (1) JP5223724B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005208958A (en) * 2004-01-23 2005-08-04 Hanshin Electric Co Ltd Method for maintaining data in program area of microcomputer
JP2008230529A (en) * 2007-03-23 2008-10-02 Nsk Ltd Electric power steering device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005208958A (en) * 2004-01-23 2005-08-04 Hanshin Electric Co Ltd Method for maintaining data in program area of microcomputer
JP2008230529A (en) * 2007-03-23 2008-10-02 Nsk Ltd Electric power steering device

Also Published As

Publication number Publication date
JP5223724B2 (en) 2013-06-26

Similar Documents

Publication Publication Date Title
JP6239895B2 (en) Motor control device and electric power steering device
JP2010184689A (en) Electric power steering device
JP5682861B2 (en) Electronic control device and electric power steering device using the same
JP5316963B2 (en) In-vehicle electronic control unit
CN102673641B (en) Harmonic pinion torque correction
JP2006331086A (en) Memory diagnostic method and electric power steering device with the function
JP6461327B2 (en) Electric power steering device
JP5182101B2 (en) Electric power steering device
JP5223724B2 (en) Electric power steering device
JP6540227B2 (en) Vehicle control device
JP2018100091A (en) Control device of electric power steering device
CN117429499A (en) Steering control system and steering control method
KR102172577B1 (en) Fault diagnostic apparatus and control method of motor driven power steering
JP5975015B2 (en) Electronic control device and electric power steering device using the same
JP2008225675A (en) Electronic control device
JP5169410B2 (en) Electric power steering device
JP3908072B2 (en) Calculation and monitoring method for electric power steering control device and electric power steering control device
JP5195512B2 (en) Electric power steering device
JP2006069456A (en) Steering device of vehicle
JP2008210245A (en) Electronic device
JP2010195125A (en) Electric power steering device
JP5397273B2 (en) Electric power steering device
JP5338060B2 (en) Electric power steering device
JP5402050B2 (en) Electric power steering device
JP2008117129A (en) Data collection device for abnormality analysis and on-vehicle controller using the same

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20101022

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20101022

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110516

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20111216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130115

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: 20130212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130225

R150 Certificate of patent or registration of utility model

Ref document number: 5223724

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160322

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250