JP6504283B2 - Control device of electric power steering device - Google Patents

Control device of electric power steering device Download PDF

Info

Publication number
JP6504283B2
JP6504283B2 JP2018019813A JP2018019813A JP6504283B2 JP 6504283 B2 JP6504283 B2 JP 6504283B2 JP 2018019813 A JP2018019813 A JP 2018019813A JP 2018019813 A JP2018019813 A JP 2018019813A JP 6504283 B2 JP6504283 B2 JP 6504283B2
Authority
JP
Japan
Prior art keywords
cpu
electric power
failure
power steering
steering apparatus
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
JP2018019813A
Other languages
Japanese (ja)
Other versions
JP2018076073A (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.)
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 JP2018019813A priority Critical patent/JP6504283B2/en
Publication of JP2018076073A publication Critical patent/JP2018076073A/en
Application granted granted Critical
Publication of JP6504283B2 publication Critical patent/JP6504283B2/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)

Description

本発明は、車両の操舵系にモータによる操舵補助力を減速機構を介して付与するようにした電動パワーステアリング装置の制御装置に関し、特に、少なくとも2個のCPU(Central Processing Unit)を有するマルチコアMCU(Multi-core Micro Controller Unit)を搭載し、1個のCPUに故障が発生した際に、故障していない他のCPUで電動パワーステアリング装置の基本機能のみを動作させることにより、電動パワーステアリング装置の継続性を高めるようにした電動パワーステアリング装置の制御装置に関する。   The present invention relates to a control device for an electric power steering apparatus in which a steering assist force by a motor is applied to a steering system of a vehicle via a reduction mechanism, and in particular, a multi-core MCU having at least two CPUs (Central Processing Units). (Multi-core Micro Controller Unit), and when a failure occurs in one CPU, the electric power steering device is operated by operating only the basic functions of the electric power steering device with other CPUs that are not broken Control device for an electric power steering apparatus that is designed to improve the continuity of the vehicle.

車両のステアリング機構にモータの回転力で操舵補助力(アシスト力)を付与する電動パワーステアリング装置は、モータの駆動力を減速機構を介してギア又はベルト等の伝達機構により、ステアリングシャフト或いはラック軸に操舵補助力を付与するようになっている。かかる従来の電動パワーステアリング装置(EPS)は、操舵補助力のトルクを正確に発生させるため、モータ電流のフィードバック制御を行っている。フィードバック制御は、操舵補助指令値(電流指令値)とモータ電流検出値との差が小さくなるようにモータ印加電圧を調整するものであり、モータ印加電圧の調整は、一般的にPWM(パルス幅変調)制御のデューティの調整で行っている。   An electric power steering apparatus which applies a steering assist force (assist force) to a steering mechanism of a vehicle by a rotational force of a motor uses a transmission mechanism such as a gear or a belt via a reduction mechanism to drive the motor. The steering assist power is given to the Such a conventional electric power steering apparatus (EPS) performs feedback control of motor current in order to generate torque of steering assist force accurately. The feedback control is to adjust the motor applied voltage so that the difference between the steering assist command value (current command value) and the motor current detection value becomes smaller, and the motor applied voltage is generally adjusted by PWM (pulse width It is performed by adjusting the duty of modulation) control.

電動パワーステアリング装置の一般的な構成を図1に示して説明すると、ハンドル1のコラム軸(ステアリングシャフト、ハンドル軸)2は減速機構の減速ギア3、ユニバーサルジョイント4a及び4b、ピニオンラック機構5、タイロッド6a,6bを経て、更にハブユニット7a,7bを介して操向車輪8L,8Rに連結されている。また、コラム軸2には、ハンドル1の操舵トルクを検出するトルクセンサ10及び操舵角θを検出する舵角センサ14が設けられており、ハンドル1の操舵力を補助するモータ20が減速機構の減速ギア(ギア比n)3を介してコラム軸2に連結されている。電動パワーステアリング装置を制御するコントロールユニット(ECU)30には、バッテリ13から電力が供給されると共に、イグニションキー11を経てイグニションキー信号が入力される。コントロールユニット30は、トルクセンサ10で検出された操舵トルクThと車速センサ12で検出された車速Velとに基づいてアシスト(操舵補助)指令の電流指令値の演算を行い、電流指令値に補償等を施した電圧制御指令値Vrefによってモータ20に供給する電流を制御する。舵角センサ14は必須のものではなく、配設されていなくても良い。   The general configuration of the electric power steering apparatus will be described with reference to FIG. 1. The column shaft (steering shaft, handle shaft) 2 of the steering wheel 1 is the reduction gear 3 of the reduction mechanism, universal joints 4a and 4b, the pinion rack mechanism 5, Through the tie rods 6a and 6b, the steering wheels 8L and 8R are further connected via the hub units 7a and 7b. The column shaft 2 is provided with a torque sensor 10 for detecting the steering torque of the steering wheel 1 and a steering angle sensor 14 for detecting the steering angle θ, and the motor 20 for assisting the steering force of the steering wheel 1 is a reduction mechanism. It is connected to the column shaft 2 via a reduction gear (gear ratio n) 3. Electric power is supplied from the battery 13 to the control unit (ECU) 30 that controls the electric power steering device, and an ignition key signal is input through the ignition key 11. The control unit 30 calculates the current command value of the assist (steering assist) command based on the steering torque Th detected by the torque sensor 10 and the vehicle speed Vel detected by the vehicle speed sensor 12, and compensates for the current command value The current supplied to the motor 20 is controlled by the voltage control command value Vref that has been applied. The steering angle sensor 14 is not essential and may not be provided.

コントロールユニット30には、車両の各種情報を授受するCAN(Controller Area Network)50が接続されており、車速VelはCAN50から受信することも可能である。また、コントロールユニット30には、CAN50以外の通信、アナログ/ディジタル信号、電波等を授受する非CAN51も接続されている。   The control unit 30 is connected with a CAN (Controller Area Network) 50 that transmits and receives various information of the vehicle, and the vehicle speed Vel can also be received from the CAN 50. The control unit 30 is also connected to a non-CAN 51 that transmits and receives communications other than the CAN 50, analog / digital signals, radio waves, and the like.

コントロールユニット30は主としてCPU(MPUやMCU等も含む)で構成されるが、そのCPU内部においてプログラムで実行される一般的な機能を示すと図2のようになる。   The control unit 30 is mainly composed of a CPU (including an MPU, an MCU, etc.), and a typical function executed by a program inside the CPU is as shown in FIG.

図2を参照してコントロールユニット30の機能及び動作を説明すると、トルクセンサ10で検出された操舵トルクTh及び車速センサ12で検出された(若しくはCAN50からの)車速Velは、電流指令値Iref1を演算する電流指令値演算部31に入力される。電流指令値演算部31は、入力された操舵トルクTh及び車速Velに基づいてアシストマップ等を用いて、モータ20に供給する電流の制御目標値である電流指令値Iref1を演算する。電流指令値Iref1は加算部32Aを経て電流制限部33に入力され、最大電流を制限された電流指令値Irefmが減算部32Bに入力され、フィードバックされているモータ電流値Imとの偏差I(Irefm−Im)が演算され、その偏差Iが操舵動作の特性改善のためのPI制御(比例積分制御)部35に入力される。PI制御部35で特性改善された電圧制御指令値VrefがPWM制御部36に入力され、更に駆動部としてのインバータ回路37を介してモータ20がPWM駆動される。モータ20の電流値Imはモータ電流検出器38で検出され、減算部32Bにフィードバックされる。インバータ回路37は駆動素子としてFETが用いられ、FETのブリッジ回路で構成されている。   The function and operation of the control unit 30 will be described with reference to FIG. 2. The steering torque Th detected by the torque sensor 10 and the vehicle speed Vel detected by the vehicle speed sensor 12 (or from CAN 50) have the current command value Iref1. The current command value calculator 31 to be calculated is input. The current command value calculation unit 31 calculates a current command value Iref1, which is a control target value of the current supplied to the motor 20, using an assist map or the like based on the input steering torque Th and the vehicle speed Vel. The current command value Iref1 is input to the current limiting unit 33 through the adding unit 32A, and the current command value Irefm whose maximum current is limited is input to the subtracting unit 32B, and a deviation I (Irefm) from the motor current value Im being fed back. −Im) is calculated, and the deviation I thereof is input to a PI control (proportional integral control) unit 35 for improving the characteristics of the steering operation. The voltage control command value Vref whose characteristics are improved by the PI control unit 35 is input to the PWM control unit 36, and the motor 20 is PWM-driven via the inverter circuit 37 as a drive unit. The current value Im of the motor 20 is detected by the motor current detector 38 and is fed back to the subtracting unit 32B. The inverter circuit 37 uses an FET as a drive element, and is formed of a bridge circuit of FET.

