0% found this document useful (0 votes)
179 views65 pages

Autosar SWS XCP

The document specifies the functionality, API, and configuration of the AUTOSAR Basic Software module XCP, which is a protocol for data acquisition and calibration in automotive applications. It outlines the document's change history, disclaimers, and dependencies on other modules, while detailing the features and principles of XCP, including support for various communication buses. The document is part of the AUTOSAR Classic Platform standard release R19-11 and is intended for information purposes only.

Uploaded by

venkateshec28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views65 pages

Autosar SWS XCP

The document specifies the functionality, API, and configuration of the AUTOSAR Basic Software module XCP, which is a protocol for data acquisition and calibration in automotive applications. It outlines the document's change history, disclaimers, and dependencies on other modules, while detailing the features and principles of XCP, including support for various communication buses. The document is part of the AUTOSAR Classic Platform standard release R19-11 and is intended for information purposes only.

Uploaded by

venkateshec28
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Specification of Module XCP

AUTOSAR CP R19-11

Document Title Specification of Module XCP


Document Owner AUTOSAR
Document Responsibility AUTOSAR
Document Identification No 412

Document Status published


Part of AUTOSAR Standard Classic Platform
Part of Standard Release R19-11

Document Change History


Date Release Changed by Change Description
2019-11-28 R19-11 AUTOSAR  No content changes
Release  Changed Document Status from
Management Final to published
2018-10-31 4.4.0 AUTOSAR  Update XCP on CAN version to
Release support CAN FD
Management
2017-12-08 4.3.1 AUTOSAR  Editorial changes
Release  Update development errors
Management  Adapt XCP with CAN return types
 Add new configuration container
XcpChannel
2016-11-30 4.3.0 AUTOSAR  Editorial changes
Release  Harmonize descriptions of identical
Management API functions
 Removal of unused artifacts and
obsolete elements
2015-07-31 4.2.2 AUTOSAR  Debugging support marked as
Release obsolete
Management  Editorial changes
 Modifications in some parameters
multiplicity of XcpDaqlist container
2014-10-31 4.2.1 AUTOSAR  Editorial changes
Release  Minor corrections
Management  Changed the multiplicity of
XcpEventChannelTriggeredDaqList
Ref
 Remove limitation "Flash
Programming for ECU development
purposes"

1 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Document Change History


Date Release Changed by Change Description
2014-03-31 4.1.3 AUTOSAR  Editorial correction for faulty
Release references links
Management  Minor editorial correction for
SWS_Xcp_00841,
SWS_Xcp_00844
 Changed Xcp_RxIndication
argument from PduInfoType* to
const PduInfoType*
2013-10-31 4.1.2 AUTOSAR  Minor corrections
Release  Editorial changes
Management  Removed chapter(s) on change
documentation
2013-03-15 4.1.1 AUTOSAR  Reclassify XCP_E_INIT_FAILED
Administration from class production error to
development
2013-03-15 4.1.1 AUTOSAR  Added parameters for Event
Administration Channel and Timestamp
configuration
 Added possibility to calculate
memory consumption for ODT
(DAQ & STIM)
 Restructuring configuration
parameters for static & dynamic
ODT
 Added support for deactivation of
transmission capabilities
2011-12-22 4.0.3 AUTOSAR  Add chapter 7.8 (Version check),
Administration RTE limitation, OS Counter Ref
 Remove InstanceID and known
limitation (OS)
2010-09-30 3.1.5 AUTOSAR  Initial Release
Administration

2 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Disclaimer

This work (specification and/or software implementation) and the material contained
in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR
and the companies that have contributed to it shall not be liable for any use of the
work.
The material contained in this work is protected by copyright and other types of
intellectual property rights. The commercial exploitation of the material contained in
this work requires a license to such intellectual property rights.
This work may be utilized or reproduced without any modification, in any form or by
any means, for informational purposes only. For any other purpose, no part of the
work may be utilized or reproduced, in any form or by any means, without permission
in writing from the publisher.
The work has been developed for automotive applications only. It has neither been
developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.

3 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Table of Contents

1 Introduction and functional overview ................................................................... 6

2 Acronyms and abbreviations ............................................................................... 7

3 Related documentation........................................................................................ 8
3.1 Input documents ............................................................................................ 8
3.1.1 Related standards and norms ................................................................. 8
3.2 Related specification ..................................................................................... 9
4 Constraints and assumptions ............................................................................ 10
4.1 Limitations ................................................................................................... 10
4.2 Applicability to car domains ......................................................................... 10
5 Dependencies to other modules ........................................................................ 11
5.1 AUTOSAR RTE (BSW Scheduler) .............................................................. 11
5.2 AUTOSAR FlexRay Interface ...................................................................... 11
5.3 AUTOSAR CAN Interface ............................................................................ 11
5.4 AUTOSAR SocketAdaptor........................................................................... 11
5.5 AUTOSAR RTE ........................................................................................... 11
5.6 AUTOSAR OS ............................................................................................. 11
5.7 AUTOSAR Diagnostic Event Manager ........................................................ 11
5.8 AUTOSAR Default Error Tracer .................................................................. 12
5.9 File structure ................................................................................................ 12
5.9.1 Code file structure ................................................................................. 12
6 Requirements traceability .................................................................................. 13

7 Functional specification ..................................................................................... 18


7.1 XCP on CAN ............................................................................................... 21
7.2 XCP on FlexRay .......................................................................................... 21
7.3 XCP on Ethernet.......................................................................................... 23
7.4 General Requirements ................................................................................ 23
7.5 Error classification ....................................................................................... 24
7.5.1 Development Errors .............................................................................. 24
7.5.2 Runtime Errors ...................................................................................... 24
7.5.3 Transient Faults .................................................................................... 24
7.5.4 Production Errors .................................................................................. 24
7.6 Error detection ............................................................................................. 25
7.7 Error notification .......................................................................................... 25
7.8 Version checking ......................................................................................... 25
8 API specification ................................................................................................ 26
8.1 Imported types ............................................................................................. 26
8.2 Type definitions ........................................................................................... 26
8.2.1 Xcp_ConfigType ................................................................................... 26
8.2.2 Xcp_Transmission Mode Type.............................................................. 27
8.3 Function definitions...................................................................................... 28
8.3.1 Xcp_Init ................................................................................................. 28
4 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

8.3.2 Xcp_GetVersionInfo .............................................................................. 28


8.3.3 Xcp_SetTransmissionMode .................................................................. 29
8.4 Call-back notifications.................................................................................. 31
8.4.1 Xcp_<Lo>RxIndication .......................................................................... 31
8.4.2 Xcp_<Lo>TxConfirmation ..................................................................... 32
8.4.3 Xcp_<Lo>TriggerTransmit .................................................................... 33
8.5 Scheduled functions .................................................................................... 34
8.5.1 Xcp_MainFunction ................................................................................ 34
8.6 Expected Interfaces ..................................................................................... 34
8.6.1 Mandatory Interfaces ............................................................................ 34
8.6.2 Optional Interfaces ................................................................................ 35
8.6.3 Configurable interfaces ......................................................................... 35
9 Sequence diagrams .......................................................................................... 36
9.1 XCP on FlexRay .......................................................................................... 36
9.1.1 Xcp on FlexRay Transmit ...................................................................... 36
9.1.2 Xcp on FlexRay Receive Indication ...................................................... 36
9.2 XCP on CAN ............................................................................................... 37
9.2.1 Xcp on CAN Transmit ........................................................................... 37
9.2.2 Xcp on CAN Transmit Confirmation ...................................................... 38
9.2.3 Xcp on CAN Receive Indication ............................................................ 38
9.3 XCP on Ethernet.......................................................................................... 39
9.3.1 Xcp on Ethernet Receive Indication ...................................................... 39
10 Configuration specification ............................................................................. 40
10.1 How to read this chapter .......................................................................... 40
10.2 Containers and configuration parameters ................................................ 40
10.2.1 Xcp .................................................................................................... 41
10.2.2 XcpGeneral........................................................................................ 41
10.2.3 XcpConfig .......................................................................................... 49
10.2.4 XcpDaqList ........................................................................................ 50
10.2.5 XcpDto ............................................................................................... 52
10.2.6 XcpOdt............................................................................................... 53
10.2.7 XcpOdtEntry ...................................................................................... 54
10.2.8 XcpEventChannel .............................................................................. 57
10.2.9 XcpPdu .............................................................................................. 59
10.2.10 XcpRxPdu .......................................................................................... 60
10.2.11 XcpTxPdu .......................................................................................... 61
10.2.12 XcpCommunicationChannel .............................................................. 62
10.3 Published Information............................................................................... 64
11 Not applicable requirements .......................................................................... 65

5 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

1 Introduction and functional overview


This specification specifies the functionality, API and the configuration of the
AUTOSAR Basic Software module XCP

XCP is a protocol description (ASAM standard) between a master (tool) and a slave
(device), which provides the following basic features:

- Synchronous data acquisition (measurement)


- Synchronous data stimulation (for rapid prototyping)
- Online memory calibration (read / write access)
- Calibration data page initialization and switching
- Flash Programming for ECU development purposes
- Every feature is optional and the access can be restricted
- Various communications busses are supported

XCP was designed according to the following principles:

- Minimal Slave resource consumption (RAM, ROM, runtime)


- Efficient communication
- Simple Slave implementation

6 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

2 Acronyms and abbreviations


Acronym: Description:
AUTOSAR AUTomotive Open System ARchitecture
A2L File Extension for an ASAM 2MC Language File
ASAM Association for Standardization of Automation and Measuring
Systems
BSW Basic Software
CAN Controller Area Network
CanIf CAN Interface
CTO Command Transfer Object
DAQ Data AcQuisition, Data AcQuisition Packet
DTO Data Transfer Object
ECU Electronic Control Unit
FrIf FlexRay Interface
LPDU Data Link Layer PDU
MCD Measurement Calibration and Diagnostics
MISRA Motor Industry Software Reliability Association
ODT Object Descriptor Table
PDU Protocol Data Unit
RAM Random Access Memory
ROM Read Only Memory
SchM Schedule Manager
SVN Subversion
SRS Software Requirements Specification
STIM Data Stimulation packet
SW Software
SWS Software Specification
TCP/IP Transfer Control Protocol / Internet Protocol
TS Time Stamp
UDP/IP User Datagram Protocol / Internet Protocol
URL Uniform Resource Locator
XCP Universal Calibration Protocol
XML Extensible Markup Language
ISR Interrupt Service Routine
DET Default Error Tracer (AUTOSAR BSW module)

