JP6287644B2 - Control device for electric power steering device - Google Patents

Control device for electric power steering device Download PDF

Info

Publication number
JP6287644B2
JP6287644B2 JP2014137471A JP2014137471A JP6287644B2 JP 6287644 B2 JP6287644 B2 JP 6287644B2 JP 2014137471 A JP2014137471 A JP 2014137471A JP 2014137471 A JP2014137471 A JP 2014137471A JP 6287644 B2 JP6287644 B2 JP 6287644B2
Authority
JP
Japan
Prior art keywords
cpu
electric power
power steering
ram
failure
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
JP2014137471A
Other languages
Japanese (ja)
Other versions
JP2016013789A (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 JP2014137471A priority Critical patent/JP6287644B2/en
Publication of JP2016013789A publication Critical patent/JP2016013789A/en
Application granted granted Critical
Publication of JP6287644B2 publication Critical patent/JP6287644B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、車両の操舵系にモータによる操舵補助力を減速機構を介して付与するようにした電動パワーステアリング装置の制御装置に関し、特に、2個のCPU(Central Processing Unit)を有するマルチコアMCU(Multi-core Micro Controller Unit)を搭載し、2個のCPUのうち一方の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 speed reduction mechanism, and in particular, a multi-core MCU having two CPUs (Central Processing Units) ( Multi-core Micro Controller Unit), when one of the two CPUs fails, by operating only the basic functions of the electric power steering device with the other CPU that has not failed, The present invention relates to a control device for an electric power steering device that enhances the continuity of the electric power steering device.

車両のステアリング機構にモータの回転力で操舵補助力(アシスト力)を付与する電動パワーステアリング装置は、モータの駆動力を減速機構を介してギア又はベルト等の伝達機構により、ステアリングシャフト或いはラック軸に操舵補助力を付与するようになっている。かかる従来の電動パワーステアリング装置(EPS)は、操舵補助力のトルクを正確に発生させるため、モータ電流のフィードバック制御を行っている。フィードバック制御は、操舵補助指令値(電流指令値)とモータ電流検出値との差が小さくなるようにモータ印加電圧を調整するものであり、モータ印加電圧の調整は、一般的にPWM(パルス幅変調)制御のデューティの調整で行っている。   An electric power steering apparatus that applies a steering assist force (assist force) to a vehicle steering mechanism by a rotational force of a motor is provided with a steering shaft or a rack shaft by a transmission mechanism such as a gear or a belt via a speed reduction mechanism. A steering assist force is applied to the vehicle. Such a conventional electric power steering device (EPS) performs feedback control of the motor current in order to accurately generate the torque of the steering assist force. In feedback control, the motor applied voltage is adjusted so that the difference between the steering assist command value (current command value) and the motor current detection value is small. The adjustment of the motor applied voltage is generally performed by PWM (pulse width). This is done 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. A column shaft (steering shaft, handle shaft) 2 of the handle 1 is a reduction gear 3 of a reduction mechanism, universal joints 4a and 4b, a pinion rack mechanism 5, The tie rods 6a and 6b are connected to the steered wheels 8L and 8R via the hub units 7a and 7b. Further, the column shaft 2 is provided with a torque sensor 10 for detecting the steering torque of the handle 1 and a rudder angle sensor 14 for detecting the steering angle θ, and a motor 20 for assisting the steering force of the handle 1 serves as a speed reduction mechanism. It is connected to the column shaft 2 via a reduction gear (gear ratio n) 3. The control unit (ECU) 30 that controls the electric power steering apparatus is supplied with electric power from the battery 13 and also receives an ignition key signal via the ignition key 11. The control unit 30 calculates a current command value of an assist (steering assistance) 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 the current command value. The current supplied to the motor 20 is controlled by the voltage control command value Vref subjected to. The steering angle sensor 14 is not essential and may not be arranged.

コントロールユニット30には、車両の各種情報を授受するCAN(Controller Area Network)50が接続されており、車速VelはCAN50から受信することも可能である。また、コントロールユニット30には、CAN50以外の通信、アナログ/ディジタル信号、電波等を授受する非CAN51も接続されている。   The control unit 30 is connected to a CAN (Controller Area Network) 50 that transmits and receives various types of vehicle information, 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 exchanges 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, MCU, etc.). FIG. 2 shows general functions executed by a program inside the CPU.