また、加算部32Aには補償信号生成部34からの補償信号CMが加算されており、補償信号CMの加算によって操舵システム系の特性補償を行い、収れん性や慣性特性等を改善するようになっている。補償信号生成部34は、セルフアライニングトルク(SAT)343と慣性342を加算部344で加算し、その加算結果に更に収れん性341を加算部345で加算し、加算部345の加算結果を補償信号CMとしている。   Further, the compensation signal CM from the compensation signal generation unit 34 is added to the addition unit 32A, and the characteristic compensation of the steering system is performed by the addition of the compensation signal CM to improve convergence and inertia characteristics. ing. The compensation signal generation unit 34 adds the self aligning torque (SAT) 343 and the inertia 342 in the addition unit 344 and further adds the convergence property 341 to the addition result in the addition unit 345 and compensates the addition result of the addition unit 345 It is assumed that the signal CM.

従来、このような電動パワーステアリング装置の制御装置(ECU)として、例えば特開2007−55605号公報(特許文献1)に示されるように、2個のMCU(2個のマイコン)を搭載し、電動パワーステアリング装置の制御を行うものが提案されている。   Conventionally, as a control device (ECU) of such an electric power steering apparatus, two MCUs (two microcomputers) are mounted as shown in, for example, Japanese Patent Laid-Open No. 2007-55605 (Patent Document 1), It has been proposed to control an electric power steering apparatus.

即ち、特許文献1では、電動パワーステアリング装置の制御装置(ECU)に、2個のMCUを搭載し、それぞれのMCUに異なる機能を割り当て、更にMCU間で相互監視を行い、1個のMCUに故障が発生した場合には、故障していないもう1個のMCU、即ち、正常なMCUだけで電動パワーステアリング装置の制御を継続させるようにしている。   That is, according to Patent Document 1, two MCUs are mounted on a control unit (ECU) of an electric power steering apparatus, different functions are assigned to the respective MCUs, and mutual monitoring is performed between the MCUs, and one MCU is monitored. If a failure occurs, the control of the electric power steering apparatus is continued only with another non-failed MCU, that is, a normal MCU.

特開2007−55605号公報Unexamined-Japanese-Patent No. 2007-55605

しかしながら、特許文献1に開示された制御装置(ECU)による制御方式では、MCU間に十分な通信容量を確保することが難しく、1個のMCUに故障が発生した場合に、電動パワーステアリング装置の動作を継続するために必要な情報が、正常なMCUに伝えられない恐れがある。   However, in the control method by the control device (ECU) disclosed in Patent Document 1, it is difficult to secure a sufficient communication capacity between the MCUs, and when a failure occurs in one of the MCUs, There is a possibility that the information necessary to continue the operation can not be transmitted to the normal MCU.

例えば、ハンドル(ステアリングホイール)の操舵力を補助するモータが高温状態にあり、電流に出力制限が掛けられている時に、1個のMCUに故障が発生した場合に、その出力制限情報が正常なMCUに伝えられずに、その正常なMCUで電動パワーステアリング装置の動作(操舵補助)を継続すると、モータが異常に発熱し、破壊され、電動パワーステアリング装置が危険な状態になる恐れが出てくるという問題が生じてしまう。   For example, when the motor that assists the steering force of the steering wheel (steering wheel) is in a high temperature state and output restriction is applied to the current, the output restriction information is normal when one MCU has a failure. If the operation (steering assistance) of the electric power steering device is continued with the normal MCU without being transmitted to the MCU, the motor may generate heat abnormally and be destroyed, and the electric power steering device may be in a dangerous state. It causes the problem of coming.

本発明は、上述のような事情よりなされたものであり、本発明の目的は、少なくとも2個のCPUを有するマルチコアMCUを搭載すると共に、マルチコアMCUに内蔵されている共有RAMに電動パワーステアリング装置の基本機能を継続するために必要な情報を予め格納することで、1個のCPUに故障が発生した場合に、必要な情報が正常なCPUに伝わらずに電動パワーステアリング装置が危険な状態になること無く、その正常なCPUで電動パワーステアリング装置の基本機能を安全に動作させる(即ち、正常なCPUで電動パワーステアリング装置の操舵補助を安全に継続する)ようにした電動パワーステアリング装置の制御装置を提供することにある。   The present invention has been made under the circumstances as described above, and an object of the present invention is to mount a multi-core MCU having at least two CPUs, and to provide an electric power steering apparatus to a shared RAM built in the multi-core MCU. By storing in advance the information necessary to continue the basic functions of the above, when a failure occurs in one CPU, the electric power steering device becomes dangerous without transmitting the necessary information to the normal CPU. Control of the electric power steering apparatus in which the basic function of the electric power steering apparatus is safely operated by the normal CPU (that is, the steering assistance of the electric power steering apparatus is safely continued by the normal CPU) It is in providing an apparatus.

本発明は、マルチコアMCUを搭載する電動パワーステアリング装置の制御装置に関し、本発明の上記目的は、前記マルチコアMCUは、前記電動パワーステアリング装置の基本機能を動作させる第1CPUと、前記第1CPUを常時監視しており、前記第1CPUの故障発生時に前記第1CPUの第1故障を検出できる第1CPU監視回路と、前記電動パワーステアリング装置の付加機能を動作させる第2CPU及び第3CPUと、前記第2CPU及び前記第3CPUを常時監視しており、前記第2CPU及び前記第3CPUの少なくとも一方の第2故障の発生時に前記第2故障を検出できる第2CPU監視回路と、前記第1CPU監視回路及び前記第2CPU監視回路から、前記第1CPU、前記第2CPU及び前記第3CPUの故障情報を受け取り、前記故障情報に基づいて前記第1CPU、前記第2CPU及び前記第3CPUの各動作を制御するCPU制御器と、前記第1CPU、前記第2CPU及び前記第3CPUからアクセス可能な共有RAMと、を備え、前記マルチコアMCUでは、前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておき、誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、前記第1CPU監視回路が前記第1故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようになっており、前記CPU制御器は、受け取った前記故障情報が前記第2CPU故障情報である場合に、前記第2CPU及び前記第3CPUの動作を停止させると共に、前記第2CPU故障情報を前記第1CPUに通知し、前記第1CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第1CPUだけで前記基本機能を動作させることにより、前記電動パワーステアリング装置の制御を継続することにより達成される。 The present invention relates to a control device for an electric power steering apparatus equipped with a multi-core MCU, and the above object of the present invention is that the multi-core MCU constantly controls the first CPU operating the basic functions of the electric power steering apparatus and the first CPU A first CPU monitoring circuit that can monitor and detect a first failure of the first CPU when a failure of the first CPU occurs, a second CPU and a third CPU that operate additional functions of the electric power steering apparatus, the second CPU, and A second CPU monitoring circuit that constantly monitors the third CPU and can detect the second failure when a second failure of at least one of the second CPU and the third CPU occurs, the first CPU monitoring circuit, and the second CPU monitoring From the circuit, failure information of the first CPU, the second CPU and the third CPU A CPU controller that controls the operations of the first CPU, the second CPU, and the third CPU based on the failure information, and a shared RAM accessible from the first CPU, the second CPU, and the third CPU. wherein the at multicore MCU, can you variables required to operate continuously the basic functions is previously stored in the shared RAM, to operate continuously the basic functionality for unintentional programming check A value obtained by inverting the necessary variable is also stored in the shared RAM, and when the first CPU monitoring circuit detects the first failure, the first CPU failure information is notified to the CPU controller, and the second CPU The second CPU failure information is notified to the CPU controller when the monitoring circuit detects the second failure. When the received failure information is the second CPU failure information, the controller stops the operation of the second CPU and the third CPU and notifies the first CPU of the second CPU failure information, and the first CPU Therefore, when it is determined that there is no erroneous rewriting of the shared RAM, the basic function is operated only by the first CPU, whereby the control of the electric power steering apparatus is continued .

