Table of Contents
Introduction ........................................................................................................................................... 7
1 Fundamentals of the XCP Protocol ........................................................................................... 13
1.1 XCP Protocol Layer ................................................................................................................ 19
1.1.1 Identification Field ........................................................................................................ 21
1.1.2 Timestamp .....................................................................................................................21
1.1.3 Data Field ...................................................................................................................... 22
1.2 Exchange of CTOs .................................................................................................................. 22
1.2.1 XCP Command Structure .......................................................................................... 22
1.2.2 CMD ................................................................................................................................ 25
1.2.3 RES .................................................................................................................................. 28
1.2.4 ERR ..................................................................................................................................28
1.2.5 EV .................................................................................................................................... 29
1.2.6 SERV ............................................................................................................................... 29
1.2.7 Calibrating Parameters in the Slave ....................................................................... 29
1.3 Exchanging DTOs – Synchronous Data Exchange ......................................................... 32
1.3.1 Measurement Methods: Polling versus DAQ ......................................................... 33
1.3.2 DAQ Measurement Method ...................................................................................... 34
1.3.3 STIM Calibration Method ........................................................................................... 42
1.3.4 XCP Packet Addressing for DAQ and STIM ........................................................... 43
1.3.5 Bypassing = DAQ + STIM ...........................................................................................45
1.3.6 Time Correlation and Synchronization ................................................................... 45
1.4 XCP Transport Layers ...........................................................................................................49
1.4.1 CAN ................................................................................................................................. 49
1.4.2 CAN FD .......................................................................................................................... 52
1.4.3 FlexRay ........................................................................................................................... 54
1.4.4 Ethernet ......................................................................................................................... 57
1.4.5 SxI .................................................................................................................................... 59
1.4.6 USB ................................................................................................................................ 60
1.4.7 LIN .................................................................................................................................. 60
1.5 XCP Services ............................................................................................................................ 61
1.5.1 Memory Page Swapping .............................................................................................61
1.5.2 Saving Memory Pages – Data Page Freezing ....................................................... 63
1.5.3 Flash Programming ..................................................................................................... 63
1.5.4 Automatic Detection of the Slave ........................................................................... 65
1.5.5 Block Transfer Mode for Upload, Download and Flashing ................................. 66
1.5.6 Cold Start Measurement ........................................................................................... 67
1.5.7 Security Mechanisms with XCP ................................................................................ 68