7 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

3 Related documentation

3.1 Input documents


[0] Basic Software Module Description Template
AUTOSAR_TPS_BSWModuleDescriptionTemplate.pdf

[1] List of Basic Software Modules


AUTOSAR_TR_BSWModuleList.pdf

[2] AUTOSAR Layered Software Architecture


AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf

[3] General Requirements on Basic Software Modules


AUTOSAR_SRS_BSWGeneral.pdf

[4] Specification of RTE (BSW Scheduler)


AUTOSAR_SWS_RTE.pdf

[5] Specification of ECU Configuration


AUTOSAR_TPS_ECUConfiguration

[6] Specification of Memory Mapping


AUTOSAR_SWS_MemoryMapping.pdf

[7] Specification of FlexRay Interface


AUTOSAR_SWS_FlexRayInterface.pdf

[8] Specification of CAN Interface


AUTOSAR_SWS_CANInterface

[9] Specification of Socket Adaptor


AUTOSAR_SWS_SocketAdaptor

[10] Requirements on XCP Module


AUTOSAR_SRS_XCP.pdf

[11] AUTOSAR OS Specification


AUTOSAR_SWS_OS

[12] General Specification of Basic Software Modules


AUTOSAR_SWS_BSWGeneral.pdf

3.1.1 Related standards and norms

[13] ASAM XCP – The Universal Measurement and Calibration Protocol:


ASAM_XCP_Part1-Overview - Version 1.1
8 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[14] ASAM XCP – Transport Layer Specification XCP on CAN:


ASAM_XCP_Part3 Transport-Layer-Specification_XCPonCAN - Version 1.2
[15] ASAM XCP – Transport Layer Specification XCP on Ethernet:
ASAM_XCP_Part3-Transport-Layer-Specification_XCPonEthernet
(TCP_IP&UDP_IP) – Version 1.1
[16] ASAM XCP – Transport Layer Specification XCP on FlexRay:
ASAM_XCP_Part3-Transport-Layer-Specification_XCPonFlexRay-Version 1.1

3.2 Related specification

AUTOSAR provides a General Specification on Basic Software modules [12] (SWS


BSW General), which is also valid for XCP.

Thus, the specification SWS BSW General shall be considered as additional and
required specification for XCP.

9 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

4 Constraints and assumptions

4.1 Limitations

The following XCP features are currently out of scope:

- The SET_DAQ_ID command according to the XCP CAN Transport Layer


Specification is not part of the AUTOSAE XCP module”

- Currently, the AUTOSAR RTE does not offer APIs for direct communication with
XCP

- For further details concerning the supported feature set, please refer to [13]

- NAX is only configurable through the ASAM configuration file A2L.

Please note:
For the communications bus LIN, no ASAM XCP is specified.

4.2 Applicability to car domains


n/a

10 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

5 Dependencies to other modules


This section describes the relations to other modules and files within the AUTOSAR
basic software architecture. It contains brief descriptions of configuration information
and services, which are required by the XCP module from other modules.

5.1 AUTOSAR RTE (BSW Scheduler)


The BSW Scheduler calls the main functions of the Xcp, which are necessary for the
cyclic processes of the Xcp.

5.2 AUTOSAR FlexRay Interface


The FlexRay Interface is used to transmit and receive XCP PDUs via FlexRay.

5.3 AUTOSAR CAN Interface


The CAN Interface is used to transmit and receive XCP PDUs via CAN.

5.4 AUTOSAR SocketAdaptor


The SocketAdaptor is used to transmit and receive XCP PDUs via Ethernet.

5.5 AUTOSAR RTE


The RTE is used for copying calibration parameters from ROM/FLASH to RAM and
to use the double pointered method

5.6 AUTOSAR OS
In order to be able to use the time stamped feature of XCP, an AUTOSAR OS
Counter is used.

5.7 AUTOSAR Diagnostic Event Manager


In order to be able to report production errors, the XCP has to have access to the
Diagnostic Event Manager.

11 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

5.8 AUTOSAR Default Error Tracer


In order to be able to report default errors, the XCP has to have access to the error
hook of the Default Error Tracer.

5.9 File structure

5.9.1 Code file structure

[SWS_Xcp_00501]
⌈ The code file structure shall not be defined within this specification completely. At
this point it shall be pointed out that the code-file structure shall include the following
files named:

- Xcp.c – general source code file of the module XCP


- Xcp_Cfg.c – for pre-compile time configurable parameters
- Xcp_Lcfg.c – for link time configurable parameters and
- Xcp_PBcfg.c – for post build time configurable parameters. ⌋
(SRS_BSW_00419, SRS_BSW_00383, SRS_BSW_00346,
SRS_BSW_00158)

These files shall contain all link time and post-build time configurable parameters.

12 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

6 Requirements traceability

Requirement Description Satisfied by


SRS_BSW_00003 All software modules shall provide version and SWS_Xcp_00807
identification information
SRS_BSW_00005 Modules of the µC Abstraction Layer (MCAL) SWS_Xcp_00999
may not have hard coded horizontal interfaces
SRS_BSW_00006 The source code of software modules above the SWS_Xcp_00999
µC Abstraction Layer (MCAL) shall not be
processor and compiler dependent.
SRS_BSW_00009 All Basic SW Modules shall be documented SWS_Xcp_00999
according to a common standard.
SRS_BSW_00010 The memory consumption of all Basic SW SWS_Xcp_00999
Modules shall be documented for a defined
configuration for all supported platforms.
SRS_BSW_00101 The Basic Software Module shall be able to SWS_Xcp_00803
initialize variables and hardware in a separate
initialization function
SRS_BSW_00158 - SWS_Xcp_00501
SRS_BSW_00159 All modules of the AUTOSAR Basic Software SWS_Xcp_00102
shall support a tool based configuration
SRS_BSW_00161 The AUTOSAR Basic Software shall provide a SWS_Xcp_00999
microcontroller abstraction layer which provides
a standardized interface to higher software
layers
SRS_BSW_00162 The AUTOSAR Basic Software shall provide a SWS_Xcp_00999
hardware abstraction layer
SRS_BSW_00164 The Implementation of interrupt service routines SWS_Xcp_00999
shall be done by the Operating System, complex
drivers or modules
SRS_BSW_00167 All AUTOSAR Basic Software Modules shall SWS_Xcp_00103,
provide configuration rules and constraints to SWS_Xcp_00104,
enable plausibility checks SWS_Xcp_00105
SRS_BSW_00168 SW components shall be tested by a function SWS_Xcp_00999
defined in a common API in the Basis-SW
SRS_BSW_00170 The AUTOSAR SW Components shall provide SWS_Xcp_00999
information about their dependency from faults,
signal qualities, driver demands
SRS_BSW_00171 Optional functionality of a Basic-SW component SWS_Xcp_00999
that is not required in the ECU shall be
configurable at pre-compile-time
SRS_BSW_00172 The scheduling strategy that is built inside the SWS_Xcp_00999
Basic Software Modules shall be compatible
with the strategy used in the system
SRS_BSW_00306 AUTOSAR Basic Software Modules shall be SWS_Xcp_00999
compiler and platform independent
SRS_BSW_00309 All AUTOSAR Basic Software Modules shall SWS_Xcp_00999
indicate all global data with read-only purposes
by explicitly assigning the const keyword
13 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

SRS_BSW_00312 Shared code shall be reentrant SWS_Xcp_00999


SRS_BSW_00314 All internal driver modules shall separate the SWS_Xcp_00999
interrupt frame definition from the service routine
SRS_BSW_00318 Each AUTOSAR Basic Software Module file SWS_Xcp_00807
shall provide version numbers in the header file
SRS_BSW_00321 The version numbers of AUTOSAR Basic SWS_Xcp_00999
Software Modules shall be enumerated
according specific rules
SRS_BSW_00325 The runtime of interrupt service routines and SWS_Xcp_00999
functions that are running in interrupt context
shall be kept short
SRS_BSW_00327 Error values naming convention SWS_Xcp_00763
SRS_BSW_00328 All AUTOSAR Basic Software Modules shall SWS_Xcp_00999
avoid the duplication of code
SRS_BSW_00330 It shall be allowed to use macros instead of SWS_Xcp_00999
functions where source code is used and
runtime is critical
SRS_BSW_00331 All Basic Software Modules shall strictly SWS_Xcp_00999
separate error and status information
SRS_BSW_00333 For each callback function it shall be specified if SWS_Xcp_00999
it is called from interrupt context or not
SRS_BSW_00335 Status values naming convention SWS_Xcp_00999
SRS_BSW_00336 Basic SW module shall be able to shutdown SWS_Xcp_00999
SRS_BSW_00341 Module documentation shall contains all needed SWS_Xcp_00999
informations
SRS_BSW_00344 BSW Modules shall support link-time SWS_Xcp_00741
configuration
SRS_BSW_00345 BSW Modules shall support pre-compile SWS_Xcp_00742
configuration
SRS_BSW_00346 All AUTOSAR Basic Software Modules shall SWS_Xcp_00501
provide at least a basic set of module files
SRS_BSW_00347 A Naming seperation of different instances of SWS_Xcp_00999
BSW drivers shall be in place
SRS_BSW_00358 The return type of init() functions implemented SWS_Xcp_00803
by AUTOSAR Basic Software Modules shall be
void
SRS_BSW_00360 AUTOSAR Basic Software Modules callback SWS_Xcp_00999
functions are allowed to have parameters
SRS_BSW_00371 The passing of function pointers as API SWS_Xcp_00999
parameter is forbidden for all AUTOSAR Basic
Software Modules
SRS_BSW_00373 The main processing function of each SWS_Xcp_00823
AUTOSAR Basic Software Module shall be
named according the defined convention
SRS_BSW_00374 All Basic Software Modules shall provide a SWS_Xcp_00807
readable module vendor identification
SRS_BSW_00375 Basic Software Modules shall report wake-up SWS_Xcp_00999
reasons

14 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

SRS_BSW_00377 A Basic Software Module can return a module SWS_Xcp_00999