発明の上記目的は、前記マルチコアMCUは、前記電動パワーステアリング装置の基本機能を動作させる第1CPUと、前記第1CPUを常時監視しており、前記第1CPUの故障発生時に前記第1CPUの第1故障を検出できる第1CPU監視回路と、前記電動パワーステアリング装置の付加機能を動作させる第2CPU及び第3CPUと、前記第2CPU及び前記第3CPUを常時監視しており、前記第2CPU及び前記第3CPUの少なくとも一方の第2故障の発生時に前記第2故障を検出できる第2CPU監視回路と、前記第1CPU監視回路及び前記第2CPU監視回路から、前記第1CPU、前記第2CPU及び前記第3CPUの故障情報を受け取り、前記故障情報に基づいて前記第1CPU、前記第2CPU及び前記第3CPUの各動作を制御するCPU制御器と、前記第1CPU、前記第2CPU及び前記第3CPUからアクセス可能な共有RAMと、を備え、前記マルチコアMCUでは、前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておき、誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、前記第1CPU監視回路が前記第1故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようになっており、前記CPU制御器は、受け取った前記故障情報が前記第1CPU故障情報である場合に、故障した前記第1CPUの動作を停止させると共に、正常な前記第2CPU及び前記第3CPUの動作をも停止させることにより、一旦前記電動パワーステアリング装置の制御を停止させるようにし、前記電動パワーステアリング装置の制御停止から所定の時間が経過した後に、前記第2CPU及び前記第3CPUで前記基本機能を動作させるように、前記第2CPU及び前記第3CPUを再起動し、前記第2CPU及び前記第3CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第2CPU及び前記第3CPUだけで前記電動パワーステアリング装置の制御を継続することにより達成され、また、前記第1CPUのみがアクセスする専用RAMである第1RAMと、前記第2CPU及び前記第3CPUのみがアクセスする専用RAMである第2RAMと、更に備えることにより、或いは、前記第2CPU及び前記第3CPUの少なくとも一方の故障時に、前記第1CPUの処理能力に余裕がある場合には、前記基本機能だけでなく、一部の付加機能も前記第1CPUで動作させるようにし、前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納すると共に、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておくことにより、或いは、前記第1CPUの故障時に、前記第2CPU又は前記第3CPUの処理能力に余裕がある場合には、前記第2CPU又は前記第3CPUで前記基本機能及び一部の付加機能を動作させるように、前記第2CPU及び前記第3CPUを再起動するようにし、前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納すると共に、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておくことにより、より効果的に達成される。
In the above object of the present invention, the multi-core MCU constantly monitors the first CPU for operating the basic function of the electric power steering apparatus and the first CPU, and when a failure occurs in the first CPU, the first CPU The first CPU monitoring circuit capable of detecting a fault, the second CPU and the third CPU for operating the additional function of the electric power steering apparatus, and the second CPU and the third CPU are constantly monitored, and the second CPU and the third CPU The second CPU monitoring circuit capable of detecting the second failure when at least one second failure occurs, the first CPU monitoring circuit and the second CPU monitoring circuit, the failure information of the first CPU, the second CPU and the third CPU And the first CPU, the second CPU and the third C based on the failure information. A CPU controller that controls each operation of U, and a shared RAM accessible from the first CPU, the second CPU, and the third CPU, and in the multi-core MCU, to continuously operate the basic function Necessary variables are stored in advance in the shared RAM, and values obtained by inverting the necessary variables for continuing to operate the basic function for erroneous rewriting check are also stored in the shared RAM, (1) When the CPU monitoring circuit detects the first failure, it notifies the CPU controller of the first CPU failure information, and when the second CPU monitoring circuit detects the second failure, the CPU control the second CPU failure information Prior to failure when the received failure information is the first CPU failure information. By stopping the operation of the first CPU and also stopping the normal operation of the second CPU and the third CPU, the control of the electric power steering apparatus is temporarily stopped, and the control of the electric power steering apparatus is stopped. After the predetermined time has elapsed, the second CPU and the third CPU are restarted so that the basic function is operated by the second CPU and the third CPU, and the error of the shared RAM is made by the second CPU and the third CPU. This is achieved by continuing control of the electric power steering apparatus with only the second CPU and the third CPU when it is determined that there has been no rewriting , and a first RAM, which is a dedicated RAM that only the first CPU accesses. , Only the second CPU and the third CPU access A first 2RAM a dedicated RAM, and further comprising, Or, the first 2CPU and at least one of failure of the first 3 CPU, if there is a margin in the first 1CPU processing power, only the basic function In addition, some additional functions are also operated by the first CPU, and variables necessary for continuously operating the some additional functions are stored in the shared RAM in advance, and the erroneous rewriting check is performed. By storing a value obtained by inverting a necessary variable in the shared RAM, or in the event of a failure of the first CPU, if there is enough processing capacity of the second CPU or the third CPU, the second CPU or the second CPU The second CPU and the third CPU are restarted so that the basic function and a part of additional functions are operated by the third CPU, and By storing in advance the variables necessary for continuously operating the additional functions in the shared RAM, and by storing values obtained by inverting the necessary variables for erroneous rewriting check in the shared RAM, Effectively achieved.

本発明に係る電動パワーステアリング装置の制御装置によれば、3個のCPUを有(内蔵)するマルチコアMCUを搭載すると共に、マルチコアMCUに内蔵されている共有RAMに電動パワーステアリング装置の基本機能を継続するために必要な情報(必要な変数)を予め格納するようにしているので、3個のCPUのうち1個のCPUに故障が発生した場合であっても、故障していない1個のCPUが共有RAMに格納されている基本機能を継続するために必要な情報(必要な変数)に確実にアクセス可能のため、基本機能を継続するために必要な情報(必要な変数)が故障していない1個のCPUに確実に伝わり、電動パワーステアリング装置が危険な状態になることも無く、その故障していないCPUのみで電動パワーステアリング装置の基本機能を安全に動作させることができる。   According to the control device of the electric power steering apparatus according to the present invention, the multicore MCU having (embedded with) three CPUs is mounted, and the basic function of the electric power steering apparatus is implemented in the shared RAM built in the multicore MCU. Since information (necessary variables) necessary for continuing is stored in advance, even if a failure occurs in one of the three CPUs, a single failure does not occur. Since the CPU can reliably access information (necessary variables) necessary to continue the basic function stored in the shared RAM, the information (necessary variable) necessary to continue the basic function fails. Electric power steering is transmitted only to the CPU that has not failed since there is no danger that the electric power steering device will be in a dangerous state. It is possible to safely operate the basic functions of the location.

即ち、本発明によれば、マルチコアMCUに内蔵されている何れか一つのCPUに故障が発生した場合であっても、残りの正常なCPUのみで電動パワーステアリング装置の制御(操舵補助)を安全に継続することができる。   That is, according to the present invention, even when a failure occurs in any one of the CPUs incorporated in the multi-core MCU, the control (steering assistance) of the electric power steering apparatus can be safely performed only with the remaining normal CPUs. Can be continued.

電動パワーステアリング装置の概要を示す構成図である。It is a block diagram which shows the outline | summary of an electrically-driven power steering apparatus. 電動パワーステアリング装置の制御系の構成例を示すブロック図である。It is a block diagram showing an example of composition of a control system of an electric power steering device. 本発明に係る電動パワーステアリング装置の制御装置に搭載されているマルチコアMCUの構成例を示すブロック図である。It is a block diagram showing an example of composition of a multi-core MCU mounted in a control device of an electric power steering device concerning the present invention. 本発明において、電動パワーステアリング装置の付加機能を動作させている第2CPUに故障が発生した場合のマルチコアMCUの動作を示すフローチャートである。In this invention, it is a flowchart which shows operation | movement of a multi-core MCU when failure generate | occur | produces in 2nd CPU which is operating the additional function of an electric-power-steering apparatus. 本発明において、電動パワーステアリング装置の基本機能を動作させている第1CPUに故障が発生した場合のマルチコアMCUの動作を示すフローチャートである。In this invention, it is a flowchart which shows operation | movement of multi-core MCU when failure generate | occur | produces in 1st CPU which is operating the basic function of an electric-power-steering apparatus.