図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 the CAN 50) are expressed as a current command value Iref1. The current command value calculation unit 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 vehicle speed Vel. The current command value Iref1 is input to the current limiter 33 through the adder 32A, and the current command value Irefm whose maximum current is limited is input to the subtractor 32B, and the deviation I (Irefm) from the fed back motor current value Im. -Im) is calculated, and the deviation I is input to the 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 an inverter circuit 37 as a drive unit. The current value Im of the motor 20 is detected by the motor current detector 38 and fed back to the subtraction unit 32B. The inverter circuit 37 uses an FET as a drive element, and is configured by an FET bridge circuit.

また、加算部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 compensation of the steering system system is performed by the addition of the compensation signal CM, thereby improving the convergence and inertia characteristics. ing. The compensation signal generation unit 34 adds the self-aligning torque (SAT) 343 and the inertia 342 by the addition unit 344, and further adds the convergence 341 to the addition result by the addition unit 345, and compensates the addition result of the addition unit 345. The signal CM is used.

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

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

特開2007−55605号公報JP 2007-55605 A

しかしながら、特許文献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 MCUs, and when an electric power steering device fails, the electric power steering device Information necessary to continue the operation may not be transmitted to a normal MCU.

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

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

本発明は、マルチコアMCUを搭載する電動パワーステアリング装置の制御装置に関し、本発明の上記目的は、前記マルチコアMCUは、前記電動パワーステアリング装置の基本機能を動作させる第1CPUと、前記第1CPUを常時監視しており、前記第1CPUの故障発生時に前記第1CPUの故障を検出できる第1CPU監視回路と、前記第1CPUのみがアクセスする専用RAMである第1RAMと、前記電動パワーステアリング装置の付加機能を動作させる第2CPUと、前記第2CPUを常時監視しており、前記第2CPUの故障発生時に前記第2CPUの故障を検出できる第2CPU監視回路と、前記第2CPUのみがアクセスする専用RAMである第2RAMと、前記第1CPU監視回路及び前記第2CPU監視回路から、各CPUの故障情報を受け取り、受け取った故障情報に基づいて各CPUの動作を制御するCPU制御器と、前記第1CPU及び前記第2CPUの両方からアクセス可能な共有RAMと、前記第1CPU及び前記第2CPUの両方からアクセス可能なペリフェラルとを備え、前記マルチコアMCUでは、前記第1RAMのアドレスと前記第2RAMのアドレスを同じにしており、前記基本機能に必要で、且つ、前記第1RAMに予め格納されている固定値を前記第2RAMの同じアドレスにも予め格納しておき、前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておくことにより達成される。   The present invention relates to a control device for an electric power steering apparatus equipped with a multi-core MCU, and the object of the present invention is to provide the multi-core MCU with a first CPU for operating basic functions of the electric power steering apparatus and the first CPU at all times. A first CPU monitoring circuit that monitors and detects a failure of the first CPU when a failure of the first CPU occurs, a first RAM that is a dedicated RAM accessed only by the first CPU, and additional functions of the electric power steering device A second CPU to be operated, a second CPU that constantly monitors the second CPU, can detect a failure of the second CPU when a failure of the second CPU, and a second RAM that is a dedicated RAM accessed only by the second CPU And from the first CPU monitoring circuit and the second CPU monitoring circuit, A CPU controller that receives CPU failure information and controls the operation of each CPU based on the received failure information; a shared RAM that is accessible from both the first CPU and the second CPU; the first CPU and the second CPU In the multi-core MCU, the address of the first RAM and the address of the second RAM are the same, and are necessary for the basic function and stored in the first RAM in advance. This is achieved by storing a fixed value in advance in the same address of the second RAM, and storing in advance in the shared RAM variables necessary for continuously operating the basic function.