specific types
SRS_BSW_00379 All software modules shall provide a module SWS_Xcp_00807
identifier in the header file and in the module
XML description file.
SRS_BSW_00383 The Basic Software Module specifications shall SWS_Xcp_00501
specify which other configuration files from other
modules they use at least in the description
SRS_BSW_00401 Documentation of multiple instances of SWS_Xcp_00999
configuration parameters shall be available
SRS_BSW_00402 Each module shall provide version information SWS_Xcp_00807
SRS_BSW_00404 BSW Modules shall support post-build SWS_Xcp_00742
configuration
SRS_BSW_00405 BSW Modules shall support multiple SWS_Xcp_00803
configuration sets
SRS_BSW_00407 Each BSW module shall provide a function to SWS_Xcp_00807
read out the version information of a dedicated
module implementation
SRS_BSW_00410 Compiler switches shall have defined values SWS_Xcp_00999
SRS_BSW_00411 All AUTOSAR Basic Software Modules shall SWS_Xcp_00807
apply a naming rule for enabling/disabling the
existence of the API
SRS_BSW_00413 An index-based accessing of the instances of SWS_Xcp_00999
BSW modules shall be done
SRS_BSW_00414 Init functions shall have a pointer to a SWS_Xcp_00803
configuration structure as single parameter
SRS_BSW_00415 Interfaces which are provided exclusively for one SWS_Xcp_00999
module shall be separated into a dedicated
header file
SRS_BSW_00416 The sequence of modules to be initialized shall SWS_Xcp_00999
be configurable
SRS_BSW_00417 Software which is not part of the SW-C shall SWS_Xcp_00999
report error events only after the DEM is fully
operational.
SRS_BSW_00419 If a pre-compile time configuration parameter is SWS_Xcp_00501
implemented as "const" it should be placed into
a separate c-file
SRS_BSW_00423 BSW modules with AUTOSAR interfaces shall SWS_Xcp_00999
be describable with the means of the SW-C
Template
SRS_BSW_00424 BSW module main processing functions shall SWS_Xcp_00823
not be allowed to enter a wait state
SRS_BSW_00425 The BSW module description template shall SWS_Xcp_00999
provide means to model the defined trigger
conditions of schedulable objects
SRS_BSW_00426 BSW Modules shall ensure data consistency of SWS_Xcp_00999
data which is shared between BSW modules
SRS_BSW_00427 ISR functions shall be defined and documented SWS_Xcp_00999
in the BSW module description template

15 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

SRS_BSW_00428 A BSW module shall state if its main processing SWS_Xcp_00999


function(s) has to be executed in a specific order
or sequence
SRS_BSW_00432 Modules should have separate main processing SWS_Xcp_00999
functions for read/receive and write/transmit
data path
SRS_BSW_00433 Main processing functions are only allowed to be SWS_Xcp_00823
called from task bodies provided by the BSW
Scheduler
SRS_Xcp_29001 The AUTOSAR XCP module shall be located SWS_Xcp_00701
above the bus interfaces / Socket Adaptor
SRS_Xcp_29002 The AUTOSAR XCP shall make use of the data SWS_Xcp_00712,
transmit- and receive APIs of the Bus Interfaces SWS_Xcp_00714,
SWS_Xcp_00720,
SWS_Xcp_00734
SRS_Xcp_29003 The AUTOSAR XCP messages shall be SWS_Xcp_00702
identified by unique PDU-IDs
SRS_Xcp_29004 The XCP Specification Version 1.1 shall be used SWS_Xcp_00703
SRS_Xcp_29005 XCP on CAN shall be supported SWS_Xcp_00713
SRS_Xcp_29006 XCP on FlexRay shall be supported SWS_Xcp_00719
SRS_Xcp_29007 XCP on Ethernet shall be supported SWS_Xcp_00733
SRS_Xcp_29008 The code generator of the XCP Module shall SWS_Xcp_00853,
generate the A2L IF_DATA section SWS_Xcp_00999
SRS_Xcp_29009 The slave shall transfer the contents of the SWS_Xcp_00705
elements defined in each ODT of the DAQ-list to
the master
SRS_Xcp_29010 Synchronous Data Stimulation shall be the SWS_Xcp_00707
inverse mode of Synchronous Data Acquisition
SRS_Xcp_29012 The XCP master shall already send the next SWS_Xcp_00710
request before having received the response on
the previous request
SRS_Xcp_29013 It shall be possible to configure the DAQ Lists SWS_Xcp_00706
dynamically
SRS_Xcp_29014 It shall be possible to transmit a timestamp SWS_Xcp_00709
within the XCP packet
SRS_Xcp_29015 It shall be possible to bypass data by making SWS_Xcp_00761
use of Synchronous Data Acquisition and
Synchronous Data Stimulation simultaneously
SRS_Xcp_29016 The feature "Seed&Key" shall be used for SWS_Xcp_00766
protection handling purpose
SRS_Xcp_29017 The AUTOSAR XCP module shall implement an SWS_Xcp_00803
interface for initialization.
SRS_Xcp_29018 Page switching shall be supported SWS_Xcp_00852
SRS_Xcp_29019 DAQ configuration storing with power-up data SWS_Xcp_00854
transfer (RESUME mode) shall be supported
SRS_Xcp_29020 Flash Programming for ECU development SWS_Xcp_00855,
purposes SWS_Xcp_00856

16 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

17 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

7 Functional specification
The specification of the module XCP shall define all parameters and interfaces,
which are required to use the ASAM XCP protocol specification within an AUTOSAR
environment.

RTE

IPDUM COM DCM


XCP Protocol

SoAd
OS PDUR
XCPonCan

XCPonEth
XCPonFr

TP NM

Bus Interfac(s)

Communication HW Abstraction

Bus Driver(s)

Communication Drivers

Figure 1: Description
Black arrows: Data Path (Signals/Pdus)
Orange arrows: Control Path (FlexRay Interface)

[SWS_Xcp_00701]⌈
The AUTOSAR XCP Module be located above the bus specific Interfaces in case of
FlexRay and Can. In case of Ethernet, the AUTOSAR XCP module shall be located
above the Socket Adaptor.⌋ (SRS_Xcp_29001)

[SWS_Xcp_00702]⌈
For transmitting and receiving of XCP messages, unique PDU-IDs shall be used. ⌋
(SRS_Xcp_29003)

[SWS_Xcp_00703]⌈
The AUTOSAR XCP Module shall support the ASAM XCP Specification Version 1.1,
except for XCP on CAN where ASAM XCP Specification Version 1.2 shall be
supported.⌋ (SRS_Xcp_29004)

[SWS_Xcp_00705]⌈
The AUTOSAR XCP Module shall support the basic feature “Synchronous data
acquisition (measurement) “. Please refer to [13]⌋ (SRS_Xcp_29009)
18 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[SWS_Xcp_00706]⌈
The AUTOSAR XCP Module shall support the feature “Dynamic DAQ Configuration”.
according to [13]⌋ (SRS_Xcp_29013)

19 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[SWS_Xcp_00707]
⌈ The AUTOSAR XCP Module shall support the basic feature “Synchronous data
stimulation” according to [13]⌋ (SRS_Xcp_29010)

[SWS_Xcp_00708]⌈
The AUTOSAR XCP Module shall support the basic feature “Online memory
calibration (read / write access) “, according to [13]⌋ ()

[SWS_Xcp_00709]⌈
The AUTOSAR XCP Module shall support the feature “Timestamped Data Transfer“,
according to [13]⌋ (SRS_Xcp_29014)

[SWS_Xcp_00768]⌈
The ECU local time shall be derived from the AUTOSAR OS.⌋ ()

[SWS_Xcp_00711]⌈
The AUTOSAR XCP Module shall support the feature “Block communication mode“,
according to [13]⌋ ()

[SWS_Xcp_00761]⌈
The AUTOSAR XCP Module shall support the feature “Bypassing“, according to [13]
⌋ (SRS_Xcp_29015)

[SWS_Xcp_00766]⌈
The AUTOSAR XCP Module shall support the feature “Seed & Key” according to [13]
⌋ (SRS_Xcp_29016)

[SWS_Xcp_00712]⌈
For sending and receiving of calibration data, the sending and receiving APIs
specified within the AUTOSAR BSW Bus Interfaces (FlexRay Interface, CAN
Interface, TCP/IP Socket Adaptor) shall be used. Please refer to chapter 7.1, 7.2
and 7.3.⌋ (SRS_Xcp_29002)

[SWS_Xcp_00852]⌈The AUTOSAR XCP Module shall support the feature “Page


switching“, according to [13]⌋(SRS_Xcp_29018)

[SWS_Xcp_00853]⌈The code generator of the XCP Module shall generate the A2L
IF_DATA section, based on the configuration of XCP⌋(SRS_Xcp_29008)

[SWS_Xcp_00854]⌈The AUTOSAR XCP Module shall support the feature “Power-Up


data transfer (RESUME MODE)“, according to [13]⌋(SRS_Xcp_29019)

[SWS_Xcp_00855] ⌈ The AUTOSAR XCP Module shall support the flash


programming (PGM) according to [13]⌋ ( SRS_Xcp_29020)

[SWS_Xcp_00856]⌈ Indication the end of a programming sequence is supported


using the optional command "PROGRAM_RESET", where the slave will go to
disconnected state but without forcing a device reset ⌋ (SRS_Xcp_29020)
20 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[SWS_Xcp_00859]⌈ The XCP module shall wait for the Xcp_<Lo>TxConfirmation


(positive or negative) after each call to <Lo>_Transmit to avoid overwriting previously
transmitted data ⌋ ()

7.1 XCP on CAN


[SWS_Xcp_00713]⌈
The AUTOSAR XCP Module shall support the CAN communications bus according
to [14]⌋ (SRS_Xcp_29005)

[SWS_Xcp_00714]
⌈ XCP data sent and received via CAN, the PDUs have to be transmitted and
received using the transmitting and receive APIs provided by the AUTOSAR CAN
Interface, according to [8]⌋ (SRS_Xcp_29002)

[SWS_Xcp_00715]⌈
For sending and receiving XCP data via CAN, at least two different CAN identifiers
have to be configured to be used by XCP.⌋ ()

[SWS_Xcp_00716]⌈
Performance information shall be exchanged between the XCP master and XCP
slave using the parameters according to [14]⌋ ()

[SWS_Xcp_00718]⌈
The XCP Module shall support the GET_SLAVE_ID command according to [14]⌋ ()

7.2 XCP on FlexRay


