This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - DmaCfgAndUse_IntegrationManual
Integration Manual
For
DmaCfgAndUse
VERSION: 1.0
DATE: 28-JUL-2017
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial version | Krzysztof Byrski | 1.0 | 28-Jul-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 |
| FDD | Functional 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 | EA4 Software Naming Conventions | 01.01.00 |
| 2 | Software Design and Coding Standards | 2.1 |
| 3 | CM201A_DmaCfgAndUse_Design | See Synergy Sub Project Version |
Dependencies
SWCs
| Module | Required Feature |
| DF003A_McuErrInj | Header file: McuErrInj.h |
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
DmaRegInin - needs to be a trusted function
InjDmaErr - injects DAM errors needed for error injection build
InjMcuDiagcErr - injects NTC 2B errors needed for error injection build
Configuration REQUIREMeNTS
Build Time Config
| Modules | Notes | |
| MCUDIAGCERRINJ | STD_ON or STD_OFF |
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 |
| None |
Manual Configuration Changes
| Constant | Notes | SWC |
| None |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Refer DataDict.m file
Required Global Data Outputs
Refer DataDict.m file
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
| Init | Scheduling Requirements | Trigger |
| DmaCfgAndUseInit1 | None | RTE(Init) |
| Runnable | Scheduling Requirements | Trigger |
| DmaCfgAndUsePer1 | None | RTE(2ms) |
| DmaEna2MilliSecToMotCtrlTrf_Oper | None | RTE(Event) |
| DmaWaitForMotCtrlTo2MilliSecTrf_Oper | None | RTE(Event) |
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
| CDD_DmaCfgAndUse_START_SEC_CODE | 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 - DmaCfgAndUse_MDD
Module Design Document
For
DmaCfgAndUse
October 4, 2017
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date |
| Initial Version | Krzysztof Byrski | 1 | 11-July-2017 |
| Changed value of register DTFR1 to 0x87 | Krzysztof Byrski | 2 | 8-September-2017 |
| Removed constant DTFR9ERR_CNT_U32 | Krzysztof Byrski | 3 | 4-October-2017 |
Table of Contents
2 DmaCfgAndUse & High-Level Description 5
3 Design details of software module 6
3.1 Graphical representation of DmaCfgAndUse 6
4.1 Program (fixed) Constants 7
5 Software Component Implementation 8
5.1.1 Init: DmaCfgAndUseInit1 8
5.2.1 DmaEna2MilliSecToMotCtrlTrf_Oper 8
5.2.2 DmaWaitForMotCtrlTo2MilliSecTrf_Oper 8
5.4 Module Internal (Local) Functions 9
5.5 GLOBAL Function/Macro Definitions 9
6 Known Limitations with Design 10
Appendix A Abbreviations and Acronyms 12
Introduction
Purpose
Module Design Document for CM201A_DmaCfgAndUse.
Scope
The following definitions are used throughout this document:
Shall: indicates a mandatory requirement without exception in compliance.
Should: indicates a mandatory requirement; exceptions allowed only with documented justification.
May: indicates an optional action.
DmaCfgAndUse & High-Level Description
Refer FDD
Design details of software module
Graphical representation of DmaCfgAndUse