また、本発明の上記目的は、前記ペリフェラルの制御レジスタに、CPUによる誤書き換え防止機能を付けるようにしており、誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、前記第1CPU監視回路が前記第1CPUの故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2CPUの故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようにすることにより、或いは、前記CPU制御器は、受け取った前記故障情報が前記第2CPU故障情報である場合に、故障した前記第2CPUの動作を停止させるとともに、前記第2CPU故障情報を前記第1CPUに通知し、前記第1CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第1CPUだけで前記基本機能を動作させることにより、前記電動パワーステアリング装置の制御を継続することにより、或いは、前記CPU制御器は、受け取った前記故障情報が前記第1CPU故障情報である場合に、故障した前記第1CPUの動作を停止させるとともに正常な前記第2CPUの動作をも停止させることにより、一旦前記電動パワーステアリング装置の制御を停止させるようにし、前記電動パワーステアリング装置の制御停止から所定の時間が経過した後に、前記第2CPUで前記基本機能を動作させるように、前記第2CPUを再起動し、前記第2CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第2CPUだけで前記電動パワーステアリング装置の制御を継続することにより、或いは、前記第2CPUの故障時に、前記第1CPUの処理能力に余裕がある場合には、前記基本機能だけでなく一部の付加機能も前記第1CPUで動作させるようにし、前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納するとともに、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておくことにより、或いは、前記第1CPUの故障時に、前記第2CPUの処理能力に余裕がある場合には、前記第2CPUで前記基本機能及び一部の付加機能を動作させるように、前記第2CPUを再起動するようにし、前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納するとともに、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておくことにより、より効果的に達成される。   In addition, the object of the present invention is to add an erroneous rewrite prevention function by the CPU to the control register of the peripheral, and to change the necessary variables for continuously operating the basic function for the erroneous rewrite check. The inverted value is also stored in the shared RAM, and when the first CPU monitoring circuit detects a failure of the first CPU, the first CPU failure information is notified to the CPU controller, and the second CPU monitoring circuit When a failure of the second CPU is detected, the CPU controller is notified of the second CPU failure information, or when the received failure information is the second CPU failure information. , The operation of the failed second CPU is stopped, the second CPU failure information is notified to the first CPU, and the second CPU When the CPU determines that the shared RAM has not been erroneously rewritten, the basic function is operated only by the first CPU, the control of the electric power steering device is continued, or the CPU controller When the received failure information is the first CPU failure information, the operation of the failed first CPU and the normal operation of the second CPU are stopped, thereby temporarily stopping the operation of the electric power steering apparatus. The control is stopped, and after a predetermined time has elapsed since the control stop of the electric power steering apparatus, the second CPU is restarted so that the basic function is operated by the second CPU. When it is determined that the shared RAM has not been erroneously rewritten, the second When the control of the electric power steering device is continued only with the PU, or when the processing capacity of the first CPU is sufficient when the second CPU fails, not only the basic functions but also some additional functions Is a value obtained by causing the first CPU to operate, storing variables necessary for continuously operating some of the additional functions in the shared RAM, and inverting the necessary variables for erroneous rewriting check. Are also stored in the shared RAM, or when the first CPU is out of order, if the processing capacity of the second CPU is sufficient, the second CPU operates the basic function and some additional functions. In this case, the second CPU is restarted, and variables necessary for continuously operating the some additional functions are stored in the shared RAM in advance. This is achieved more effectively by storing the value obtained by inverting the necessary variable for the erroneous rewrite check in the shared RAM.

本発明に係る電動パワーステアリング装置の制御装置によれば、2個のCPUを有(内蔵)するマルチコアMCUを搭載すると共に、マルチコアMCUに内蔵されている共有RAMに電動パワーステアリング装置の基本機能を継続するために必要な情報(必要な変数)を予め格納するようにしているので、2個のCPUのうち1個のCPUに故障が発生した場合であっても、故障していないもう1個のCPUが共有RAMに格納されている基本機能を継続するために必要な情報(必要な変数)に確実にアクセス可能のため、基本機能を継続するために必要な情報(必要な変数)が故障していないもう1個のCPUに確実に伝わり、電動パワーステアリング装置が危険な状態になることも無く、その故障していないCPUのみで電動パワーステアリング装置の基本機能を安全に動作させることができる。   According to the control device for an electric power steering apparatus according to the present invention, a multi-core MCU having (built in) two CPUs is mounted, and a basic function of the electric power steering apparatus is added to a shared RAM built in the multi-core MCU. Since information (necessary variables) necessary for continuing is stored in advance, even if one of the two CPUs fails, another one that does not fail The necessary information (necessary variable) to continue the basic function is faulty because the information (necessary variable) necessary to continue the basic function stored in the shared RAM can be reliably accessed It is reliably transmitted to the other CPU that is not connected, and the electric power steering device is not put in a dangerous state. It can be safely operated the basic functions of the ring device.

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

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

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