本発明は、2個のCPUを有するマルチコアMCUを搭載し、2個のCPUのうち一方のCPUに故障(又は異常)が発生した際に、故障していない他方のCPU(即ち、正常なCPU)で電動パワーステアリング装置の基本機能のみを動作させることで、電動パワーステアリング装置の制御を継続させ、電動パワーステアリング装置の継続性を高めることができるようにした電動パワーステアリング装置の制御装置に関する。   The present invention mounts a multi-core MCU having two CPUs, and when a failure (or abnormality) occurs in one of the two CPUs, the other CPU that does not fail (that is, a normal CPU) The control device for the electric power steering device can continue the control of the electric power steering device by operating only the basic function of the electric power steering device, thereby enhancing the continuity of the electric power steering device.

以下に、図面を参照しながら、本発明の具体的な実施形態を詳細に説明する。   Hereinafter, specific embodiments of the present invention will be described in detail with reference to the drawings.

本発明は、2個のCPUを有するマルチコアMCUを搭載する電動パワーステアリング装置の制御装置に関し、図3は、本発明に係る電動パワーステアリング装置の制御装置に搭載されたマルチコアMCUの構成例を示すブロック図である。   The present invention relates to a control device for an electric power steering apparatus equipped with a multi-core MCU having two CPUs, and FIG. 3 shows a configuration example of the multi-core MCU mounted in the control device for an electric power steering apparatus according to the present invention. It is a block diagram.

本発明では、図3に示されるように、電動パワーステアリング装置の制御装置に搭載されたマルチコアMCU40は、第1CPU420と、第1CPU420を監視するための第1CPU監視回路421と、第1RAM422と、第2CPU430と、第2CPU430を監視するための第2CPU監視回路431と、第2RAM432と、第1CPU監視回路421及び第2CPU監視回路431から、各CPUの故障情報を受け取り、受け取った故障情報に基づいて各CPUの動作を制御するCPU制御器41と、共有RAM44と、ROM45と、ペリフェラル46とを備えている。   In the present invention, as shown in FIG. 3, the multi-core MCU 40 mounted in the control device of the electric power steering apparatus comprises a first CPU 420, a first CPU monitoring circuit 421 for monitoring the first CPU 420, a first RAM 422, 2) receiving failure information of each CPU from the second CPU monitoring circuit 431 for monitoring the second CPU 430, the second CPU 432, the first CPU monitoring circuit 421, and the second CPU monitoring circuit 431, and based on the received failure information A CPU controller 41 for controlling the operation of the CPU, a shared RAM 44, a ROM 45, and a peripheral 46 are provided.

また、マルチコアMCU40では、第1CPU420及び第2CPU430の両方から、共有RAM44、ROM45及びペリフェラル46の何れにもアクセス可能となっている。第1CPU監視回路421によって、第1CPU420が常時監視されていると共に、第2CPU監視回路431によって、第2CPU430が常時監視されている。   Further, in the multi-core MCU 40, both of the first CPU 420 and the second CPU 430 can access any of the shared RAM 44, the ROM 45 and the peripheral 46. The first CPU monitoring circuit 421 constantly monitors the first CPU 420, and the second CPU monitoring circuit 431 constantly monitors the second CPU 430.

更に、第1RAM422を第1CPU420のみがアクセスする第1CPU420専用RAMとすると共に、第2RAM432を第2CPU430のみがアクセスする第2CPU430専用RAMとする。   Furthermore, the first RAM 422 is a RAM dedicated to the first CPU 420 that only the first CPU 420 accesses, and the second RAM 432 is a RAM dedicated to the second CPU 430 that only the second CPU 430 accesses.

更に、マルチコアMCU40では、第1CPU420と第2CPU430で同じプログラム(同じ機能)を動作させることができるようにするために、第1RAM422のアドレスと第2RAM432のアドレスを同じにする。   Furthermore, in the multi-core MCU 40, the address of the first RAM 422 and the address of the second RAM 432 are the same in order to enable the first CPU 420 and the second CPU 430 to operate the same program (the same function).

本発明では、通常時には、第1CPU420では、電動パワーステアリング装置の制御において最低限必要な基本機能(以下、単に、「電動パワーステアリング装置の基本機能」又は「基本機能」とも言う。)を動作させると共に、第2CPU430では、電動パワーステアリング装置の操舵性を改善するための付加機能(以下、単に、「電動パワーステアリング装置の付加機能」又は「付加機能」とも言う。)を動作させるようになっている。   In the present invention, at the normal time, the first CPU 420 operates a basic function (hereinafter, also simply referred to as “basic function of the electric power steering apparatus” or “basic function”) that is the minimum required to control the electric power steering apparatus. At the same time, the second CPU 430 operates an additional function (hereinafter, also simply referred to as "additional function of the electric power steering device" or "additional function") for improving the steering performance of the electric power steering device. There is.

第1CPU420に対して第1CPU監視回路421が配置されていると共に、第2CPU430に対して第2CPU監視回路431が配置されており、各CPUの故障発生時に、各CPU監視回路によって各CPUの故障を検出できるようになっている。また、第1CPU監視回路421は第1CPU420の故障を検出した時に、第1CPU420に関する故障情報(以下、第1CPU故障情報と称する。)をCPU制御器41に通知するようになっており、第2CPU監視回路431は第2CPU430の故障を検出した時に、第2CPU430に関する故障情報(以下、第2CPU故障情報と称する。)をCPU制御器41に通知するようになっている。   The first CPU monitoring circuit 421 is disposed with respect to the first CPU 420, and the second CPU monitoring circuit 431 is disposed with respect to the second CPU 430. When a failure occurs in each CPU, each CPU monitoring circuit It can be detected. Further, when the first CPU monitoring circuit 421 detects a failure of the first CPU 420, the first CPU monitoring circuit 421 notifies the CPU controller 41 of failure information related to the first CPU 420 (hereinafter referred to as first CPU failure information). When the circuit 431 detects a failure of the second CPU 430, the circuit 431 notifies the CPU controller 41 of failure information (hereinafter referred to as second CPU failure information) related to the second CPU 430.

CPU制御器41が受け取った故障情報は第2CPU故障情報である場合に(即ち、付加機能を動作させている第2CPU430に故障が発生した場合に)、CPU制御器41は故障した第2CPU430の動作を停止させ、基本機能を動作させている正常な第1CPU420だけで電動パワーステアリング装置を制御するようにする。   When the failure information received by the CPU controller 41 is the second CPU failure information (that is, when a failure occurs in the second CPU 430 operating the additional function), the CPU controller 41 operates the failed second CPU 430 Is stopped, and the electric power steering apparatus is controlled only by the normal first CPU 420 operating the basic function.

また、CPU制御器41が受け取った故障情報は第1CPU故障情報である場合に(即ち、基本機能を動作させている第1CPU420に故障が発生した場合に)、CPU制御器41は、両方のCPU(即ち、故障した第1CPU420と正常な第2CPU430)を停止させ、モータへの電流出力を止めることにより、一旦電動パワーステアリング装置の制御を停止させる。そして、電動パワーステアリング装置制御の停止から所定の時間が経過した後に、CPU制御器41は、故障していない第2CPU430を再起動し、再起動した第2CPU430に、電動パワーステアリング装置の基本機能を動作させることで、電動パワーステアリング装置の制御を継続させるようにする。   Further, if the failure information received by the CPU controller 41 is the first CPU failure information (ie, if a failure occurs in the first CPU 420 operating the basic function), the CPU controller 41 controls both CPUs. In other words, the control of the electric power steering apparatus is temporarily stopped by stopping the failure of the first CPU 420 and the normal second CPU 430 and stopping the current output to the motor. Then, after a predetermined time has elapsed since the stop of the electric power steering device control, the CPU controller 41 restarts the second CPU 430 which has not failed and the basic function of the electric power steering device is sent to the second CPU 430 which restarts. By operating it, control of the electric power steering apparatus is continued.