[SWS_Xcp_00719]⌈
The AUTOSAR XCP Module shall support the FlexRay communications bus
according to [16]⌋ (SRS_Xcp_29006)

[SWS_Xcp_00720]⌈
XCP data sent and received via FlexRay, the PDUs have to be transmitted and
received using the transmit and receive APIs provided by the AUTOSAR FlexRay
Interface according to [7].⌋ (SRS_Xcp_29002)

[SWS_Xcp_00721]⌈
All XCP on FlexRay LPDUs always are event driven. Please refer to Chapter 1.1.2
“FlexRay Frame Type” of [16]⌋ ()

[SWS_Xcp_00722]⌈

21 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

The hardware buffers (of the FlexRay Communication Controller) XCP uses for data
transmission and reception are assigned exclusively to the XCP module.⌋ ()

Note:
This restriction prevents disturbances of ongoing FlexRay communication.

[SWS_Xcp_00723]⌈
The usage of FlexRay Communication Controller’s hardware buffers shall be
configured by the corresponding parameters according to [16]⌋ ()

[SWS_Xcp_00724]⌈
The FlexRay PDU length used by the AUTOSAR XCP module shall be set using the
corresponding parameters according to [16]⌋ ()

[SWS_Xcp_00725]⌈
LPDU_IDs which shall be routed to the AUTOSAR XCP module (using the
AUTOSAR Bus Interface) have to be defined by the system designer. ⌋ ()

[SWS_Xcp_00726]⌈
The ASAM MCD 2MC description file (i.e. A2L file) describes to which extent the
XCP-dedicated buffers of a specific slave can be configured for XCP communication.
⌋ ()

[SWS_Xcp_00728]⌈
The XCP master gets the information about the XCP dedicated FlexRay
Communication Controller buffers from the ASAM MCD 2MC description file. ⌋ ()

[SWS_Xcp_00729]⌈
Limitations due to the usage of multiple XCP slaves on the FlexRay communications
bus shall be taken into consideration by the system designer. Please refer to [16].⌋ ()

[SWS_Xcp_00730]⌈
Depending upon the requirements on sequencing correctness, alignment and net
data throughput, different header types are possible. Please refer to Chapter 1.4.1
”Header” of [16]⌋ ()

[SWS_Xcp_00731]
⌈ For XCP on FlexRay, the Tail consists of a Control Field containing optional FILL
bytes according to [16].⌋ ()

[SWS_Xcp_00732]⌈
The AUTOSAR XCP module shall be able to pack multiple XCP messages into one
FlexRay Frame according to [16].⌋ ()

22 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

7.3 XCP on Ethernet


[SWS_Xcp_00733]⌈
The AUTOSAR XCP Module shall support the Ethernet communications bus
according to [15]⌋ (SRS_Xcp_29007)

[SWS_Xcp_00734]⌈
XCP data sent and received via Ethernet, the PDUs have to be transmitted and
received using the transmitting and receive APIs provided by the AUTOSAR Socket
Adaptor according to [9].⌋ (SRS_Xcp_29002)

[SWS_Xcp_00735]⌈
The AUTOSAR XCP slave connected by Ethernet and TCP/IP or UDP/IP is
addressed by its IP Address and Port number.⌋ ()

[SWS_Xcp_00736]⌈
The AUTOSAR XCP slave only accepts one connection at the time. ⌋ ()

[SWS_Xcp_00737]⌈
If the socket is closed while in XCP connected state, the slave device will perform an
XCP disconnect, which means that all data acquisition will be stopped.⌋ ()

[SWS_Xcp_00738]⌈
The addressing scheme is defined according to [15]⌋ ()
.
[SWS_Xcp_00739]⌈
The header and tail of an XCP on Ethernet message have to be set according to [15]
⌋ ()

[SWS_Xcp_00740]⌈
The upper performance limit depends on the protocol stack of the host system. The
corresponding parameters defined according to [15] have to be set.⌋ ()

[SWS_Xcp_00710]⌈
The AUTOSAR XCP Module shall support the feature “Interleaved communication
mode“, according to according to [13]⌋ (SRS_Xcp_29012)

7.4 General Requirements


[SWS_Xcp_00741]⌈
Link-time and post-build-time configuration data shall be implemented as read-only
data structures. Link-time configuration data shall be immediately referenced by the
implementation, the start-address of post-build-time configuration data shall be
passed during module initialization⌋ (SRS_BSW_00344)

23 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[SWS_Xcp_00742]
⌈ The XCP module shall support pre-compile time, link-time and post-build-time
configuration.⌋ (SRS_BSW_00404, SRS_BSW_00345)

7.5 Error classification

[SWS_Xcp_00763]
⌈ The error values and EventIds are named in capital letters according to the
scheme
XCP_E_<NAME>, where NAME describes the error/EventId and may consist of
several words separated by underscores.⌋ (SRS_BSW_00327)

7.5.1 Development Errors

[SWS_Xcp_00857]
⌈ Development Error Types⌋ ()
Type or error Relevance Related error code Value [hex]
Module not initialized Development XCP_E_UNINIT 0x02
Initialization of XCP failed Development XCP_E_INIT_FAILED 0x04
Null pointer has been Development XCP_E_PARAM_POINTER 0x12
passed as an argument
API call with wrong PDU ID Development XCP_E_INVALID_PDUID 0x03

7.5.2 Runtime Errors

< There are no runtime errors.>

7.5.3 Transient Faults

< There are no transient faults.>

7.5.4 Production Errors

< There are no production errors.>

24 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

7.6 Error detection


For details refer to the chapter 7.3 “Error Detection” in SWS_BSWGeneral.

7.7 Error notification


For details refer to the chapter 7.4 “Error notification” in SWS_BSWGeneral.

7.8 Version checking


For details refer to the chapter 5.1.8 “Version Check” in SWS_BSWGeneral.

25 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

8 API specification

8.1 Imported types


In this chapter all types included from the following modules are listed:

[SWS_Xcp_00801]⌈
Module Header File Imported Type

ComStack_Types.h NetworkHandleType

ComStack_Types.h PduIdType
ComStack_Types
ComStack_Types.h PduInfoType

ComStack_Types.h PduLengthType

Fr Fr_GeneralTypes.h Fr_ChannelType

Os.h StatusType

Os.h TickRefType
Os
Os.h TickType

Rte_Os_Type.h CounterType

Std_Types.h Std_ReturnType
Std
Std_Types.h Std_VersionInfoType

⌋()

8.2 Type definitions

8.2.1 Xcp_ConfigType

[SWS_Xcp_00845]⌈
Name Xcp_ConfigType

Kind Structure

implementation specific

Elements Type --

Comment The content of the initialization data structure is implementation specific

Description This is the type of the data structure containing the initialization data for XCP.

26 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Available via Xcp.h

⌋()

8.2.2 Xcp_Transmission Mode Type

[SWS_Xcp_00846]⌈
Name Xcp_TransmissionModeType

Kind Enumeration

XCP_TX_OFF 0x00 Transmission Disabled


Range
XCP_TX_ON 0x01 Transmission Enabled

Description Handles the enabling and disabling of the transmission mode

Available via Xcp.h

⌋()

27 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

8.3 Function definitions


This is a list of functions provided for upper layer modules.

8.3.1 Xcp_Init

[SWS_Xcp_00803]⌈
Service Name Xcp_Init

void Xcp_Init (
Syntax const Xcp_ConfigType* Xcp_ConfigPtr
)

Service ID [hex] 0x00

Sync/Async Synchronous

Reentrancy Non Reentrant

Parameters (in) Xcp_ConfigPtr Pointer to a selected configuration structure

Parameters (inout) None

Parameters (out) None

Return value void --

Description This service initializes interfaces and variables of the AUTOSAR XCP layer.

Available via Xcp.h

⌋(SRS_BSW_00405, SRS_BSW_00101, SRS_BSW_00358, SRS_BSW_00414,


SRS_Xcp_29017)
[SWS_Xcp_00802] ⌈ The function Xcp_Init shall internally store the configuration
address to enable subsequent API calls to access the configuration⌋ ()

8.3.2 Xcp_GetVersionInfo

[SWS_Xcp_00807]⌈
Service Name Xcp_GetVersionInfo

void Xcp_GetVersionInfo (
Syntax Std_VersionInfoType* versioninfo
)

Service ID [hex] 0x01

Sync/Async Synchronous

Reentrancy Reentrant

28 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Parameters (in) None

Parameters (inout) None

Parameters (out) versioninfo Pointer to where to store the version information of this module.

Return value void --

Description Returns the version information of this module.

Available via Xcp.h

⌋(SRS_BSW_00402, SRS_BSW_00407, SRS_BSW_00411, SRS_BSW_00374,


SRS_BSW_00379, SRS_BSW_00003, SRS_BSW_00318)

[SWS_Xcp_00825] ⌈
If development error detection for the Xcp module is enabled, then the function
Xcp_GetVersionInfo shall check whether the parameter VersioninfoPtr is a NULL
pointer (NULL_PTR). If VersioninfoPtr is a NULL pointer, then the function
Xcp_GetVersionInfo shall raise the development error XCP_E_PARAM_POINTER
and return.⌋ ()

8.3.3 Xcp_SetTransmissionMode

[SWS_Xcp_00844]⌈
Service Name Xcp_SetTransmissionMode

void Xcp_SetTransmissionMode (
NetworkHandleType Channel,
Syntax
Xcp_TransmissionModeType Mode
)

Service ID [hex] 0x05

Sync/Async Synchronous

Reentrancy Non Reentrant

Channel The Network channel for the used bus communication


Parameters (in)
Mode Enabled or disabled Transmission mode Parameters

Parameters
None
(inout)

Parameters
None
(out)

Return value None

This API is used to turn on and off of the TX capabilities of used communication
Description
bus channel in XCP module.

Available via Xcp.h

29 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

⌋()
[SWS_Xcp_00848] ⌈
The XCP module shall provide this service only if XCP_SUPPRESS_TX_SUPPORT
(see ECUC_Xcp_00169) equals TRUE.⌋ ()

[SWS_Xcp_00849]⌈
If Xcp_SetTransmissionMode(Channel, Mode) is called and parameter Mode
equals XCP_TX_OFF, all TxPDUs which are assigned to Channel shall not be
transmitted. ⌋ ()

Note: It could be derived from <Bus>If configuration and the global PDU parameter,
to which specific communication channel the PDU is assigned to.

