AN3044
Application note
ECU level diagnostic with SPC563Mx and SPC564Ax
Introduction
The continuous need for quality improvements in automotive is creating focus on ECU
(Engine Control Unit) level diagnostic tools as the analysis of traceability information and
first level diagnostic should be done as early as possible to improve analysis cycle time.
This application note is intended to clarify the different tools possible with SPC56x
microcontrollers, the different possibilities offered when the flash is protected and how to
read the traceability information that is stored inside SPC56x flash. This will then allow
OEMs (Original Equipment Manufacturer) to define and implement the right strategy for their
ECUs.
As IP protection and engine tuning is of high importance, the application note is focused on
identifying configurations (software, tools) that do not require to have access to the flash
password.
This application note is only valid for powertrain devices: SPC563Mx and SPC564Ax.
September 2013
Doc ID 16196 Rev 2
1/20
www.st.com
Contents
AN3044
Contents
1
Introduction to ECU level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1
1.2
ECU level traceability information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ECU level self tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2
ECU level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1
2.2
2.3
2.4
SPC563Mx and SPC564Ax traceability information . . . . . . . . . . . . . . . . . . 7
ECU self tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Tools for ECU level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Summary for ECU level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
PCB level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1
3.2
3.3
3.4
SPC563Mx and SPC564Ax traceability information . . . . . . . . . . . . . . . . . 10
PCB level self tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Tools for PCB level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Summary for PCB level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4
SPC563Mx / SPC564Ax and Flash protection . . . . . . . . . . . . . . . . . . . . 13
4.1
Flash protection, shadow Flash and reprogramming . . . . . . . . . . . . . . . . 13
5
SPC563Mx / SPC564Ax and traceability information . . . . . . . . . . . . . . 14
5.1
Traceability code and Flash protection . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6
STMicrolectronics self test tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1
6.2
6.3
6.4
6.5
Self test tool overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Self test tool GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Test repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Target connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ECU connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7
Other tools from ST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1
7.2
Combox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
SPC56x and autobaud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2/20
Doc ID 16196 Rev 2
List of tables
AN3044
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
ECU level diagnostic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
PCB level diagnostic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
SPC56x Flash access from serial boot mode or from JTAG . . . . . . . . . . . . . . . . . . . . . . . 13
Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4/20
Doc ID 16196 Rev 2
AN3044
List of figures
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Self test tool overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Test repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Target connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ECU connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Combox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Doc ID 16196 Rev 2
5/20