本発明では、CPU制御器41による電動パワーステアリング装置制御の停止から、第2CPU430による電動パワーステアリング装置制御の再開までの時間(即ち、上述した所定の時間)を車両が危険挙動とならない時間とする。例えば、好適な所定の時間を20〜30ms程度とする。   In the present invention, the time from the stop of the control of the electric power steering device by the CPU controller 41 to the restart of the control of the electric power steering device by the second CPU 430 (that is, the predetermined time described above) is the time when the vehicle does not become dangerous behavior. . For example, a suitable predetermined time is set to about 20 to 30 ms.

そして、本発明では、ペリフェラル46の制御レジスタに、CPUによる誤書き換え防止機能を付けるようにする。ペリフェラル46の制御レジスタの誤書き換え防止機能を実現する方法として、例えば、同じ値をペリフェラル46の制御レジスタに2度書きしないと、その値がペリフェラル46の制御レジスタに反映されないようにする方法、また、ペリフェラル46の制御レジスタを書き換え可能モードにしてからでなければ、ペリフェラル46の制御レジスタの値が書き換えられないようにする方法がある。   In the present invention, the control register of the peripheral 46 is provided with a function to prevent erroneous rewriting by the CPU. As a method of realizing the erroneous rewriting prevention function of the control register of the peripheral 46, for example, a method of preventing the value from being reflected in the control register of the peripheral 46 unless the same value is written twice to the control register of the peripheral 46 There is a method of preventing the value of the control register of the peripheral 46 from being rewritten unless the control register of the peripheral 46 is put in the rewritable mode.

また、本発明では、通常時に電動パワーステアリング装置の付加機能を動作させるようになっている第2CPU430で、電動パワーステアリング装置の基本機能を動作させるために、マルチコアMCU40に、以下の三つの機能を持たせる。

機能A
電動パワーステアリング装置の基本機能に必要で、且つ、第1RAM422に予め格納されている固定値は、第2RAM432の同じアドレスにも予め格納しておくようにする。

機能B
電動パワーステアリング装置の基本機能を継続して動作させるために必要な情報(必要な変数)を共有RAM44に予め格納するとともに、これら必要な変数の誤書き換えをチェックするために、上述した必要な変数を反転した値も共有RAM44に格納しておくようにする。
In the present invention, the following three functions are added to the multi-core MCU 40 in order to operate the basic functions of the electric power steering apparatus by the second CPU 430, which normally operates the additional functions of the electric power steering apparatus. Have it.

Function A
The fixed value necessary for the basic function of the electric power steering apparatus and stored in advance in the first RAM 422 is stored in advance at the same address of the second RAM 432.

Function B
Information necessary for continuously operating the basic functions of the electric power steering apparatus (necessary variables) is stored in advance in the shared RAM 44, and the above-mentioned necessary variables are used to check for erroneous rewriting of these necessary variables. Is also stored in the shared RAM 44.

なお、本発明のマルチコアMCU40では、共有RAM44の誤書き換えチェックを行うために、上述したように、必要な変数を反転した値も共有RAM44に格納しておくことで、共有RAM44に格納されている必要な変数と必要な変数を反転した値とを比較することで共有RAM44の誤書き換えチェックを行うようにしているが、本発明の共有RAM44の誤書き換えチェック方法はこれに限られることがなく、既知の誤書き換えチェック方法であれば、本発明の共有RAM44の誤書き換えチェック方法とすることができる。例えば、チェックサムによる共有RAM44の誤書き換えチェックを行うようにしても良い。

機能C
共有RAM44の誤書き換え(共有RAM44に格納されている、電動パワーステアリング装置の基本機能を継続して動作させるために必要な変数の誤書き換え)が検出された場合に、電動パワーステアリング装置の制御を停止するようにする。

ところで、CPU(第1CPU420又は第2CPU430)に故障が発生した場合に、壊れたCPU(故障した第1CPU420又は第2CPU430)が共有RAM44やペリフェラル46の制御レジスタを誤って書き換える可能性がある。ペリフェラル46の制御レジスタが設計値と異なる値に書き換えられた場合(即ち、ペリフェラル46の制御レジスタが誤書き換えされた場合)に、ペリフェラル46は設計した通りに動作せず、電動パワーステアリング装置の異常挙動、ひいては車両の危険挙動へと至る可能性が生じてしまう。
In the multi-core MCU 40 according to the present invention, the value obtained by inverting the necessary variable is also stored in the shared RAM 44 as described above in order to check the erroneous rewriting of the shared RAM 44. Although the erroneous rewrite check of the shared RAM 44 is performed by comparing the required variable and the inverted value of the required variable, the erroneous rewrite check method of the shared RAM 44 of the present invention is not limited to this. The known erroneous rewrite check method can be the erroneous rewrite check method of the shared RAM 44 of the present invention. For example, the erroneous rewrite check of the shared RAM 44 may be performed using a checksum.

Function C
When the erroneous rewriting of the shared RAM 44 (errors of variables stored in the shared RAM 44 for continuing the basic functions of the electric power steering apparatus to operate) is detected, control of the electric power steering apparatus is performed. Make it stop.

By the way, when a failure occurs in the CPU (the first CPU 420 or the second CPU 430), there is a possibility that the broken CPU (the failed first CPU 420 or the second CPU 430) erroneously rewrites the control register of the shared RAM 44 or the peripheral 46. When the control register of the peripheral 46 is rewritten to a value different from the designed value (ie, when the control register of the peripheral 46 is erroneously rewritten), the peripheral 46 does not operate as designed, and the abnormality of the electric power steering device There is a possibility that the behavior and thus the dangerous behavior of the vehicle may be reached.

そこで、本発明では、上述したように、ペリフェラル46の制御レジスタにCPUによる誤書き換え防止機能を付けるようにすると共に、共有RAM44の誤書き換えをチェックするようにする。換言すれば、本発明では、ペリフェラル46の制御レジスタにCPUによる誤書き換え防止機能を付けるのと、共有RAM44の誤書き換えをチェックするのは、CPU(第1CPU420又は第2CPU430)が故障して、CPU監視回路(第1CPU監視回路421又は第2CPU監視回路431)がその故障を検出し、故障したCPUがCPU制御器41によって停止させられるまでに、電動パワーステアリング装置の基本動作(基本機能)を継続するのに必要な制御レジスタや共有RAM44に格納されている必要な変数が、誤書き換えされるのを防ぐためである。   Therefore, in the present invention, as described above, the control register of the peripheral 46 is provided with the function of preventing erroneous rewriting by the CPU, and erroneous rewriting of the shared RAM 44 is checked. In other words, according to the present invention, adding the function of preventing erroneous rewriting by the CPU to the control register of the peripheral 46 and checking the erroneous rewriting of the shared RAM 44 cause the CPU (the first CPU 420 or the second CPU 430) to fail. The monitoring circuit (the first CPU monitoring circuit 421 or the second CPU monitoring circuit 431) detects the failure, and continues the basic operation (basic function) of the electric power steering apparatus until the failed CPU is stopped by the CPU controller 41. This is in order to prevent erroneous rewriting of control registers required to do so and necessary variables stored in the shared RAM 44.

このように、本発明によれば、ペリフェラル46の制御レジスタに上述したようなCPUによる誤書き換え防止機能を付けると共に、共有RAM44の誤書き換えをチェックすることにより、CPU(第1CPU420又は第2CPU430)に故障が発生した場合であっても、共有RAM44に格納されている変数が誤書き換えされることがなく、また、ペリフェラル46の制御レジスタが誤書き換えされることもなく、制御レジスタの設計値が設定されていることが保証されるため、正常なCPUのみを用いて、電動パワーステアリング装置の制御を安全に継続することが可能になる。   As described above, according to the present invention, the CPU (first CPU 420 or second CPU 430) is provided with a control register of the peripheral 46 with the above-mentioned erroneous rewriting prevention function by the CPU and checking erroneous rewriting of the shared RAM 44. Even when a failure occurs, the variable stored in shared RAM 44 is not erroneously rewritten, and the control register of peripheral 46 is not erroneously rewritten, and the design value of the control register is set. It is possible to safely continue the control of the electric power steering apparatus using only a normal CPU because it is guaranteed that it is done.