[SWS_Xcp_00850] ⌈
If Xcp_SetTransmissionMode(Channel, Mode) is called and parameter Mode
equals XCP_TX_ON, all TxPDUs which are assigned to Channel shall be able to be
transmitted. ⌋ ()

30 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

8.4 Call-back notifications


[SWS_Xcp_00836] ⌈
This is a list of functions provided for other modules. ⌋ ()

8.4.1 Xcp_<Lo>RxIndication

[SWS_Xcp_00813]⌈
Service Name Xcp_<Lo>RxIndication

void Xcp_<Lo>RxIndication (
PduIdType RxPduId,
Syntax
const PduInfoType* PduInfoPtr
)

Service ID
0x42
[hex]

Sync/Async Synchronous

Reentrancy Reentrant for different PduIds. Non reentrant for the same PduId.

RxPdu
ID of the received PDU.
Id
Parameters
(in) Contains the length (SduLength) of the received PDU, a pointer to a
Pdu
buffer (SduDataPtr) containing the PDU, and the MetaData related to this
InfoPtr
PDU.

Parameters
None
(inout)

Parameters
None
(out)

Return value None

Description Indication of a received PDU from a lower layer communication interface module.

Available via Xcp.h

⌋()

The callback function Xcp_<Lo>RxIndication is called by the Bus Interfaces,


Ethernet Socket Adaptor or CDD and is implemented by the Xcp module.

[SWS_Xcp_00847] ⌈
The callback function Xcp_<Lo>RxIndication shall inform the DET, if
development error detection is enabled (XCP_DEV_ERROR_DETECT is set to TRUE) and if
function call has failed because of the following reasons:
 Xcp was not initialized (XCP_E_UNINIT)
31 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

 PduInfoPtr equals NULL_PTR (XCP_E_PARAM_POINTER)


 Invalid PDUID (XCP_E_INVALID_PDUID)⌋ ()

The function Xcp_<Lo>RxIndication shall be called by the Xcp module’s


environment in an interrupt context.

8.4.2 Xcp_<Lo>TxConfirmation

[SWS_Xcp_00814]⌈
Service Name Xcp_<Lo>TxConfirmation

void Xcp_<Lo>TxConfirmation (
PduIdType TxPduId,
Syntax
Std_ReturnType result
)

Service ID [hex] 0x40

Sync/Async Synchronous

Reentrancy Reentrant for different PduIds. Non reentrant for the same PduId.

TxPduId ID of the PDU that has been transmitted.


Parameters (in)
E_OK: The PDU was transmitted. E_NOT_OK: Transmission of the
result
PDU failed.

Parameters
None
(inout)

Parameters
None
(out)

Return value None

The lower layer communication interface module confirms the transmission of a


Description
PDU, or the failure to transmit a PDU.

Available via Xcp.h

⌋()

Note:
The callback function Xcp_<Lo>TxConfirmation is called by the Bus Interfaces,
Ethernet Socket Adaptor or CDD and is implemented by the Xcp module.

[SWS_Xcp_00840] ⌈
If development error detection for the XCP module is enabled: if the function
Xcp_<Lo>TxConfirmation is called before the XCP was initialized successfully,
the function Xcp_<Lo>TxConfirmation shall raise the development error
XCP_E_UNINIT and return.⌋ ()

32 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

[SWS_Xcp_00841] ⌈
Caveats of Xcp_<Lo>TxConfirmation:
 The call context is either on interrupt level (interrupt mode) or on task level
 The Xcp module is initialized correctly.
⌋ ()

8.4.3 Xcp_<Lo>TriggerTransmit

[SWS_Xcp_00835]⌈
Service
Xcp_<Lo>TriggerTransmit
Name

Std_ReturnType Xcp_<Lo>TriggerTransmit (
PduIdType TxPduId,
Syntax
PduInfoType* PduInfoPtr
)

Service ID
0x41
[hex]

Sync/Async Synchronous

Reentrancy Reentrant for different PduIds. Non reentrant for the same PduId.

Parameters
TxPduId ID of the SDU that is requested to be transmitted.
(in)

Contains a pointer to a buffer (SduDataPtr) to where the SDU data shall


Parameters
PduInfoPtr be copied, and the available buffer size in SduLengh. On return, the
(inout)
service will indicate the length of the copied SDU data in SduLength.

Parameters
None
(out)

E_OK: SDU has been copied and SduLength indicates the number of
Std_-
copied bytes.
Return value Return-
E_NOT_OK: No SDU data has been copied. PduInfoPtr must not be
Type
used since it may contain a NULL pointer or point to invalid data.

Within this API, the upper layer module (called module) shall check whether the
available data fits into the buffer size reported by PduInfoPtr->SduLength. If it fits, it
Description shall copy its data into the buffer provided by PduInfoPtr->SduDataPtr and update
the length of the actual copied data in PduInfoPtr->SduLength. If not, it returns E_
NOT_OK without changing PduInfoPtr.

Available via Xcp.h

⌋()

Note:
The callback function Xcp_<Lo>TriggerTransmit is called by the Bus Interfaces,
Ethernet Socket Adaptor or CDD and is implemented by the Xcp module.

[SWS_Xcp_00842] ⌈
33 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

If development error detection for the XCP module is enabled: if the function
Xcp_<Lo>TriggerTransmit is called before the XCP was initialized successfully,
the function Xcp_<Lo>TriggerTransmit shall raise the development error
XCP_E_UNINIT and return E_NOT_OK.⌋ ()

[SWS_Xcp_00843] ⌈
Caveats of Xcp_<Lo>TriggerTransmit:
 The call context is either on interrupt level (interrupt mode) or on task level
 The Xcp module is initialized correctly.⌋ ()

8.5 Scheduled functions


The functions are called directly by Basic Software Scheduler. The following
functions shall have no return value and no parameter. All functions shall be non
reentrant.

8.5.1 Xcp_MainFunction

[SWS_Xcp_00823]⌈
Service Name Xcp_MainFunction

void Xcp_MainFunction (
Syntax void
)

Service ID [hex] 0x04

Description Scheduled function of the XCP module

Available via SchM_Xcp.h

⌋(SRS_BSW_00424, SRS_BSW_00433, SRS_BSW_00373)

[SWS_Xcp_00824] ⌈
The XCP Main Function shall be called cyclically.⌋ ()

8.6 Expected Interfaces


In this chapter, all interfaces required from other modules are listed.

8.6.1 Mandatory Interfaces

[SWS_Xcp_91001]⌈
API Function Header File Description

There are no mandatory interfaces.

34 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

⌋()

8.6.2 Optional Interfaces

[SWS_Xcp_00832]⌈
API Header
Description
Function File

CanIf_-
FrIf.h Requests transmission of a PDU.
Transmit

Det_Report-
Det.h Service to report development errors.
Error

FrIf_Disable- Wraps the FlexRay Driver Function Fr_DisableLPdu. It disables the


FrIf.h
LPdu hardware resource of an LPdu for transmission/reception.

FrIf_-
Calls the FlexRay Driver's API Fr_ReconfigLPdu. The enum value "FR_
ReconfigL- FrIf.h
CHANNEL_AB" shall not be used.
Pdu

FrIf_-
FrIf.h Requests transmission of a PDU.
Transmit

This service reads the current count value of a counter (returning either
GetCounter-
Os.h the hardware timer ticks if counter is driven by hardware or the software
Value
ticks when user drives counter).

GetElapsed- This service gets the number of ticks between the current tick value and a
Os.h
Value previously read tick value.

SoAd_If-
SoAd.h Requests transmission of a PDU.
Transmit

⌋()

8.6.3 Configurable interfaces

In this chapter, all interfaces are listed where the target function could be configured.
The target function is usually a call-back function. The names of these kind of
interfaces is not fixed because they are configurable.

The XCP module offers configurable interfaces to be used by Complex Driver(s).

35 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

9 Sequence diagrams

9.1 XCP on FlexRay

9.1.1 Xcp on FlexRay Transmit

XcpOnFr: Xcp FrIf: FrIf Fr: Fr

FrIf_Transmit(Std_ReturnType, PduIdType,
const PduInfoType *)

FrIf_Transmit()

Xcp_FrIfTriggerTransmit(PduIdType, uint8**)

Copy PDU to location *FrSduPtr()

Xcp_FrIfTriggerTransmit()

Fr_TransmitTxLPdu(Std_ReturnType, uint8,
uint16, const uint8*, uint8,
Fr_SlotAssignmentType**)

Fr_TransmitTxLSdu()

Figure 2: Xcp On FlexRay Transmit

9.1.2 Xcp on FlexRay Receive Indication

36 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

XcpOnFr: Xcp FrIf: FrIf

Xcp_FrIfRxIndication(PduIdType, const uint8*)

Copy PDU to internal location and process PDU()

Xcp_FrIfRxIndication()

Figure 3: Xcp on FlexRay Receive Indication

9.2 XCP on CAN

9.2.1 Xcp on CAN Transmit

XCPonCAN: Xcp CanIf: CanIf Can: Can

CanIf_Transmit(Std_ReturnType, PduIdType,
const PduInfoType*)

Can_Write(Std_ReturnType, Can_HwHandleType,
const Can_PduType*)

Can_Write()

CanIf_Transmit()

Figure 4: Xcp on Can Transmit

37 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

9.2.2 Xcp on CAN Transmit Confirmation

XCPonCAN: Xcp CanIf: CanIf Can: Can

CanIf_TxConfirmation(PduIdType)

Xcp_CanIfTxConfirmation(PduIdType,
Std_ReturnType)

Xcp_CanIfTxConfirmation()

CanIf_TxConfirmation()

Figure 5: Xcp on CAN Transmit Confirmation

9.2.3 Xcp on CAN Receive Indication

XCPonCAN: Xcp CanIf: CanIf Can: Can

CanIf_RxIndication(const Can_HwType*, const PduInfoType*)

Xcp_CanIfRxIndication(PduIdType, const uint8**)

Copy Data()

Copy Data()

Xcp_CanIfRxIndication()

CanIf_RxIndication()

Figure 6: Xcp on CAN Receive Indication

38 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

9.3 XCP on Ethernet

9.3.1 Xcp on Ethernet Receive Indication

XCPonEth: Xcp SoAd: SoAd

Xcp_SoAdIfRxIndication()

Figure 7: Xcp on Ethernet Receive Indication

39 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

