Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

M560/580 Quick Start Guide

This quick start guide provides the information necessary to power up the M5xx ECU and allow it to communicate
with a CCP based calibration/reprogramming tool. See the OpenECU user guide for instructions on how to load the
build files and reprogram an ECU

Required
• M5xx ECU
• Reprogramming harness that has the power, ground, CAN A and FEPS (optional) pins populated.
• Power supply capable of >12V and >0.5A (assuming no loads are connected to the ECU)
• CAN to USB device (see OpenECU user guide for full list of supported devices)
• CCP based calibration software (see OpenECU user guide for full list of supported software)
• Power supply capable of >18V (only needed if FEPS needs to be applied)

Hardware Settings
• Connect ECU power pins XH4 and YM1 and Ignition pin XD1 to power supply (+)
• Connect ECU ground XG4, YL1 and ZG1 to the power supply (-)
• Connect CAN hardware to the default CCP CAN A channel: YE4(CAN H) + YF4(CAN L)

CCP tool Settings


• Set the CCP based calibration/reprogramming tool to have the following settings:
o Default CCP settings for the primary micro is: 500 KBaud; CRO/DTO = 6F9/6F8; station address = 0
o Default CCP settings for the secondary micro is: 500 KBaud; CRO/DTO = 6FB/6FA; station address =
1.

Application Settings
• Put_Identification block: Select M5xx as ECU Type
• pcx_CANConfig block: Select 500 kbps as Bit Rate and CAN A for CAN Bus ID
• Pcp_CCPConfiguration block: Set CRO and DTO ID as 1785 and 1784 respectively. Station ID: 0. CAN bus ID:
CAN A. Check "Enable CCP during model execution:?”
• To ensure secondary micro does not interfere with functionality of primary micro:
o (Sim-Api) Pdx_DigitalOutput block: DOT Enable Secondary set to TRUE.
o (C-Api) Set PIO_DOT_INT_ENABLE_SECONDARY_MICRO to TRUE using pdx_digital_output()
function
o And flash the default secondary micro application found in the openecu secondary micro
installation package
[Note: Secondary Micro only supports CCP on CAN A]
• [Important note]: If primary and secondary micro are required to use CCP on same CAN channel. Users need
to ensure that both micros are configured to use CCP at same baud rate in the application software.
o For primary micro (supports CCP on any CAN channel) use the pcx_CANConfig block as mentioned
above.
o For secondary micro (only supports CCP on CAN channel A) change the enumeration in “scan_config”
function in the application code corresponding to those available baud rates in the scan_api.h. For
example, as shown in the default example code provided by openecu secondary micro software:

FEPS – ECU Recovery Mode


• The ECU defaults to following CCP settings after FEPS is applied:
Module CAN Channel CRO/DTO Station Address Baud Rate (KBaud)

M560 Primary CAN A 6F9/6F8 0 500


Micro Or Or Or
CAN C 8D0x/8D1x 49

Secondary CAN A 6FB/6FA 1 500


Micro
M580 Primary CAN C 8D0x/8D1x 49 500
Micro
Secondary CAN A 6FB/6FA 1 500
Micro

Enables
The following are internal signals that can be set to enable/disable various functions in the ECU. These 'internal' signals
can be set using the OpenECU-Simulink Digital Output Block in the case of the primary micro and using Digital
Outputs C-API function calls in the case of secondary micro. See respective technical specifications for more
information
• DOT enable-PSU-hold (pin XD1): Set high to enable power hold and low to disable (Section 4.2 M560
Technical Specification)
• DOT enable QCA: Set high to enable power for the QCA chip and low to disable (Section 4.22 M560
Technical Specification)
• DOT enable secondary micro: Set to 1 to enable the secondary micro. Set to 0 to hold it in reset mode.
(Table 3.1 M560 Technical Specification)
• DOT enable-CAN (YE4 and YF4): Set high to enable channel, low to disable. (Table 3.1 M560 Technical
Specification)
• DOT enable-CAN (YJ4 and YK4): Set high to enable channel, low to disable. (Table 3.1 M560 Technical
Specification)
• DOT enable (pin XD4, YA1, YA4, YB1, YC2, YC3, YD1, YD2, YD3, YB4, YE1, YE2, YK3, ZA4, ZB4, ZE1,
ZE2 and ZF3): Set low to disable and reset low-side drivers, set high to enable. (Table 3.1 M560 Technical
Specification)
• DOT enable (pin XH3 and XH2): Set high to enable channels, low to disable. (Table 3.1 M560 Technical
Specification)
• DOT enable (pin YA2, YA3, YC1, YE3, YL2, YL4, YM2, YM3, ZC1, ZD1, ZD2, ZE3, ZE4 and ZG2): Set high
to enable SBAT, low to disable. (Section 4.4 M560 Technical Specification)
• YH1, YK1, ZF1, ZF2 low side output pins can be enabled/disabled by Secondary Microprocessor. (Table 4.7
M560 Technical Specification)
• YG1, YJ1, ZE3 and ZE4 high side output pins can be enabled/disabled by Secondary Microprocessor.
(Table 4.7 M560 Technical Specification)
• CAN A, CAN B, CAN C and CAN D can be enabled/disable by Secondary Microprocessor. (Table 4.7 M560
Technical Specification)
• Wake-on-CAN can be partially or fully disabled. (Section 4.2 M560 Technical Specification)

ECU power — wake-sources


• See section 4.3 M560 Technical Specification

OpenECU THIRD PARTY TOOL COMPATIBILITY


The following third-party tools are compatible with OpenECU version 3.0.0 FS r2019-1
Note: primary target development uses OpenECU Sim-API, secondary uses a fixed point C-based API

Operating systems
• Microsoft Windows Win7 SP1 (32-bit), Win7 SP1 (64-bit), Win10

Modelling and code generation tools for primary processor


• MathWorks MATLAB/Simulink R2013b - R2018b

Compiler tools
• Wind River Diab C compiler for M5xx primary target
Compiler OpenECU
V5.9.4.8 with patch* 3.0.3 FS
*Patch file can be downloaded from pi-innovo.com/downloads, section M560 Hardware and related
openecu software.
• Code Warrior v2.10 for M5xx secondary target
(i) This CodeWarrior release is available in two editions: Special Edition and Standard Edition.
Developers don’t need to purchase a full Standard Edition license unless their application exceeds
128KB.
(ii) The Special Edition supports C/C++ code up to 128KB in both the compiler and the debugger. The
Standard Edition supports unlimited C/C++ code size in both the compiler and debugger. An
Evaluation Edition is available which includes all the functionality of the Standard Edition for 30
days, after which it reverts to the Special Edition.

Reprogramming, data logging and calibration tools (listed versions tested, others may also work)

Micro OpenECU 3rd Party tool

Primary PiSnoop – Any version

3.0.3 FS ATI Vision – v3.7.3 and above

ETAS INCA – v7.2.7 and above

Vector CANape – v15.0 and above

Secondary 3.0.1 FS PiSnoop – Any version

ATI Vision – v3.7.3 and above

Vector CANape – v15.0 and above

You might also like