図4は、本発明において、電動パワーステアリング装置の付加機能を動作させている第2CPU430に故障が発生した場合のマルチコアMCU40の動作を示すフローチャートである。また、図5は、本発明において、電動パワーステアリング装置の基本機能を動作させている第1CPU420に故障が発生した場合のマルチコアMCU40の動作を示すフローチャートである。   FIG. 4 is a flow chart showing the operation of the multi-core MCU 40 when a failure occurs in the second CPU 430 operating the additional function of the electric power steering apparatus according to the present invention. FIG. 5 is a flow chart showing the operation of the multi-core MCU 40 when a failure occurs in the first CPU 420 operating the basic function of the electric power steering apparatus in the present invention.

まず、図4に基づいて、本発明において、付加機能を動作させている第2CPU430の故障時のマルチコアMCU40の動作(処理)を説明する。   First, the operation (processing) of the multi-core MCU 40 at the time of failure of the second CPU 430 operating the additional function in the present invention will be described based on FIG. 4.

図4に示されるように、マルチコアMCU40を搭載する電動パワーステアリング装置の制御装置では、第2CPU430に故障が発生した時に、第2CPU430を常時監視している第2CPU監視回路431は、第2CPU430の故障を検出し、第2CPU故障情報をCPU制御器41に送信する(ステップS10)。次に、CPU制御器41は、第2CPU監視回路431からの第2CPU故障情報を受信し、受信した第2CPU故障情報に基づいて、故障した第2CPU430の動作を停止させるとともに(ステップS11)、第2CPU430の故障(第2CPU故障情報)を第1CPU420に通知(送信)する(ステップS12)。第1CPU420は、CPU制御器41からの第2CPU故障情報を受信すると、共有RAM44の誤書き換えは無かったか否かをチェックする(ステップS13及びステップS14)。共有RAM44の誤書き換えは無かったと判定された場合に、基本機能を動作させている第1CPU420だけで電動パワーステアリング装置の制御を継続するようにする(ステップS15)。一方、共有RAM44の誤書き換えは有ったと判定された場合(即ち、共有RAM44の誤書き換えが検出された場合)に、第1CPU420の動作も停止させることで、電動パワーステアリング装置の制御を停止させる(ステップS16)。   As shown in FIG. 4, in the control device of the electric power steering apparatus equipped with the multi-core MCU 40, the second CPU monitoring circuit 431 constantly monitoring the second CPU 430 when a failure occurs in the second CPU 430 is a failure of the second CPU 430 Is detected, and second CPU failure information is transmitted to the CPU controller 41 (step S10). Next, the CPU controller 41 receives the second CPU failure information from the second CPU monitoring circuit 431 and stops the operation of the failed second CPU 430 based on the received second CPU failure information (step S11). 2) notify (transmit) the first CPU 420 of the failure of the second CPU 430 (second CPU failure information) (step S12). When the first CPU 420 receives the second CPU failure information from the CPU controller 41, the first CPU 420 checks whether there is any erroneous rewriting of the shared RAM 44 (steps S13 and S14). If it is determined that there is no erroneous rewriting of the shared RAM 44, control of the electric power steering apparatus is continued only by the first CPU 420 operating the basic function (step S15). On the other hand, when it is determined that there is an erroneous rewrite of shared RAM 44 (that is, when an erroneous rewrite of shared RAM 44 is detected), the operation of first CPU 420 is also stopped to stop the control of the electric power steering apparatus. (Step S16).

次に、図5に基づいて、本発明において、基本機能を動作させている第1CPU420の故障時のマルチコアMCU40の動作(処理)を説明する。   Next, based on FIG. 5, the operation (processing) of the multi-core MCU 40 at the time of failure of the first CPU 420 operating the basic function in the present invention will be described.

図5に示されるように、マルチコアMCU40を搭載する電動パワーステアリング装置の制御装置では、第1CPU420に故障が発生した時に、第1CPU420を常時監視している第1CPU監視回路421は、第1CPU420の故障を検出し、第1CPU故障情報をCPU制御器41に送信する(ステップS20)。次に、CPU制御器41は、第1CPU監視回路421からの第1CPU故障情報を受信し、受信した第1CPU故障情報に基づいて、故障した第1CPU420の動作を停止させるとともに、正常な第2CPU430の動作をも停止させることにより(ステップS21)、一旦電動パワーステアリング装置の制御を停止させるようにし、電動パワーステアリング装置の制御停止から所定の時間(例えば、20〜30ms程度)が経過した後に、第2CPU430で電動パワーステアリング装置の基本機能を動作させるように、第2CPU430を再起動する(ステップS22)。   As shown in FIG. 5, in the control device for an electric power steering apparatus equipped with a multi-core MCU 40, the first CPU monitoring circuit 421 constantly monitoring the first CPU 420 when a failure occurs in the first CPU 420 is a failure of the first CPU 420. Is detected, and the first CPU failure information is transmitted to the CPU controller 41 (step S20). Next, the CPU controller 41 receives the first CPU failure information from the first CPU monitoring circuit 421 and stops the operation of the failed first CPU 420 based on the received first CPU failure information, and the normal second CPU 430 By stopping the operation (step S21), the control of the electric power steering apparatus is temporarily stopped, and after a predetermined time (for example, about 20 to 30 ms) has elapsed from the stop of the control of the electric power steering apparatus, The second CPU 430 is restarted so that the basic function of the electric power steering apparatus can be operated by the 2CPU 430 (step S22).

次に、第2CPU430は、共有RAM44の誤書き換えは無かったか否かをチェックする(ステップS23及びステップS24)。共有RAM44の誤書き換えは無かったと判定された場合に、基本機能を動作させている第2CPU430だけで電動パワーステアリング装置の制御を継続するようにする(ステップS25)。一方、共有RAM44の誤書き換えは有ったと判定された場合に、第2CPU430の動作も停止させることで、電動パワーステアリング装置の制御を停止させる(ステップS26)。   Next, the second CPU 430 checks whether there is any erroneous rewriting of the shared RAM 44 (steps S23 and S24). If it is determined that there is no erroneous rewriting of the shared RAM 44, control of the electric power steering apparatus is continued only by the second CPU 430 operating the basic function (step S25). On the other hand, when it is determined that there is erroneous rewriting of the shared RAM 44, the control of the electric power steering apparatus is stopped by stopping the operation of the second CPU 430 (step S26).

なお、本発明では、付加機能を動作させている第2CPU430の故障時に、基本機能を動作させている第1CPU420の処理能力に余裕がある場合には、基本機能だけでなく、付加機能の一部(以下、「一部の付加機能」ともいう)も第1CPU420で動作させるようにしても良い。ただし、その場合には、この追加された一部の付加機能を継続して動作させるために必要な変数を共有RAM44に予め格納する必要がある。また、これらの必要な変数の誤書き換えをチェックするために、これらの必要な変数を反転した値も共有RAM44に格納しておくようにする必要がある。   In the present invention, in the event of failure of the second CPU 430 operating the additional function, if there is enough processing capacity of the first CPU 420 operating the basic function, not only the basic function but a part of the additional function The first CPU 420 may also operate (hereinafter, also referred to as “some additional functions”). However, in this case, it is necessary to store in advance in the shared RAM 44 variables necessary for continuing to operate the added part of the additional functions. In addition, in order to check erroneous rewriting of these necessary variables, it is necessary to store values obtained by inverting these necessary variables in the shared RAM 44.

また、本発明では、基本機能を動作させている第1CPU420の故障時に、付加機能を動作させている第2CPU430の処理能力に余裕がある場合には、上記ステップS22において、第2CPU430で電動パワーステアリング装置の基本機能及び一部の付加機能を動作させるように、第2CPU430を再起動するようにしても良い。ただし、この場合も、この追加された一部の付加機能を継続して動作させるために必要な変数を共有RAM44に予め格納する必要がある。また、これらの必要な変数の誤書き換えをチェックするために、これらの必要な変数を反転した値も共有RAM44に格納しておくようにする必要がある。   Further, in the present invention, when there is a margin in the processing capability of the second CPU 430 operating the additional function at the time of failure of the first CPU 420 operating the basic function, the electric power steering by the second CPU 430 is performed in step S22. The second CPU 430 may be restarted to operate the basic functions and some additional functions of the device. However, also in this case, it is necessary to store in advance in the shared RAM 44 the variables necessary to operate the added part of the additional functions continuously. In addition, in order to check erroneous rewriting of these necessary variables, it is necessary to store values obtained by inverting these necessary variables in the shared RAM 44.