10 Configuration specification
In general, this chapter defines configuration parameters and their clustering into
containers. In order to support the specification Chapter 10.1 describes
fundamentals. It also specifies a template (table) you shall use for the parameter
specification. We intend to leave Chapter 10.1 in the specification to guarantee
comprehension.

Chapter 10.2 specifies the structure (containers) and the parameters of the module
XCP.

Chapter 10.3 specifies published information of the module XCP.

10.1 How to read this chapter


For details refer to the chapter 10.1 “Introduction to configuration specification” in
SWS_BSWGeneral.

10.2 Containers and configuration parameters

The following chapters summarize all configuration parameters. The detailed


meanings of the parameters describe Chapters 7 and Chapter 8.

[SWS_Xcp_00102] ⌈
The listed configuration items can be derived from a network description database,
which is based on the EcuConfigurationTemplate. The configuration tool shall extract
all information to configure the XCP.⌋ (SRS_BSW_00159)

[SWS_XCP_00103] ⌈
The configuration tool must check the consistency of the configuration at
configuration time.⌋ (SRS_BSW_00167)

[SWS_Xcp_00104] ⌈
Configuration rules and constraints for plausibility checks shall be performed during
configuration time, wherever possible.⌋ (SRS_BSW_00167)

[SWS_Xcp_00105] ⌈
These dependencies between FlexRay Interface and FlexRay Driver configuration
must be provided at configuration time by the configuration tools. ⌋
(SRS_BSW_00167)

40 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

10.2.1 Xcp

SWS Item ECUC_Xcp_00182 :


Module Name Xcp
Module Description Configuration of the XCP module
Post-Build Variant Support true
Supported Config Variants VARIANT-POST-BUILD, VARIANT-PRE-COMPILE

Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters and sub
XcpConfig 1
containers of the AUTOSAR Xcp module.
This container contains the general configuration parameters
XcpGeneral 1
of the XCP.

10.2.2 XcpGeneral

SWS Item ECUC_Xcp_00001 :


Container Name XcpGeneral
Parent Container Xcp
Description This container contains the general configuration parameters of the XCP.
Configuration Parameters

SWS Item ECUC_Xcp_00164 :


Name XcpDaqConfigType
Parent Container XcpGeneral
Description Sets the DAQ_CONFIG_TYPE bit within the DAQ_PROPERTIES parameter to
"static" or to "dynamic". If DAQ_STATIC is selected, the DAQ_CONFIG_TYPE bit is
set to "0". If DAQ_DYNAMIC is selected, the DAQ_CONFIG_TYPE bit is set to "1".
Multiplicity 1
Type EcucEnumerationParamDef
Range DAQ_DYNAMIC If DAQ_DYNAMIC is selected, the
DAQ_CONFIG_TYPE bit is set to '1'
DAQ_STATIC If DAQ_STATIC is selected, the
DAQ_CONFIG_TYPE bit is set to '0'
Post-Build Variant
false
Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: ECU
Dependency dependency: If DAQ_CONFIG_TYPE = dynamic, MAX_DAQ equals
MIN_DAQ+DAQ_COUNT.

SWS Item ECUC_Xcp_00012 :


Name XcpDaqCount
Parent Container XcpGeneral
Description Indicates the number of DAQ lists for dynamic configuration.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 65535
Default value --
41 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Post-Build Variant Value false


Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time --
Scope / Dependency scope: ECU
dependency: This parameter is available only if XcpDaqConfigType is set
to "1" i.e DAQ_DYNAMIC

SWS Item ECUC_Xcp_00003 :


Name XcpDevErrorDetect
Parent Container XcpGeneral
Description Switches the development error detection and notification on or off.
 true: detection and notification is enabled.

 false: detection and notification is disabled.


Multiplicity 1
Type EcucBooleanParamDef
Default value false
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00181 :


Name XcpFlashProgrammingEnabled
Parent Container XcpGeneral
Description Enabling of XCP Flash programming functionality
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00170 :


Name XcpIdentificationFieldType
Parent Container XcpGeneral
Description Type of Identification Field the slave will use when transferring DAQ Packets to the
master. The master has to use the same Type of Identification Field when
transferring STIM Packets to the slave.
Multiplicity 1
Type EcucEnumerationParamDef
Range ABSOLUTE Absolute ODT number
RELATIVE_BYTE Relative ODT number, absolute
DAQ list number (BYTE)
RELATIVE_WORD Relative ODT number, absolute
DAQ list number (WORD)
RELATIVE_WORD_ALIGNED Relative ODT number, absolute
DAQ list number (WORD, aligned).
Post-Build Variant
false
Value
Value Pre-compile time X All Variants

42 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Configuration Link time --


Class Post-build time --
Scope / scope: local
Dependency

SWS Item ECUC_Xcp_00014 :


Name XcpMainFunctionPeriod
Parent Container XcpGeneral
Description The XCP does not require this information but the BSW scheduler, which
invokes the main function, needs it in order to plan its tasks.
Multiplicity 1
Type EcucFloatParamDef
Range ]0 .. INF[
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00004 :


Name XcpMaxCto
Parent Container XcpGeneral
Description MAX_CTO shows the maximum length of a CTO packet in bytes.
Multiplicity 1
Type EcucIntegerParamDef
Range 8 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00005 :


Name XcpMaxDto
Parent Container XcpGeneral
Description MAX_DTO shows the maximum length of a DTO packet in bytes.
Multiplicity 1
Type EcucIntegerParamDef
Range 8 .. 65535
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00011 :


Name XcpMaxEventChannel
Parent Container XcpGeneral
Description --
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 65535
Default value --
43 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Post-Build Variant Value false


Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00013 :


Name XcpMinDaq
Parent Container XcpGeneral
Description Indicates the number of predefined, read only DAQ lists on the XCP slave.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00054 :


Name XcpOdtCount
Parent Container XcpGeneral
Description This parameter indicates the amount of ODTs of a DAQ list using dynamic
DAQ list configuration.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 252
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
dependency: This parameter is available only if XcpDaqConfigType is set
to "1" i.e DAQ_DYNAMIC

SWS Item ECUC_Xcp_00059 :


Name XcpOdtEntriesCount
Parent Container XcpGeneral
Description Indicates the amount of entries into an ODT using dynamic DAQ list
configuration.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
dependency: This parameter is available only if XcpDaqConfigType is set
to "1" i.e DAQ_DYNAMIC

SWS Item ECUC_Xcp_00177 :


Name XcpOdtEntrySizeDaq
44 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Parent Container XcpGeneral


Description Indicates the size of an element described by an ODT entry to the
DaqListType for a DAQ.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00178 :


Name XcpOdtEntrySizeStim
Parent Container XcpGeneral
Description Indicates the size of an element described by an ODT entry to the
DaqListType for a stim.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00006 :


Name XcpOnCanEnabled
Parent Container XcpGeneral
Description Enabling of XCPonCAN functionality
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00009 :


Name XcpOnCddEnabled
Parent Container XcpGeneral
Description Enabling of XCPonCdd functionality
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00008 :


Name XcpOnEthernetEnabled
45 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Parent Container XcpGeneral


Description Enabling of XCPonEthernet functionality
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00007 :


Name XcpOnFlexRayEnabled
Parent Container XcpGeneral
Description Enabling of XCPonFlexRay functionality
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00169 :


Name XcpPrescalerSupported
Parent Container XcpGeneral
Description This parameter enables and disables the support for Prescaler support.
True is Enabled, False is disabled
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00176 :


Name XcpSuppressTxSupport
Parent Container XcpGeneral
Description Switches the support of suppressing transmission of PDUs per
communication channel on or off.
TRUE: Suppressing of TxPDUs supported
FALSE: Suppressing of TxPDUs not supported
Multiplicity 1
Type EcucBooleanParamDef
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00167 :


Name XcpTimestampTicks
46 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Parent Container XcpGeneral


Description This parameter defines the timestamp that will increment based
TIMESTAMP_TICKS per unit and wrap around if an overflow occurs.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 65535
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00166 :


Name XcpTimestampType
Parent Container XcpGeneral
Description This parameter indicates the number of bytes used for the timestamp field. In case
No_TIME_STAMP is selected the timestamp field is not available.
Multiplicity 1
Type EcucEnumerationParamDef
Range FOUR_BYTE timestamp field has the size of four
byte.
NO_TIME_STAMP timestamp field is not available.
ONE_BYTE timestamp field has the size of one
byte.
TWO_BYTE timestamp field has the size of two
byte.
Post-Build Variant
false
Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: local
Dependency

SWS Item ECUC_Xcp_00168 :


Name XcpTimestampUnit
Parent Container XcpGeneral
Description This parameter indicates the resolution of the data acquisition clock of the slave
when transferring data to master.
Multiplicity 1
Type EcucEnumerationParamDef
Range TIMESTAMP_UNIT_100MS Unit is 100 millisecond.
TIMESTAMP_UNIT_100NS Unit is 100 nanosecond.
TIMESTAMP_UNIT_100PS Unit is 100 picosecond.
TIMESTAMP_UNIT_100US Unit is 100 microsecond.
TIMESTAMP_UNIT_10MS Unit is 10 millisecond.
TIMESTAMP_UNIT_10NS Unit is 10 nanosecond.
TIMESTAMP_UNIT_10PS Unit is 10 picosecond.
TIMESTAMP_UNIT_10US Unit is 10 microsecond.
TIMESTAMP_UNIT_1MS Unit is 1 millisecond.
TIMESTAMP_UNIT_1NS Unit is 1 nonasecond.
TIMESTAMP_UNIT_1PS Unit is 1 picosecond.
TIMESTAMP_UNIT_1S Unit is 1 second.
TIMESTAMP_UNIT_1US Unit is 1 microsecond.
Post-Build Variant false
47 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: local
Dependency

SWS Item ECUC_Xcp_00002 :


Name XcpVersionInfoApi
Parent Container XcpGeneral
Description Enables/disables the existence of the XCP_GetVersionInfo() API service.
TRUE: XCP_GetVersionInfo() API service exists
FALSE: XCP_GetVersionInfo() API service does not exist
Multiplicity 1
Type EcucBooleanParamDef
Default value false
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00162 :


Name XcpCounterRef
Parent Container XcpGeneral
Description This parameter contains a reference to the counter, which is used by XCP.
Multiplicity 1
Type Reference to [ OsCounter ]
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00180 :


Name XcpNvRamBlockIdRef
Parent Container XcpGeneral
Description This reference contains the link to a non-volatile memory block to be used
in the feature "RESUME MODE" so this information has to be stored non
volatile to be available directly after start-up of the ECU.
Multiplicity 0..1
Type Symbolic name reference to [ NvMBlockDescriptor ]
Post-Build Variant
true
Multiplicity
Post-Build Variant Value true
Multiplicity ConfigurationPre-compile time X VARIANT-PRE-COMPILE
Class Link time --
Post-build time X VARIANT-POST-BUILD
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local

No Included Containers

48 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

10.2.3 XcpConfig

SWS Item ECUC_Xcp_00020 :


Container Name XcpConfig
Parent Container Xcp
This container contains the configuration parameters and sub containers of
Description
the AUTOSAR Xcp module.
Configuration Parameters

Included Containers
Container Name Multiplicity Scope / Dependency
This container represents the configuration of the
XcpCommunicationChannel 0..*
communication channel of XCP.
XcpDaqList 1..* This container contains the configuration of the DAQs.
This container contains the configuration of event channels on
XcpEventChannel 1..*
the XCP slave.
This container represents configuration of the page switching
XcpPageSwitching 0..1
feature.
Contains PDU information. A PDU may be either a
XcpPdu 1..*
transmission PDU or a reception PDU.

49 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Xcp: EcucModuleDef

lowerMultiplicity = 0
upperMultiplicity = 1

+container

XcpConfig: EcucParamConfContainerDef XcpPdu:


+subContainer EcucChoiceContainerDef

lowerMultiplicity = 1
upperMultiplicity = *

XcpEventChannel:
+subContainer EcucParamConfContainerDef

lowerMultiplicity = 1
upperMultiplicity = *

XcpDaqList: XcpOdt:
EcucParamConfContainerDef +subContainer EcucParamConfContainerDef
lowerMultiplicity = 1 lowerMultiplicity = 0
upperMultiplicity = * upperMultiplicity = *
+subContainer

XcpDto:
+subContainer EcucParamConfContainerDef

lowerMultiplicity = 0
upperMultiplicity = *

XcpCommunicationChannel:
+subContainer EcucParamConfContainerDef

upperMultiplicity = *
lowerMultiplicity = 0

XcpPageSwitching: XcpSegment:
+subContainer EcucParamConfContainerDef +subContainer EcucParamConfContainerDef

lowerMultiplicity = 0 lowerMultiplicity = 0
upperMultiplicity = 1 upperMultiplicity = *

Figure 8: Diagram XcpConfig

10.2.4 XcpDaqList

SWS Item ECUC_Xcp_00050 :


Container Name XcpDaqList
Parent Container XcpConfig
Description This container contains the configuration of the DAQs.
Configuration Parameters

SWS Item ECUC_Xcp_00051 :


Name XcpDaqListNumber
Parent Container XcpDaqList
Description Index number of the DAQ list
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)

