XcpIf Integration Manual

Integration Manual

For

XCP Interface (XcpIf)

VERSION: 2.0

DATE: 09-Oct-2015

Prepared By:

Kevin Smith

ESG Software,

Nexteer Automotive,

Saginaw, MI, USA


Location:
The official version of this document is stored in the Nexteer Configuration Management System.

Revision History

: ARM Cortex R4 Memory Usage

Sl. No.DescriptionAuthorVersionDateApproved By
1Initial versionK. Smith1.06-Jun-15
2Updates for intial online calibration supportK. Smith2.09-Oct-15


Table of Contents

1 Abbrevations And Acronyms 4

2 References 5

3 Dependencies 6

3.1 SWCs 6

3.2 Global Functions(Non RTE) to be provided to Integration Project 6

4 Configuration REQUIREMeNTS 7

4.1 Build Time Config 7

4.2 Configuration Files to be provided by Integration Project 7

4.3 Da Vinci Parameter Configuration Changes 7

4.4 DaVinci Interrupt Configuration Changes 7

4.5 Manual Configuration Changes 7

4.6 OS Configuration Changes 7

5 Integration DATAFLOW REQUIREMENTS 8

5.1 Required Global Data Inputs 8

5.2 Required Global Data Outputs 8

5.3 Specific Include Path present 8

5.4 Other Header Changes 8

6 Runnable Scheduling 9

7 Memory Map REQUIREMENTS 10

7.1 Mapping 10

7.2 Usage 10

7.3 NvM Blocks 10

8 Compiler Settings 11

8.1 Preprocessor MACRO 11

8.2 Optimization Settings 11

9 Appendix 12

Abbrevations And Acronyms

AbbreviationDescription
DFDDesign functional diagram
MDDModule design Document

References

This section lists the title & version of all the documents that are referred for development of this document

Sr. No.TitleVersion
1MDD GuidelinesProcess 04.02.00
2Software Naming ConventionsProcess 04.02.00
3Coding standardsProcess 04.02.00
4FDDNot available
<Add if more available>

Dependencies

SWCs

ModuleRequired Feature
None

Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be referred. Developer should track the references.

Global Functions(Non RTE) to be provided to Integration Project

None

Configuration REQUIREMeNTS

Build Time Config

ModulesNotes
None

Configuration Files to be provided by Integration Project

Da Vinci Parameter Configuration Changes

ParameterNotesSWC
None

DaVinci Interrupt Configuration Changes

ISR NameVIM #Priority DependencyNotes
None

Manual Configuration Changes

ConstantNotesSWC
None

OS Configuration Changes

Trusted FunctionParametersNotes
ApplXcpWrCmn

MTABYTEPTR addr

vuint8 size

const BYTEPTR data

This function should be defined as trusted.
Rte_Call_SetCalPageReq_OperThis function shall be defined as a non-trusted function call to the application that TunSelnMngt is integrated.
Rte_Call_CopyCalPageReq_OperThis function shall be defined as a non-trusted function call to the application that TunSelnMngt is integrated.

Integration DATAFLOW REQUIREMENTS

Required Global Data Inputs

None

Required Global Data Outputs

None

Specific Include Path present

Yes

Other Header Changes

FileChangeReason
usrostyp.hAdd include statement for CDD_XcpIf.hThe include is needed since for the OS has the function prototypes and datatypes required for the trusted function call.

Runnable Scheduling

This section specifies the required runnable scheduling.

InitScheduling RequirementsTrigger
CDD_XcpIfInitNoneRte
RunnableScheduling RequirementsTrigger
Xcp2msDaq2msRTE

Memory Map REQUIREMENTS

Mapping

Memory SectionContentsNotes
None

* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.

Usage

FeatureRAMROM
None

NvM Blocks

None

Compiler Settings

Preprocessor MACRO

The file xcp.cfg needs to have “#define XCP_ENABLE_CALIBRATION_MEM_ACCESS_BY_APPL” added. When the XCP component is generated in GENy, this will enable the application read/write calls.

The #defile XCPIF_MAXCALSEG_CNT_U08 points to a generated value by the Xcp component. Vector currently only allows one segment to be defined. This will have to be manually changed in the xcp.cfg file by the following:

#undef kXcpMaxSegment

#define kXcpMaxSegment XX

XX is the number of tuning groups that are defined in your program.

Optimization Settings

None

Appendix

N/A

Last modified October 12, 2025: Initial commit (1fadfc4)