また、上述したように、本発明の一実施例として、2個のCPUを有するマルチコアMCUを搭載する電動パワーステアリング装置の制御装置について説明したが、本発明の電動パワーステアリング装置の制御装置に搭載されるマルチコアMCUとして、2個のCPUを有するマルチコアMCUに限定されることはなく、2個以上のCPU(例えば、3個CPU)を有するマルチコアMCUを使用することができる。その際に、電動パワーステアリング装置の基本機能や付加機能を適宜に各CPUで動作させるようにしても良い。例えば、基本機能を1個のCPUで、付加機能を残り2個のCPUで、それぞれ動作させるようにしても良い。また、上述した本発明の原理を応用し、付加機能を動作させている2個のCPUの故障時に、故障したCPUの動作を停止するようにしても良い。基本機能を動作させているCPUの故障時に、故障したそのCPUの動作を停止するとともに、付加機能を動作させている正常なCPUの何れかをも停止し、所定の時間が経過した後に、停止したそのCPUのみで基本機能を動作させているようにしても良い。   Further, as described above, although the control device for the electric power steering apparatus equipped with the multi-core MCU having two CPUs has been described as an embodiment of the present invention, the control device for the electric power steering device of the present invention The multi-core MCU to be used is not limited to a multi-core MCU having two CPUs, and a multi-core MCU having two or more CPUs (for example, three CPUs) can be used. At that time, the basic functions and additional functions of the electric power steering apparatus may be appropriately operated by each CPU. For example, the basic function may be operated by one CPU, and the additional function may be operated by the remaining two CPUs. Further, the principle of the present invention described above may be applied to stop the operation of the failed CPU when the two CPUs operating the additional functions fail. At the time of failure of the CPU operating the basic function, the operation of the failed CPU is stopped, and any normal CPU operating the additional function is also stopped, and after a predetermined time has elapsed, the operation is stopped. The basic function may be operated only by the CPU.

1 ハンドル
2 コラム軸(ステアリングシャフト、ハンドル軸)
10 トルクセンサ
12 車速センサ
14 舵角センサ
20 モータ
30 コントロールユニット(ECU)
31 電流指令値演算部
33 電流制限部
34 補償信号生成部
35 PI制御部
36 PWM制御部
37 インバータ回路
40 マルチコアMCU
41 CPU制御器
420 第1CPU
421 第1CPU監視回路
422 第1RAM
430 第2CPU
431 第2CPU監視回路
432 第2RAM
44 共有RAM
45 ROM
46 ペリフェラル
50 CAN
1 Steering wheel 2 Column axis (steering shaft, steering wheel axis)
10 torque sensor 12 vehicle speed sensor 14 steering angle sensor 20 motor 30 control unit (ECU)
31 current command value operation unit 33 current limit unit 34 compensation signal generation unit 35 PI control unit 36 PWM control unit 37 inverter circuit 40 multi-core MCU
41 CPU controller 420 first CPU
421 first CPU monitoring circuit 422 first RAM
430 second CPU
431 Second CPU monitoring circuit 432 Second RAM
44 Shared RAM
45 ROM
46 peripheral 50 CAN

Claims (6)