50 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Range 0 .. 65534
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00052 :


Name XcpDaqListType
Parent Container XcpDaqList
Description This indicates whether this DAQ list represents a DAQ or a STIM.
Multiplicity 1
Type EcucEnumerationParamDef
Range DAQ This DAQ list is a DAQ.
DAQ_STIM This DAQ list can be DAQ or STIM.
STIM This DAQ list is a STIM.
Post-Build Variant
false
Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: ECU
Dependency

SWS Item ECUC_Xcp_00053 :


Name XcpMaxOdt
Parent Container XcpDaqList
Description MAX_ODT indicates the maximum amount of ODTs in this DAQ list
(STATIC configuration)
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 252
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
dependency: only available if XcpDaqConfigType is "DAQ_STATIC" (bit
set to '0')

SWS Item ECUC_Xcp_00058 :


Name XcpMaxOdtEntries
Parent Container XcpDaqList
Description This parameter indicates the maximum amount of entries in an ODT of this
DAQ list (STATIC configuration).
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
51 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

dependency: only available if XcpDaqConfigType is


"DAQ_STATIC" (bit set to '0')

Included Containers
Container Name Multiplicity Scope / Dependency
This container collects data transfer object specific parameters
XcpDto 0..*
for the DAQ list.
This container contains ODT-specific parameter for the DAQ
XcpOdt 0..*
list.

10.2.5 XcpDto

SWS Item ECUC_Xcp_00065 :


Container Name XcpDto
Parent Container XcpDaqList
This container collects data transfer object specific parameters for the
Description
DAQ list.
Configuration Parameters

SWS Item ECUC_Xcp_00066 :


Name XcpDtoPid
Parent Container XcpDto
Description Packet identifier (PID) of the DTO that identifies the ODT the content of the
DTO.
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 251
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00067 :


Name XcpDto2PduMapping
Parent Container XcpDto
Description This reference specifies the mapping of the DTO to the PDUs from the
lower-layer interfaces (CanIf, FrIf, SoAd and Cdd).
A reference to a XcpRxPdu is only feasible if the the DaqListType is
DAQ_STIM.
A reference to a XcpTxPdu is only feasible if the DaqListType is DAQ.
Multiplicity 1
Type Choice reference to [ XcpRxPdu , XcpTxPdu ]
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

No Included Containers

52 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

10.2.6 XcpOdt

SWS Item ECUC_Xcp_00055 :


Container Name XcpOdt
Parent Container XcpDaqList
Description This container contains ODT-specific parameter for the DAQ list.
Configuration Parameters

SWS Item ECUC_Xcp_00060 :


Name XcpOdtEntryMaxSize
Parent Container XcpOdt
Description This parameter indicates the upper limit for the size of the element
described by an ODT entry. Depending on the DaqListType this ODT
belongs to it describes the limit for a DAQ
(MAX_ODT_ENTRY_SIZE_DAQ) or a STIM
(MAX_ODT_ENTRY_SIZE_STIM).
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 254
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00057 :


Name XcpOdtNumber
Parent Container XcpOdt
Description Index number of this ODT within the DAQ list.
Multiplicity 0..1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 251
Default value --
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00056 :


Name XcpOdt2DtoMapping
Parent Container XcpOdt
Description This reference maps the ODT to the according DTO in which it will be
transmitted.
Multiplicity 0..1
Type Reference to [ XcpDto ]
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
53 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Scope / Dependency scope: ECU

Included Containers
Container Name Multiplicity Scope / Dependency
This container collects all configuration parameters that
XcpOdtEntry 1..*
comprise an ODT entry.

10.2.7 XcpOdtEntry

SWS Item ECUC_Xcp_00061 :


Container Name XcpOdtEntry
Parent Container XcpOdt
This container collects all configuration parameters that comprise an ODT
Description
entry.
Configuration Parameters

SWS Item ECUC_Xcp_00063 :


Name XcpOdtEntryAddress
Parent Container XcpOdtEntry
Description Memory address that the ODT entry is referencing to.
Multiplicity 0..1
Type EcucLinkerSymbolDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00179 :


Name XcpOdtEntryBitOffset
Parent Container XcpOdtEntry
Description Represent the bit offset in case of the element represents status bit.
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 31
Default value --
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
54 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00064 :


Name XcpOdtEntryLength
Parent Container XcpOdtEntry
Description Length of the referenced memory area that is referenced by the ODT
entry.
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00062 :


Name XcpOdtEntryNumber
Parent Container XcpOdtEntry
Description Index number of the ODT entry
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 254
Default value --
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

No Included Containers

55 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Xcp: EcucModuleDef

lowerMultiplicity = 0
upperMultiplicity = 1

+container
XcpDaqList:
XcpConfig: EcucParamConfContainerDef +subContainer EcucParamConfContainerDef

lowerMultiplicity = 1
upperMultiplicity = *

+destination

+subContainer
XcpEventChannelTriggeredDaqListRef:
XcpEventChannel: +reference EcucReferenceDef
EcucParamConfContainerDef
lowerMultiplicity = 0
lowerMultiplicity = 1 upperMultiplicity = *
upperMultiplicity = * XcpEventChannelNumber:
+parameter EcucIntegerParamDef

min = 0
max = 65534
symbolicNameValue = true
XcpEventChannelMaxDaqList:
+parameter EcucIntegerParamDef

min = 0
max = 255
XcpEventChannelPriority:
+parameter
EcucIntegerParamDef

min = 0
max = 255

XcpEventChannelConsistency: +literal ODT:


EcucEnumerationParamDef EcucEnumerationLiteralDef

lowerMultiplicity = 1
upperMultiplicity = 1
defaultValue = ODT
+parameter +literal DAQ:
EcucEnumerationLiteralDef

+literal EVENT:
EcucEnumerationLiteralDef

XcpEventChannelType:
+literal DAQ:
EcucEnumerationParamDef
EcucEnumerationLiteralDef
lowerMultiplicity = 1
upperMultiplicity = 1
defaultValue = DAQ
+parameter STIM:
+literal
EcucEnumerationLiteralDef

+literal DAQ_STIM:
EcucEnumerationLiteralDef

XcpEventChannelTimeCycle:
EcucIntegerParamDef
+parameter
min = 0
max = 255
lowerMultiplicity = 1
upperMultiplicity = 1

XcpEventChannelTimeUnit: +literal TIMESTAMP_UNIT_1NS:


EcucEnumerationParamDef EcucEnumerationLiteralDef

lowerMultiplicity = 0
upperMultiplicity = 1 +literal TIMESTAMP_UNIT_10NS:
EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_100NS:
EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_1US:
EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_10US:
EcucEnumerationLiteralDef

TIMESTAMP_UNIT_100US:
+literal EcucEnumerationLiteralDef

+parameter +literal TIMESTAMP_UNIT_1MS:


EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_10MS:
EcucEnumerationLiteralDef
TIMESTAMP_UNIT_100MS:
+literal EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_1PS:
EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_10PS:
EcucEnumerationLiteralDef

TIMESTAMP_UNIT_100PS:
+literal EcucEnumerationLiteralDef

+literal TIMESTAMP_UNIT_1S:
EcucEnumerationLiteralDef

56 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Figure 9: Diagram XcpOdtEntry

10.2.8 XcpEventChannel

SWS Item ECUC_Xcp_00150 :


Container Name XcpEventChannel
Parent Container XcpConfig
This container contains the configuration of event channels on the XCP
Description
slave.
Configuration Parameters

SWS Item ECUC_Xcp_00171 :