以下に、図面を参照しながら、本発明の具体的な実施形態を詳細に説明する。   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 on the control apparatus for the electric power steering device 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 includes a first CPU 420, a first CPU monitoring circuit 421 for monitoring the first CPU 420, a first RAM 422, 2 CPU 430, the second CPU monitoring circuit 431 for monitoring the second CPU 430, the second RAM 432, the first CPU monitoring circuit 421, and the second CPU monitoring circuit 431 receive the failure information of each CPU, and based on the received failure information, A CPU controller 41 that controls 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が常時監視されている。   In the multi-core MCU 40, both the shared RAM 44, the ROM 45, and the peripheral 46 can be accessed from both the first CPU 420 and the second CPU 430. The first CPU 420 is constantly monitored by the first CPU monitoring circuit 421, and the second CPU 430 is constantly monitored by the second CPU monitoring circuit 431.

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

更に、マルチコアMCU40では、第1CPU420と第2CPU430で同じプログラム(同じ機能)を動作させることができるようにするために、第1RAM422のアドレスと第2RAM432のアドレスを同じにする。   Further, in the multi-core MCU 40, the address of the first RAM 422 and the address of the second RAM 432 are made the same so that the first CPU 420 and the second CPU 430 can 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 necessary for controlling the electric power steering apparatus (hereinafter, also simply referred to as “basic function of electric power steering apparatus” or “basic function”). 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 apparatus” or “additional function”) for improving the steering performance of the electric power steering apparatus. Yes.

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

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 operation of the failed second CPU 430. 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に、電動パワーステアリング装置の基本機能を動作させることで、電動パワーステアリング装置の制御を継続させるようにする。   In addition, when the failure information received by the CPU controller 41 is the first CPU failure information (that is, when a failure occurs in the first CPU 420 that operates the basic function), the CPU controller 41 includes both CPUs. (That is, the failed first CPU 420 and the normal second CPU 430) are stopped, and the current output to the motor is stopped to temporarily stop the control of the electric power steering apparatus. Then, after a predetermined time has elapsed since the electric power steering device control was stopped, the CPU controller 41 restarts the second CPU 430 that has not failed, and the restarted second CPU 430 has the basic functions of the electric power steering device. By operating, the 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 electric power steering device control by the CPU controller 41 to the restart of the electric power steering device control by the second CPU 430 (that is, the predetermined time described above) is set as a time during which the vehicle does not become a 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 an erroneous rewrite prevention function by the CPU. As a method for realizing the function of preventing erroneous rewriting 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 in the control register of the peripheral 46. There is a method for preventing the value of the control register of the peripheral 46 from being rewritten unless the control register of the peripheral 46 is set to the rewritable mode.

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

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

機能B
電動パワーステアリング装置の基本機能を継続して動作させるために必要な情報(必要な変数)を共有RAM44に予め格納するとともに、これら必要な変数の誤書き換えをチェックするために、上述した必要な変数を反転した値も共有RAM44に格納しておくようにする。
Further, in the present invention, in order to operate the basic function of the electric power steering device by the second CPU 430 that is configured to operate the additional function of the electric power steering device at normal time, the multi-core MCU 40 has the following three functions. Give 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 also stored in advance at the same address in the second RAM 432.

Function B
The information necessary for continuously operating the basic function of the electric power steering apparatus (necessary variables) is stored in the shared RAM 44 in advance, and the necessary variables described above are used to check for erroneous rewriting of these necessary variables. The value obtained by reversing 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 of the present invention, in order to perform an erroneous rewrite check of the shared RAM 44, as described above, a value obtained by inverting a necessary variable is also stored in the shared RAM 44, and thus stored in the shared RAM 44. Although the erroneous rewriting check of the shared RAM 44 is performed by comparing the necessary variable and the value obtained by inverting the necessary variable, the erroneous rewriting check method of the shared RAM 44 of the present invention is not limited to this, Any known erroneous rewrite check method can be used as the erroneous rewrite check method for the shared RAM 44 of the present invention. For example, an erroneous rewrite check of the shared RAM 44 by checksum may be performed.