マルチコアMCUを搭載する電動パワーステアリング装置の制御装置において、
前記マルチコアMCUは、
前記電動パワーステアリング装置の基本機能を動作させる第1CPUと、
前記第1CPUを常時監視しており、前記第1CPUの故障発生時に前記第1CPUの第1故障を検出できる第1CPU監視回路と、
前記電動パワーステアリング装置の付加機能を動作させる第2CPU及び第3CPUと、
前記第2CPU及び前記第3CPUを常時監視しており、前記第2CPU及び前記第3CPUの少なくとも一方の第2故障の発生時に前記第2故障を検出できる第2CPU監視回路と、
前記第1CPU監視回路及び前記第2CPU監視回路から、前記第1CPU、前記第2CPU及び前記第3CPUの故障情報を受け取り、前記故障情報に基づいて前記第1CPU、前記第2CPU及び前記第3CPUの各動作を制御するCPU制御器と、
前記第1CPU、前記第2CPU及び前記第3CPUからアクセス可能な共有RAMと、
を備え、
前記マルチコアMCUでは、
前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておき、
誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、
前記第1CPU監視回路が前記第1故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようになっており、
前記CPU制御器は、受け取った前記故障情報が前記第2CPU故障情報である場合に、前記第2CPU及び前記第3CPUの動作を停止させると共に、前記第2CPU故障情報を前記第1CPUに通知し、前記第1CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第1CPUだけで前記基本機能を動作させることにより、前記電動パワーステアリング装置の制御を継続することを特徴とする電動パワーステアリング装置の制御装置。
In a control device of an electric power steering device equipped with a multi-core MCU,
The multi-core MCU is
A first CPU for operating basic functions of the electric power steering apparatus;
A first CPU monitoring circuit which constantly monitors the first CPU and can detect a first failure of the first CPU when a failure of the first CPU occurs;
A second CPU and a third CPU that operate additional functions of the electric power steering apparatus;
A second CPU monitoring circuit that constantly monitors the second CPU and the third CPU, and can detect the second failure when a second failure occurs in at least one of the second CPU and the third CPU;
The failure information of the first CPU, the second CPU and the third CPU is received from the first CPU monitoring circuit and the second CPU monitoring circuit, and the operations of the first CPU, the second CPU and the third CPU are based on the failure information. CPU controller to control
A shared RAM accessible from the first CPU, the second CPU, and the third CPU;
Equipped with
In the multi-core MCU,
Can you a variable needed to run to continue the basic functions in advance stored in the shared RAM,
In the shared RAM, values obtained by inverting the necessary variables are also stored in the shared RAM in order to continuously operate the basic function for erroneous rewrite check.
When the first CPU monitoring circuit detects the first failure, it notifies the CPU controller of the first CPU failure information, and when the second CPU monitoring circuit detects the second failure, the second CPU failure information It notifies CPU controller,
When the received failure information is the second CPU failure information, the CPU controller stops the operations of the second CPU and the third CPU and notifies the first CPU of the second CPU failure information, and When it is determined that the first CPU has not erroneously rewritten the shared RAM, the control of the electric power steering apparatus is continued by operating the basic function using only the first CPU. Device control device.
前記第1CPUのみがアクセスする専用RAMである第1RAMと、
前記第2CPU及び前記第3CPUのみがアクセスする専用RAMである第2RAMと、
を更に備える請求項1に記載の電動パワーステアリング装置の制御装置。
A first RAM which is a dedicated RAM that only the first CPU accesses;
A second RAM which is a dedicated RAM accessed only by the second CPU and the third CPU;
The control device of the electric power steering apparatus according to claim 1, further comprising:
マルチコアMCUを搭載する電動パワーステアリング装置の制御装置において、
前記マルチコアMCUは、
前記電動パワーステアリング装置の基本機能を動作させる第1CPUと、
前記第1CPUを常時監視しており、前記第1CPUの故障発生時に前記第1CPUの第1故障を検出できる第1CPU監視回路と、
前記電動パワーステアリング装置の付加機能を動作させる第2CPU及び第3CPUと、
前記第2CPU及び前記第3CPUを常時監視しており、前記第2CPU及び前記第3CPUの少なくとも一方の第2故障の発生時に前記第2故障を検出できる第2CPU監視回路と、
前記第1CPU監視回路及び前記第2CPU監視回路から、前記第1CPU、前記第2CPU及び前記第3CPUの故障情報を受け取り、前記故障情報に基づいて前記第1CPU、前記第2CPU及び前記第3CPUの各動作を制御するCPU制御器と、
前記第1CPU、前記第2CPU及び前記第3CPUからアクセス可能な共有RAMと、
を備え、
前記マルチコアMCUでは、
前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておき、
誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、
前記第1CPU監視回路が前記第1故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようになっており、
前記CPU制御器は、受け取った前記故障情報が前記第1CPU故障情報である場合に、故障した前記第1CPUの動作を停止させると共に、正常な前記第2CPU及び前記第3CPUの動作をも停止させることにより、一旦前記電動パワーステアリング装置の制御を停止させるようにし、前記電動パワーステアリング装置の制御停止から所定の時間が経過した後に、前記第2CPU及び前記第3CPUで前記基本機能を動作させるように、前記第2CPU及び前記第3CPUを再起動し、前記第2CPU及び前記第3CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第2CPU及び前記第3CPUだけで前記電動パワーステアリング装置の制御を継続することを特徴とする電動パワーステアリング装置の制御装置。
In a control device of an electric power steering device equipped with a multi-core MCU,
The multi-core MCU is
A first CPU for operating basic functions of the electric power steering apparatus;
A first CPU monitoring circuit which constantly monitors the first CPU and can detect a first failure of the first CPU when a failure of the first CPU occurs;
A second CPU and a third CPU that operate additional functions of the electric power steering apparatus;
A second CPU monitoring circuit that constantly monitors the second CPU and the third CPU, and can detect the second failure when a second failure occurs in at least one of the second CPU and the third CPU;
The failure information of the first CPU, the second CPU and the third CPU is received from the first CPU monitoring circuit and the second CPU monitoring circuit, and the operations of the first CPU, the second CPU and the third CPU are based on the failure information. CPU controller to control
A shared RAM accessible from the first CPU, the second CPU, and the third CPU;
Equipped with
In the multi-core MCU,
Can you a variable needed to run to continue the basic functions in advance stored in the shared RAM,
In the shared RAM, values obtained by inverting the necessary variables are also stored in the shared RAM in order to continuously operate the basic function for erroneous rewrite check.
When the first CPU monitoring circuit detects the first failure, it notifies the CPU controller of the first CPU failure information, and when the second CPU monitoring circuit detects the second failure, the second CPU failure information It notifies CPU controller,
When the received failure information is the first CPU failure information, the CPU controller stops the operation of the failed first CPU and also stops the normal operations of the second CPU and the third CPU. Thus, the control of the electric power steering apparatus is temporarily stopped, and after a predetermined time has elapsed from the control stop of the electric power steering apparatus, the basic functions are operated by the second CPU and the third CPU, When the second CPU and the third CPU are restarted, and it is determined by the second CPU and the third CPU that there is no erroneous rewriting of the shared RAM, only the second CPU and the third CPU of the electric power steering apparatus control of the electric power steering apparatus characterized by continuing the control Apparatus.
前記第1CPUのみがアクセスする専用RAMである第1RAMと、
前記第2CPU及び前記第3CPUのみがアクセスする専用RAMである第2RAMと、
を更に備える請求項に記載の電動パワーステアリング装置の制御装置。
A first RAM which is a dedicated RAM that only the first CPU accesses;
A second RAM which is a dedicated RAM accessed only by the second CPU and the third CPU;
The control device of the electric power steering apparatus according to claim 3 , further comprising:
前記第2CPU及び前記第3CPUの少なくとも一方の故障時に、前記第1CPUの処理能力に余裕がある場合には、前記基本機能だけでなく、一部の付加機能も前記第1CPUで動作させるようにし、
前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納すると共に、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておく請求項1又は2に記載の電動パワーステアリング装置の制御装置。
When at least one of the second CPU and the third CPU fails, if there is enough processing capacity of the first CPU, not only the basic function but also some additional functions can be operated by the first CPU.
A variable necessary for continuously operating the part of additional functions is stored in the shared RAM in advance, and a value obtained by inverting the necessary variable for erroneous rewrite check is also stored in the shared RAM. The control apparatus of the electric-power-steering apparatus of Claim 1 or 2 .
前記第1CPUの故障時に、前記第2CPU又は前記第3CPUの処理能力に余裕がある場合には、前記第2CPU又は前記第3CPUで前記基本機能及び一部の付加機能を動作させるように、前記第2CPU及び前記第3CPUを再起動するようにし、
前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納すると共に、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておく請求項3又は4に記載の電動パワーステアリング装置の制御装置。
The second CPU or the third CPU is configured to operate the basic function and a part of additional functions when there is a margin in the processing capability of the second CPU or the third CPU at the time of failure of the first CPU. 2) restart the CPU and the third CPU,
A variable necessary for continuously operating the part of additional functions is stored in the shared RAM in advance, and a value obtained by inverting the necessary variable for erroneous rewrite check is also stored in the shared RAM. The control apparatus of the electric-power-steering apparatus of Claim 3 or 4 .
JP2018019813A 2018-02-07 2018-02-07 Control device of electric power steering device Active JP6504283B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018019813A JP6504283B2 (en) 2018-02-07 2018-02-07 Control device of electric power steering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018019813A JP6504283B2 (en) 2018-02-07 2018-02-07 Control device of electric power steering device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014137471A Division JP6287644B2 (en) 2014-07-03 2014-07-03 Control device for electric power steering device

Publications (2)

Publication Number Publication Date
JP2018076073A JP2018076073A (en) 2018-05-17
JP6504283B2 true JP6504283B2 (en) 2019-04-24

Family

ID=62150042

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018019813A Active JP6504283B2 (en) 2018-02-07 2018-02-07 Control device of electric power steering device

Country Status (1)

Country Link
JP (1) JP6504283B2 (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0829713B2 (en) * 1986-12-24 1996-03-27 トヨタ自動車株式会社 Electric control device for rear wheel steering in front and rear wheel steering vehicles
JP2003170857A (en) * 2001-12-07 2003-06-17 Nsk Ltd Electric power steering device
JP2008123439A (en) * 2006-11-15 2008-05-29 Denso Corp Operating system, program and mobile body manipulation support apparatus
JP4414997B2 (en) * 2006-11-27 2010-02-17 本田技研工業株式会社 Electric power steering device
JP2008279994A (en) * 2007-05-14 2008-11-20 Nsk Ltd Electric power steering device
JP2009029172A (en) * 2007-07-24 2009-02-12 Nsk Ltd Electric power steering system
JP2009104300A (en) * 2007-10-22 2009-05-14 Denso Corp Data processing apparatus and program
JP2011065528A (en) * 2009-09-18 2011-03-31 Toyota Motor Corp Multiprocessor system
JP5644380B2 (en) * 2010-11-04 2014-12-24 トヨタ自動車株式会社 Information processing device
JP6129499B2 (en) * 2012-09-03 2017-05-17 日立オートモティブシステムズ株式会社 Electronic control system for automobile

Also Published As

Publication number Publication date
JP2018076073A (en) 2018-05-17

Similar Documents

Publication Publication Date Title
US20200010094A1 (en) Vehicle control device
JP5267186B2 (en) Electric power steering device
US20170015348A1 (en) Power steering device and power steering device control unit
WO2016059903A1 (en) Electric power steering device
JP5067015B2 (en) Electric power steering device
JP2018007562A (en) Motor control device and electric power steering device that mounts the same
JP6455613B2 (en) Control device for electric power steering device
JP2001018819A (en) Controller of power steering system
US9221492B2 (en) Method for operating an electrical power steering mechanism
JP6282452B2 (en) Vehicle steering control device
US20230100164A1 (en) Steering control device and method
CN111699125A (en) Method for providing a steering assistance for an electromechanical steering system of a motor vehicle comprising a redundantly designed control device
CN108702099B (en) Electronic control device and electric power steering device equipped with same
JP6223980B2 (en) Method for operating an electric power steering system
JP5999289B2 (en) Power supply voltage diagnosis device for electric power steering device
JP6497456B2 (en) Control device for electric power steering device
JP6504283B2 (en) Control device of electric power steering device
EP3095674B1 (en) Vehicular control apparatus
JP2007253766A (en) Electric power steering system
JP6287644B2 (en) Control device for electric power steering device
CN114616165B (en) Steering device for vehicle
JP2008230529A (en) Electric power steering device
JPH06239261A (en) Power steering control device
JP2009001044A (en) Electric power steering device
JP2000142447A (en) Motor-driven power steering system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181206

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190311

R150 Certificate of patent or registration of utility model

Ref document number: 6504283

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250