Name XcpEventChannelConsistency
Parent Container XcpEventChannel
Description Type of consistency used by event channel
Multiplicity 1
Type EcucEnumerationParamDef
Range DAQ Consistency on DAQ list level
EVENT Consistency on Event Channel Level
ODT Consistency on ODT level (default value).
Default value ODT
Post-Build Variant
false
Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: local
Dependency

SWS Item ECUC_Xcp_00153 :


Name XcpEventChannelMaxDaqList
Parent Container XcpEventChannel
Description Maximum amount of DAQ lists that are handled by this event channel.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00152 :


Name XcpEventChannelNumber
Parent Container XcpEventChannel
Description Index number of the event channel.
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65534
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --

57 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00154 :


Name XcpEventChannelPriority
Parent Container XcpEventChannel
Description Priority of the event channel
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00173 :


Name XcpEventChannelTimeCycle
Parent Container XcpEventChannel
Description The event channel time cycle indicates which sampling period is used to
process this event channel. A value of 0 means 'Not cyclic'.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 255
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local

SWS Item ECUC_Xcp_00174 :


Name XcpEventChannelTimeUnit
Parent Container XcpEventChannel
Description This configuration parameter indicates the unit of the event channel time cycle.
Multiplicity 0..1
Type EcucEnumerationParamDef
Range TIMESTAMP_UNIT_100MS Unit is 100 millisecond.
TIMESTAMP_UNIT_100NS Unit is 100 nanosecond.
TIMESTAMP_UNIT_100PS Unit is 100 picosecond.
TIMESTAMP_UNIT_100US Unit is 100 microsecond.
TIMESTAMP_UNIT_10MS Unit is 10 millisecond.
TIMESTAMP_UNIT_10NS Unit is 10 nanosecond.
TIMESTAMP_UNIT_10PS Unit is 10 picosecond.
TIMESTAMP_UNIT_10US Unit is 10 microsecond.
TIMESTAMP_UNIT_1MS Unit is 1 millisecond.
TIMESTAMP_UNIT_1NS Unit is 1 nonasecond.
TIMESTAMP_UNIT_1PS Unit is 1 picosecond.
TIMESTAMP_UNIT_1S Unit is 1 second.
TIMESTAMP_UNIT_1US Unit is 1 microsecond.
Post-Build Variant
false
Multiplicity
Post-Build Variant
false
Value
Multiplicity Pre-compile time X All Variants
58 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Configuration Link time --


Class Post-build time --
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: local
Dependency dependency: Dependent on the Parameter EventChannelTimeCycle. When this
parameter is set to 0, the entire event channel time unit parameter shall be ignored.

SWS Item ECUC_Xcp_00172 :


Name XcpEventChannelType
Parent Container XcpEventChannel
Description This configuration parameter indicates what kind of DAQ list can be allocated to
this event channel.
Multiplicity 1
Type EcucEnumerationParamDef
Range DAQ only DAQ supported (default value).
DAQ_STIM Both DAQ and STIM supported
(Simultaneously).
STIM only STIM supported
Default value DAQ
Post-Build Variant
false
Value
Value Pre-compile time X All Variants
Configuration Link time --
Class Post-build time --
Scope / scope: local
Dependency

SWS Item ECUC_Xcp_00151 :


Name XcpEventChannelTriggeredDaqListRef
Parent Container XcpEventChannel
Description References all DAQ lists that are trigged by this event channel.
Multiplicity 0..*
Type Reference to [ XcpDaqList ]
Post-Build Variant
false
Multiplicity
Post-Build Variant Value false
Multiplicity ConfigurationPre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

No Included Containers

10.2.9 XcpPdu

SWS Item ECUC_Xcp_00100 :


Choice container Name XcpPdu
Parent Container XcpConfig
59 of 65 Document ID 412: AUTOSAR_SWS_XCP
- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Contains PDU information. A PDU may be either a transmission PDU or a


Description
reception PDU.

Container Choices
Container Name Multiplicity Scope / Dependency
XcpRxPdu 0..1 This container specifies received PDUs.
XcpTxPdu 0..1 This container specifies transmission PDUs.

Xcp: EcucModuleDef

lowerMultiplicity = 0
upperMultiplicity = 1

+container

XcpConfig: EcucParamConfContainerDef

+subContainer
XcpTxPduId:
EcucIntegerParamDef
XcpPdu: XcpTxPdu:
EcucChoiceContainerDef EcucParamConfContainerDef +parameter
symbolicNameValue = true
min = 0
lowerMultiplicity = 1 lowerMultiplicity = 0
+choice max = 65535
upperMultiplicity = * upperMultiplicity = 1

+reference XcpTxPduRef:
EcucReferenceDef +destination
Pdu:
EcucParamConfContainerDef

lowerMultiplicity = 0
XcpRxPduRef: +destination upperMultiplicity = *
XcpRxPdu: +reference
EcucParamConfContainerDef EcucReferenceDef

lowerMultiplicity = 0
+choice upperMultiplicity = 1
XcpRxPduId:
+parameter EcucIntegerParamDef

symbolicNameValue = true
min = 0
max = 65535

Figure 10: Diagram XcpPdu

10.2.10 XcpRxPdu

SWS Item ECUC_Xcp_00105 :


Container Name XcpRxPdu
Parent Container XcpPdu
Description This container specifies received PDUs.
Configuration Parameters

SWS Item ECUC_Xcp_00106 :


Name XcpRxPduId
Parent Container XcpRxPdu
Description ID of the PDU that will be received via a Xcp_<module>RxIndication.
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default value --
Post-Build Variant Value false

60 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Value Configuration Class Pre-compile time X All Variants


Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00107 :


Name XcpRxPduRef
Parent Container XcpRxPdu
Description --
Multiplicity 1
Type Reference to [ Pdu ]
Post-Build Variant Value true
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: ECU

No Included Containers

10.2.11 XcpTxPdu

SWS Item ECUC_Xcp_00101 :


Container Name XcpTxPdu
Parent Container XcpPdu
Description This container specifies transmission PDUs.
Configuration Parameters

SWS Item ECUC_Xcp_00103 :


Name XcpTxPduId
Parent Container XcpTxPdu
Description The PDU identifier, which has to be used by the lower layer BSW module
for TxConfirmations or TriggerTransmits.
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00104 :


Name XcpTxPduRef
Parent Container XcpTxPdu
Description Reference to the external PDU definition.
Multiplicity 1
Type Reference to [ Pdu ]
Post-Build Variant Value true
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD

61 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Scope / Dependency scope: ECU

No Included Containers

10.2.12 XcpCommunicationChannel

SWS Item ECUC_Xcp_00183 :


Container Name XcpCommunicationChannel
Parent Container XcpConfig
This container represents the configuration of the communication channel
Description
of XCP.
Configuration Parameters

SWS Item ECUC_Xcp_00185 :


Name XcpChannelRxPduRef
Parent Container XcpCommunicationChannel
Description Optional reference to the XCP Rx PDU.
Multiplicity 0..1
Type Reference to [ XcpRxPdu ]
Post-Build Variant Value true
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00184 :


Name XcpChannelTxPduRef
Parent Container XcpCommunicationChannel
Description Reference to the XCP Tx PDU.
Multiplicity 1
Type Reference to [ XcpTxPdu ]
Post-Build Variant Value true
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: ECU

SWS Item ECUC_Xcp_00186 :


Name XcpComMChannelRef
Parent Container XcpCommunicationChannel
Description Reference to the ComM channel the PDUs belong to.
Multiplicity 1
Type Reference to [ ComMChannel ]
Post-Build Variant Value true
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time --
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: ECU

No Included Containers

62 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

Xcp: EcucModuleDef

lowerMultiplicity = 0
upperMultiplicity = 1

+container

XcpConfig: EcucParamConfContainerDef

XcpTxPduRef:
EcucReferenceDef

+reference

+subContainer
XcpTxPdu:
XcpCommunicationChannel: XcpChannelTxPduRef:
+reference +destination EcucParamConfContainerDef
EcucParamConfContainerDef EcucReferenceDef
lowerMultiplicity = 0
upperMultiplicity = * upperMultiplicity = 1
lowerMultiplicity = 0 +destination

+reference XcpComMChannelRef: Pdu:


+destination ComMChannel:
EcucReferenceDef EcucParamConfContainerDef
EcucParamConfContainerDef
lowerMultiplicity = 0
lowerMultiplicity = 1
upperMultiplicity = *
upperMultiplicity = 256

XcpChannelRxPduRef: +destination
+reference EcucReferenceDef XcpRxPdu:
+destination
EcucParamConfContainerDef
upperMultiplicity = 1
lowerMultiplicity = 0 lowerMultiplicity = 0
upperMultiplicity = 1

+reference

XcpRxPduRef:
EcucReferenceDef

Figure 11: Diagram XcpCommunicationChannel

63 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

10.3 Published Information

For details refer to the chapter 10.3 “Published Information” in SWS_BSWGeneral.

64 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -
Specification of Module XCP
AUTOSAR CP R19-11

11 Not applicable requirements


[SWS_Xcp_00999] ⌈ These requirements are not applicable to this specification. ⌋
(SRS_BSW_00171, SRS_BSW_00170, SRS_BSW_00375, SRS_BSW_00416,
SRS_BSW_00168, SRS_BSW_00423, SRS_BSW_00425, SRS_BSW_00426,
SRS_BSW_00427, SRS_BSW_00428, SRS_BSW_00432, SRS_BSW_00336,
SRS_BSW_00417, SRS_BSW_00161, SRS_BSW_00162, SRS_BSW_00005,
SRS_BSW_00415, SRS_BSW_00164, SRS_BSW_00325, SRS_BSW_00413,
SRS_BSW_00347, SRS_BSW_00335, SRS_BSW_00410, SRS_BSW_00314,
SRS_BSW_00328, SRS_BSW_00312, SRS_BSW_00006, SRS_BSW_00377,
SRS_BSW_00306, SRS_BSW_00309, SRS_BSW_00371, SRS_BSW_00360,
SRS_BSW_00330, SRS_BSW_00331, SRS_BSW_00009, SRS_BSW_00401,
SRS_BSW_00172, SRS_BSW_00010, SRS_BSW_00333, SRS_BSW_00321,
SRS_BSW_00341, SRS_Xcp_29008)

65 of 65 Document ID 412: AUTOSAR_SWS_XCP


- AUTOSAR confidential -

You might also like