Function C
When an erroneous rewrite of the shared RAM 44 (an erroneous rewrite of a variable stored in the shared RAM 44 and necessary for continuously operating the basic function of the electric power steering device) is detected, the control of the electric power steering device is performed. Try to stop.

By the way, when a failure occurs in the CPU (the first CPU 420 or the second CPU 430), the broken CPU (the failed first CPU 420 or the second CPU 430) may erroneously rewrite the control registers of the shared RAM 44 and the peripheral 46. When the control register of the peripheral 46 is rewritten to a value different from the design value (that is, when the control register of the peripheral 46 is erroneously rewritten), the peripheral 46 does not operate as designed and the electric power steering apparatus is abnormal. This can lead to behavior, and possibly dangerous behavior of the vehicle.

そこで、本発明では、上述したように、ペリフェラル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 a function for preventing erroneous rewriting by the CPU and the shared RAM 44 is checked for erroneous rewriting. In other words, according to the present invention, the function for preventing erroneous rewriting by the CPU is added to the control register of the peripheral 46 and the error rewriting of the shared RAM 44 is checked when the CPU (first CPU 420 or second CPU 430) fails. 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 to prevent erroneous rewriting of necessary control registers 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 control register of the peripheral 46 is provided with the above-described function of preventing erroneous rewriting by the CPU, and by checking the shared RAM 44 for erroneous rewriting, the CPU (first CPU 420 or second CPU 430) can be checked. Even if a failure occurs, the variable stored in the shared RAM 44 is not erroneously rewritten, and the control register of the peripheral 46 is not erroneously rewritten, and the design value of the control register is set. Therefore, it is possible to safely continue the control of the electric power steering apparatus using only a normal CPU.

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

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

図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 for the electric power steering apparatus equipped with the multi-core MCU 40, the second CPU monitoring circuit 431 that constantly monitors the second CPU 430 when the second CPU 430 fails, the second CPU 430 fails. And the 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 CPU 430 failure (second CPU failure information) is notified (transmitted) to the first CPU 420 (step S12). When the first CPU 420 receives the second CPU failure information from the CPU controller 41, the first CPU 420 checks whether or not the shared RAM 44 has been erroneously rewritten (step S13 and step S14). When it is determined that there is no erroneous rewriting of the shared RAM 44, the control of the electric power steering device is continued only by the first CPU 420 that operates the basic function (step S15). On the other hand, when it is determined that there is an erroneous rewrite of the shared RAM 44 (that is, when an erroneous rewrite of the shared RAM 44 is detected), the operation of the 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 when the first CPU 420 operating the basic function in the present invention fails 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 of the electric power steering apparatus equipped with the multi-core MCU 40, the first CPU monitoring circuit 421 that constantly monitors the first CPU 420 when the first CPU 420 fails is the failure of the first CPU 420. 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 based on the received first CPU failure information, stops the operation of the failed first CPU 420 and the normal second CPU 430. By stopping the operation (step S21), the control of the electric power steering apparatus is once stopped, and after a predetermined time (for example, about 20 to 30 ms) has elapsed since the control stop of the electric power steering apparatus, The second CPU 430 is restarted so that the 2CPU 430 operates the basic functions of the electric power steering apparatus (step S22).

次に、第2CPU430は、共有RAM44の誤書き換えは無かったか否かをチェックする(ステップS23及びステップS24)。共有RAM44の誤書き換えは無かったと判定された場合に、基本機能を動作させている第2CPU430だけで電動パワーステアリング装置の制御を継続するようにする(ステップS25)。一方、共有RAM44の誤書き換えは有ったと判定された場合に、第2CPU430の動作も停止させることで、電動パワーステアリング装置の制御を停止させる(ステップS26)。   Next, the second CPU 430 checks whether or not the shared RAM 44 has been erroneously rewritten (step S23 and step S24). When it is determined that there is no erroneous rewriting of the shared RAM 44, the 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 has been an erroneous rewrite of the shared RAM 44, the operation of the second CPU 430 is also stopped to stop the control of the electric power steering device (step S26).

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

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