Data Flow Diagram
Refer FDD
Component level DFD
None
Function level DFD
None
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
| Constant Name | Resolution | Units | Value |
|---|---|---|---|
| DMACFGANDUSE_MAXWAIT_MICROSEC_U32 | 1 | Microsecond | 400 |
| DM01CM_CNT_U32 | 1 | Cnt | 0x0000200C |
| DTC1_CNT_U32 | 1 | Cnt | 0x00000003 |
| DTCT1_CNT_U32 | 1 | Cnt | 0x04006611 |
| DRTC1_CNT_U32 | 1 | Cnt | 0x00000003 |
| DTCC1_CNT_U32 | 1 | Cnt | 0x00000000 |
| DTFR1_CNT_U32 | 1 | Cnt | 0x00000087 |
| DM11CM_CNT_U32 | 1 | Cnt | 0x00002016 |
| DTCT9_CNT_U32 | 1 | Cnt | 0x04000611 |
| DTCC9_CNT_U32 | 1 | Cnt | 0x00000000 |
| DTFR9_CNT_U32 | 1 | Cnt | 0x00000069 |
| DM16CM_CNT_U32 | 1 | Cnt | 0x00002012 |
| DTC14_CNT_U32 | 1 | Cnt | 0x00000003 |
| DTCT14_CNT_U32 | 1 | Cnt | 0x041D0611 |
| DRTC14_CNT_U32 | 1 | Cnt | 0x00000003 |
| DTCC14_CNT_U32 | 1 | Cnt | 0x00000000 |
| DTFR14_CNT_U32 | 1 | Cnt | 0x00000093 |
| DM17CM_CNT_U32 | 1 | Cnt | 0x00002016 |
| DTCT15_CNT_U32 | 1 | Cnt | 0x00002611 |
| DTCC15_CNT_U32 | 1 | Cnt | 0x00000000 |
| DTFR15_CNT_U32 | 1 | Cnt | 0x00000000 |
| UNDEFDAR_CNT_U32 | 1 | Cnt | 0xFEBFFFFC |
| TRFSIZE_CNT_U32 | 1 | Cnt | 16 |
Software Component Implementation
Sub-Module Functions
The sub-module functions are grouped based on similar functionality that needs to be executed in a given “State” of the system (refer States and Modes). For a given module, the MDD will identify the type and number of sub-modules required. The sub-module types are described below.
Init: DmaCfgAndUseInit1
Design Rationale
Refer FDD
Module Outputs
Refer FDD
Per: DmaCfgAndUsePer1
Design Rationale
Store Module Inputs to Local copies
Refer FDD
(Processing of function)………
Refer FDD
Store Local copy of outputs into Module Outputs
Refer FDD
Server Runables
DmaEna2MilliSecToMotCtrlTrf_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
DmaWaitForMotCtrlTo2MilliSecTrf_Oper
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
InjDmaErr
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
InjMcuDiagcErr
Design Rationale
Refer FDD
(Processing of function)………
Refer FDD
Interrupt Functions
None
Module Internal (Local) Functions
None
GLOBAL Function/Macro Definitions
GLOBAL Function #1
| Function Name | DmaRegInin | Type | Min | Max |
| Arguments Passed | None | |||
| Return Value | N/A |
Design Rationale
Trusted function that performs all register initialization from the “CM201A_DmaCfgAndUse_PeripheralCfg.xlsx” spreadsheet in the FDD. The DMnnCM channel master registers can be written only in supervisor mode. After the Channel master register for a given channel has been written, the selected Processor Element can write to that channel’s registers in user mode. However, for simplicity, all DMA register initialization is being done in one trusted function.
Processing
Refer FDD
Known Limitations with Design
None
UNIT TEST CONSIDERATION
None
Abbreviations and Acronyms
| Abbreviation or Acronym | Description |
|---|---|
| - | - |
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 (Link:AUTOSAR_SWS_MemoryMapping.pdf) | v1.3.0 R4.0 Rev 2 |
| 2 | MDD Guideline | 01.00.01 |
| 3 | Software Naming Conventions | 01.01.00 |
| 4 | Software Design and Coding Standards | 2.1 |
| 5 | CM201A_DmaCfgAndUse_Design | See Synergy Sub Project Version |
3 - DmaCfgAndUse_PeerReviewChecklist
Overview
Summary SheetSynergy Project
Davinci Files
Src-DmaCfgAndUse
PolySpace
Sheet 1: Summary Sheet
Sheet 2: Synergy Project
| Rev 2.00 | 29-Nov-17 | |||||||||||||||||||||||
| Peer Review Meeting Log (Component Synergy Project Review) | ||||||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| New baseline version name from Summary Sheet follows | Yes | Comments: | ||||||||||||||||||||||
| naming convention | ||||||||||||||||||||||||
| Project contains necessary subprojects | Yes | Comments: | ||||||||||||||||||||||
| Project contains the correct version of subprojects | Yes | Comments: | ||||||||||||||||||||||
| Design subproject is correct version | Yes | Comments: | ||||||||||||||||||||||
| .gpj file in tools folder matches .gpj generated by TL109 script | Yes | Comments: | ||||||||||||||||||||||
| File/folder structure is correct per documentation in | Yes | Comments: | ||||||||||||||||||||||
| TL109A_SwcSuprt | ||||||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Review Board: | ||||||||||||||||||||||||
| Change Owner: | Avinash James | Review Date : | 01/05/18 | |||||||||||||||||||||
| Lead Peer Reviewer: | Shruthi Raghavan | Approved by Reviewer(s): | ||||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
| Rationale/justification for items marked "No" approved by: | ||||||||||||||||||||||||