This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - EcmOutpAndDiagc_IntegrationManual
Integration Manual
For
EcmOutpAndDiagc
VERSION: 2.0
DATE: 06-Feb-2018
Prepared By:
Shruthi Raghavan,
Nexteer Automotive,
Saginaw, MI, USA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
| Description | Author | Version | Date |
| Initial version | Shruthi Raghavan | 1.0 | 14-Nov-2017 |
| Implement fixes for anomaly EA4#19053 | Shruthi Raghavan | 2.0 | 06-Feb-2017 |
Table of Contents
3.2 Global Functions(Non RTE) to be provided to Integration Project 6
4 Configuration REQUIREMeNTS 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
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
Abbrevations And Acronyms
| Abbreviation | Description |
| DFD | Design functional diagram |
| MDD | Module design Document |
References
This section lists the title & version of all the documents that are referred for development of this document
| Sr. No. | Title | Version |
| 1 | Software Naming Conventions | 2.01 |
| 2 | Software Design and Coding standards | 2.01 |
| 3 | CM104B_EcmOutpAndDiagc_Design | See Synergy subproject version |
Dependencies
SWCs
| Module | Required Feature |
| CDD_ExcpnHndlg | P1mcDiagc type, SetMcuDiagcIdnData, GetMcuDiagcIdnData definitions. |
| Os.h | Suspend and Resume interrupt calls. |
| Mcu.h | Needed for Mcu_EcmReleaseErrorOutPin() API called from CtrlErrOut_Oper |
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
EcmOutpAndDiagcInit1
EcmOutpAndDiagcInit3
CtrlErrOut_Oper
Configuration REQUIREMeNTS
Build Time Config
| Modules | Notes | |
| None |
Configuration Files to be provided by Integration Project
None
Da Vinci Parameter Configuration Changes
| Parameter | Notes | SWC |
| None |
DaVinci Interrupt Configuration Changes
| ISR Name | VIM # | Priority Dependency | Notes |
| - |
Manual Configuration Changes
| Constant | Notes | SWC |
| None |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Refer FDD
Required Global Data Outputs
Refer FDD
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
| Init | Scheduling Requirements | Trigger |
| EcmOutpAndDiagcInit1 | Pre-Os | Non-RTE (Init) |
| EcmOutpAndDiagcInit2 | None | RTE(Init) |
| EcmOutpAndDiagcInit3 | Pre-Os | Non-RTE (Init) |
| Runnable | Scheduling Requirements | Trigger |
| CtrlErrOut_Oper1 | None | On Invocation |
1 : Using the Mcal Api (Mcu_EcmReleaseErrorOutPin) call creates a dependency on the Mcal. We assume that Mcal Api does not write to any static RAM – this assumption must be revalidated everytime that there is a change/update to the MCAL
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
| CDD_EcmOutpAndDiagc_START_SEC_CODE |
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
| Feature | RAM | ROM |
| None |
Table 1: ARM Cortex R4 Memory Usage
NvM Blocks
None
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
None
2 - EcmOutpAndDiagc_MDD
Module Design Document
For
EcmOutpAndDiagc
Feb 07, 2018
Prepared By:
Shruthi Raghavan,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date |
| Initial Version | Shruthi Raghavan | 1.0 | 15-Nov-2017 |
| Removed local constant that was removed from NonRte file | Shruthi Raghavan | 2.0 | 07-Feb-2018 |
Table of Contents
2 EcmOutpAndDiagc & High-Level Description 5
3 Design details of software module 6
3.1 Graphical representation of EcmOutpAndDiagc 6
4.1 Program (fixed) Constants 7
5 Software Component Implementation 8
5.1.1 Init: EcmOutpAndDiagcInit1 8
5.1.2 Init: EcmOutpAndDiagcInit3 8
5.4 Module Internal (Local) Functions 8
5.5 GLOBAL Function/Macro Definitions 8
6 Known Limitations with Design 9
Appendix A Abbreviations and Acronyms 11
Introduction
Purpose
Module Design Document for Implementation of EcmOutpAndDiagc design for P1Mc processor based projects.
EcmOutpAndDiagc & High-Level Description
Refer FDD.
Design details of software module
Graphical representation of EcmOutpAndDiagc
Data Flow Diagram
Component level DFD
Refer FDD
Function level DFD
Refer FDD
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
| Constant Name | Resolution | Units | Value |
|---|---|---|---|
| ECMERROUTZPINSTSREGMASK_CNT_U32 | 1 | Cnt | 0x80000000U |
| ECMERROUTZPINCOMPERRMASK_CNT_U32 | 1 | Cnt | 0x40000000U |
| ERROUTPCLRINVLDREGCMPWBITMASK_CNT_U32 | 1 | Cnt | 0x00010000U |
| ECMCOMPERRBITMASK_CNT_U32 | 1 | Cnt | 0x10000000U |
| FLASHAPPLCMDIFECMERRMASK_CNT_U32 | 1 | Cnt | 0x00080000U |
| NROFCOMPERRSRCSETATMPTS_CNT_U08 | 1 | Cnt | 3U |
| FEINTRPTREQFLGBITMASK_CNT_U32 | 1 | Cnt | 0x00001000U |
| FEINTRPTEVESRCECMBITMASK_CNT_U32 | 1 | Cnt | 0x00000002U |
| ECMERRSETTRIGREGSTSCLRMASK_CNT_U32 | 1 | Cnt | 0x40000000U |
Software Component Implementation
Sub-Module Functions
Init: EcmOutpAndDiagcInit1
Design Rationale
None
Init: EcmOutpAndDiagcInit3
Design Rationale
None
Periodic
None
Server Runables
CtrlErrOut_Oper
Design Rationale
The TrigReg1 enumeration type is given the type qualifier of EcmOutpAndDiagc so it is not generated in the RTE headers. The header in the include folder contains the typedef for this enum because it is not expected to be needed outside the context of this component (or server runnable call).
Interrupt Functions
None
Module Internal (Local) Functions
Local Function #1
| Function Name | - | Type | Min | Max |
| Arguments Passed | - | - | - | - |
| Return Value | - | - | - | - |
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
None.
UNIT TEST CONSIDERATION
Register file definitions are in the P1Xc/include folder of AR202A since this component is designed for P1X-c micro.
Abbreviations and Acronyms
| Abbreviation or Acronym | Description |
|---|---|
| EI | Exception Interrupt |
Glossary
Note: Terms and definitions from the source “Nexteer Automotive” take precedence over all other definitions of the same term. Terms and definitions from the source “Nexteer Automotive” are formulated from multiple sources, including the following:
ISO 9000
ISO/IEC 12207
ISO/IEC 15504
Automotive SPICE® Process Reference Model (PRM)
Automotive SPICE® Process Assessment Model (PAM)
ISO/IEC 15288
ISO 26262
IEEE Standards
SWEBOK
PMBOK
Existing Nexteer Automotive documentation
| Term | Definition | Source |
|---|---|---|
| MDD | Module Design Document | |
| DFD | Data Flow Diagram |
References
| Ref. # | Title | Version |
|---|---|---|
| 1 | AUTOSAR Specification of Memory Mapping | v1.3.0 R4.0 Rev 2 |
| 2 | MDD Guideline | EA4 01.00.01 |
| 3 | Software Naming Conventions.doc | 1.02 |
| 4 | Software Design and Coding Standards.doc | 2.01 |
| 5 | FDD : CM104B_EcmOutpAndDiagc_Design | See Synergy Subproject Ver. |