また、上述したように、本発明の一実施例として、2個のCPUを有するマルチコアMCUを搭載する電動パワーステアリング装置の制御装置について説明したが、本発明の電動パワーステアリング装置の制御装置に搭載されるマルチコアMCUとして、2個のCPUを有するマルチコアMCUに限定されることはなく、2個以上のCPU(例えば、3個CPU)を有するマルチコアMCUを使用することができる。その際に、電動パワーステアリング装置の基本機能や付加機能を適宜に各CPUで動作させるようにしても良い。例えば、基本機能を1個のCPUで、付加機能を残り2個のCPUで、それぞれ動作させるようにしても良い。また、上述した本発明の原理を応用し、付加機能を動作させている2個のCPUの故障時に、故障したCPUの動作を停止するようにしても良い。基本機能を動作させているCPUの故障時に、故障したそのCPUの動作を停止するとともに、付加機能を動作させている正常なCPUの何れかをも停止し、所定の時間が経過した後に、停止したそのCPUのみで基本機能を動作させているようにしても良い。   As described above, 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. However, the control apparatus for the electric power steering device according to the present invention is mounted. The multi-core MCU to be used is not limited to the 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, 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 functions may be operated by the remaining two CPUs. Further, by applying the above-described principle of the present invention, the operation of the failed CPU may be stopped when the two CPUs operating the additional function fail. When a CPU operating a basic function fails, the operation of the failed CPU is stopped, and any normal CPU operating an additional function is stopped, and after a predetermined time has elapsed, the CPU 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 Handle 2 Column shaft (steering shaft, handle shaft)
10 Torque sensor 12 Vehicle speed sensor 14 Rudder angle sensor 20 Motor 30 Control unit (ECU)
31 Current command value calculating unit 33 Current limiting unit 34 Compensation signal generating unit 35 PI control unit 36 PWM control unit 37 Inverter circuit 40 Multi-core MCU
41 CPU controller 420 1st 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の故障を検出できる第1CPU監視回路と、
前記第1CPUのみがアクセスする専用RAMである第1RAMと、
前記電動パワーステアリング装置の付加機能を動作させる第2CPUと、
前記第2CPUを常時監視しており、前記第2CPUの故障発生時に前記第2CPUの故障を検出できる第2CPU監視回路と、
前記第2CPUのみがアクセスする専用RAMである第2RAMと、
前記第1CPU監視回路及び前記第2CPU監視回路から、各CPUの故障情報を受け取り、受け取った故障情報に基づいて各CPUの動作を制御するCPU制御器と、
前記第1CPU及び前記第2CPUの両方からアクセス可能な共有RAMと、
前記第1CPU及び前記第2CPUの両方からアクセス可能なペリフェラルと
を備え、
前記マルチコアMCUでは、
前記第1RAMのアドレスと前記第2RAMのアドレスを同じにしており、
前記基本機能に必要で、且つ、前記第1RAMに予め格納されている固定値を前記第2RAMの同じアドレスにも予め格納しておき、
前記基本機能を継続して動作させるために必要な変数を前記共有RAMに予め格納しておくことを特徴とする電動パワーステアリング装置の制御装置。
In a control device for 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 that constantly monitors the first CPU and is capable of detecting a failure of the first CPU when a failure of the first CPU occurs;
A first RAM that is a dedicated RAM accessed only by the first CPU;
A second CPU for operating an additional function of the electric power steering device;
A second CPU monitoring circuit that constantly monitors the second CPU and can detect a failure of the second CPU when a failure of the second CPU occurs;
A second RAM which is a dedicated RAM accessed only by the second CPU;
A CPU controller for receiving failure information of each CPU from the first CPU monitoring circuit and the second CPU monitoring circuit and controlling the operation of each CPU based on the received failure information;
A shared RAM accessible from both the first CPU and the second CPU;
A peripheral accessible from both the first CPU and the second CPU;
In the multi-core MCU,
The address of the first RAM and the address of the second RAM are the same,
A fixed value necessary for the basic function and stored in advance in the first RAM is stored in advance in the same address of the second RAM,
A control device for an electric power steering apparatus, wherein variables necessary for continuously operating the basic function are stored in the shared RAM in advance.
前記ペリフェラルの制御レジスタに、CPUによる誤書き換え防止機能を付けるようにしており、
誤書き換えチェック用に前記基本機能を継続して動作させるために前記必要な変数を反転した値も前記共有RAMに格納しておき、
前記第1CPU監視回路が前記第1CPUの故障を検出した時に、第1CPU故障情報を前記CPU制御器に通知すると共に、前記第2CPU監視回路が前記第2CPUの故障を検出した時に、第2CPU故障情報を前記CPU制御器に通知するようになっている請求項1に記載の電動パワーステアリング装置の制御装置。
The peripheral control register is provided with a function for preventing erroneous rewriting by the CPU,
A value obtained by inverting the necessary variable for continuously operating the basic function for erroneous rewriting check is also stored in the shared RAM,
When the first CPU monitoring circuit detects a failure of the first CPU, the first CPU failure information is notified to the CPU controller, and when the second CPU monitoring circuit detects a failure of the second CPU, the second CPU failure information The controller of the electric power steering apparatus according to claim 1, wherein the CPU controller is notified.
前記CPU制御器は、受け取った前記故障情報が前記第2CPU故障情報である場合に、故障した前記第2CPUの動作を停止させるとともに、前記第2CPU故障情報を前記第1CPUに通知し、前記第1CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第1CPUだけで前記基本機能を動作させることにより、前記電動パワーステアリング装置の制御を継続する請求項2に記載の電動パワーステアリング装置の制御装置。   The CPU controller, when the received failure information is the second CPU failure information, stops the operation of the failed second CPU, notifies the first CPU of the second CPU failure information, and 3. The electric power steering apparatus according to claim 2, wherein when it is determined that the shared RAM has not been erroneously rewritten, the control of the electric power steering apparatus is continued by operating the basic function only by the first CPU. Control device. 前記CPU制御器は、受け取った前記故障情報が前記第1CPU故障情報である場合に、故障した前記第1CPUの動作を停止させるとともに正常な前記第2CPUの動作をも停止させることにより、一旦前記電動パワーステアリング装置の制御を停止させるようにし、前記電動パワーステアリング装置の制御停止から所定の時間が経過した後に、前記第2CPUで前記基本機能を動作させるように、前記第2CPUを再起動し、前記第2CPUによって前記共有RAMの誤書き換えが無かったと判定された場合に、前記第2CPUだけで前記電動パワーステアリング装置の制御を継続する請求項2に記載の電動パワーステアリング装置の制御装置。   When the received failure information is the first CPU failure information, the CPU controller temporarily stops the operation of the failed first CPU and also stops the normal operation of the second CPU. The control of the power steering device is stopped, and after a predetermined time has elapsed since the control stop of the electric power steering device, the second CPU is restarted so that the basic function is operated by the second CPU, The control device for the electric power steering device according to claim 2, wherein when the second CPU determines that the shared RAM has not been erroneously rewritten, the control of the electric power steering device is continued only by the second CPU. 前記第2CPUの故障時に、前記第1CPUの処理能力に余裕がある場合には、前記基本機能だけでなく、一部の付加機能も前記第1CPUで動作させるようにし、
前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納するとともに、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておく請求項3に記載の電動パワーステアリング装置の制御装置。
If the processing capacity of the first CPU is sufficient when the second CPU fails, not only the basic function but also some additional functions are operated by the first CPU.
A variable necessary for continuously operating some of the additional functions is stored in the shared RAM in advance, and a value obtained by inverting the necessary variable for erroneous rewriting check is also stored in the shared RAM. Item 4. A control device for an electric power steering apparatus according to Item 3.
前記第1CPUの故障時に、前記第2CPUの処理能力に余裕がある場合には、前記第2CPUで前記基本機能及び一部の付加機能を動作させるように、前記第2CPUを再起動するようにし、
前記一部の付加機能を継続して動作させるために必要な変数を前記共有RAMに予め格納するとともに、誤書き換えチェック用に前記必要な変数を反転した値も前記共有RAMに格納しておく請求項4に記載の電動パワーステアリング装置の制御装置。
If the processing capacity of the second CPU is sufficient when the first CPU fails, the second CPU is restarted so that the second CPU operates the basic function and some additional functions.
A variable necessary for continuously operating some of the additional functions is stored in the shared RAM in advance, and a value obtained by inverting the necessary variable for erroneous rewriting check is also stored in the shared RAM. Item 5. A control device for an electric power steering device according to Item 4.
JP2014137471A 2014-07-03 2014-07-03 Control device for electric power steering device Active JP6287644B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Child Applications (3)

Application Number Title Priority Date Filing Date
JP2018019812A Division JP6497456B2 (en) 2018-02-07 2018-02-07 Control device for electric power steering device
JP2018019811A Division JP6455613B2 (en) 2018-02-07 2018-02-07 Control device for electric power steering device
JP2018019813A Division JP6504283B2 (en) 2018-02-07 2018-02-07 Control device of electric power steering device

Publications (2)

Publication Number Publication Date
JP2016013789A JP2016013789A (en) 2016-01-28
JP6287644B2 true JP6287644B2 (en) 2018-03-07

Family

ID=55230363

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP6287644B2 (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5028309B1 (en) * 1970-11-20 1975-09-13
JPS5911455A (en) * 1982-02-18 1984-01-21 Mitsubishi Electric Corp Redundancy system of central operation processing unit
JPH0829713B2 (en) * 1986-12-24 1996-03-27 トヨタ自動車株式会社 Electric control device for rear wheel steering in front and rear wheel steering vehicles
JPH02187856A (en) * 1989-01-14 1990-07-24 Nippondenso Co Ltd Resetting method for multi-central arithmetic unit system
US6715101B2 (en) * 2001-03-15 2004-03-30 Hewlett-Packard Development Company, L.P. Redundant controller data storage system having an on-line controller removal system and method
JP2003170857A (en) * 2001-12-07 2003-06-17 Nsk Ltd Electric power steering device
JP2009029172A (en) * 2007-07-24 2009-02-12 Nsk Ltd Electric power steering system
JP2009062009A (en) * 2007-09-10 2009-03-26 Nsk Ltd Control device of electric power steering device
JP2010130710A (en) * 2008-11-25 2010-06-10 Toshiba Corp Control center
JP2010188796A (en) * 2009-02-17 2010-09-02 Nsk Ltd Electric power steering device
JP2010285001A (en) * 2009-06-09 2010-12-24 Toyota Motor Corp Electronic control system and functional agency method

Also Published As

Publication number Publication date
JP2016013789A (en) 2016-01-28

Similar Documents

Publication Publication Date Title
US10214235B2 (en) Power steering device and power steering device control unit
JP5267186B2 (en) Electric power steering device
JP6455613B2 (en) Control device for electric power steering device
JP6061117B2 (en) Electric power steering device
JP2018007562A (en) Motor control device and electric power steering device that mounts the same
JP2001018819A (en) Controller of power steering system
JP2008290524A (en) Electric power steering device
CN108702099B (en) Electronic control device and electric power steering device equipped with same
JP5999289B2 (en) Power supply voltage diagnosis device for electric power steering device
JP2010036806A (en) Electric power steering device
JP6497456B2 (en) Control device for electric power steering device
EP3095674B1 (en) Vehicular control apparatus
JP6287644B2 (en) Control device for electric power steering device
US20190263444A1 (en) Steering control device
JP6504283B2 (en) Control device of electric power steering device
JP5169410B2 (en) Electric power steering device
CN114616165B (en) Steering device for vehicle
JP2008230529A (en) Electric power steering device
JP5098323B2 (en) Electric power steering device
JP5181540B2 (en) Electric power steering device
JP2009001044A (en) Electric power steering device
JP5298940B2 (en) Electric power steering device
JP2005238957A (en) Vehicular steering device
KR20200074589A (en) Method of fault response for steer-by-wire system
JP2009248922A (en) Electric power steering device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170307

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180122

R150 Certificate of patent or registration of utility model

Ref document number: 6287644

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250