This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - SnsrMeasStrt_IntegrationManual
Integration Manual
For
SnsrMeasStrt
VERSION: 2.0
DATE: 21-Dec-2015
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 | Selva | 1.0 | 14-Oct-2015 | 
| 2.0 | CM410A SnsrMeasStrt Rev 1.1.0 - Implementation A3213 | Selva | 2.0 | 21-Dec-15 | 
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 | FDD – CM410A SnsrMeasStrt | See Synergy subproject version | 
| 2 | Software Naming Conventions | Process 04.02.00 | 
| 3 | Software Coding Standards | Process 04.02.00 | 
Dependencies
SWCs
| Module | Required Feature | 
| HwTq0Meas | Server call to trigger for Torque 0 Measurement | 
| HwTq1Meas | Server call to trigger for Torque 1 Measurement | 
| HwTq2Meas | Server call to trigger for Torque 2 Measurement | 
| HwTq3Meas | Server call to trigger for Torque 3 Measurement | 
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
| Modules | Notes | |
| None | 
Configuration Files to be provided by Integration Project
Note: Temporarily this file can be copied from the contract folder. Later revision will have the Davinci configuration parameter to generate the file.
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
No
Runnable Scheduling
This section specifies the required runnable scheduling.
| Init | Scheduling Requirements | Trigger | 
| SnsrMeasStrtInit1 | None | RTE (Init) | 
| Runnable | Scheduling Requirements | Trigger | 
| SnsrMeasStrtPer1 | None(Recommended to schedule before HwTq measurement2 ms periodic) | RTE (2 ms) | 
| SnsrMeasStrtIrq | Interupt triggered | Interrupt OSTM1 (interrupt channel 75) | 
Refer this design for interrupt priority. ISR needs to be excuted in the same application region as HwTqMeas components.
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes | 
| None | ||
* 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
*See DataDict.m
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
None
2 - SnsrMeasStrt_MDD
Module Design Document
For
Sensor Start Measurement
Dec 22, 2015
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USAChange History
| Description | Author | Version | Date | 
| Initial Version | Selva Sengottaiyan | 1.0 | 12-Oct-2015 | 
| CM410A SnsrMeasStrt Rev 1.1.0 - Implementation A3213 EA4#3219 | Selva Sengottaiyan | 2.0 | 22-Dec-2015 | 
Table of Contents
2 SnsrMeasStrt & High-Level Description 6
3 Design details of software module 7
3.1 Graphical representation of SnsrMeasStrt 7
4.1 Program (fixed) Constants 8
5 Software Component Implementation 9
5.1.1 Init: SnsrMeasStrtInit1 9
5.1.2.2 Store Module Inputs to Local copies 9
5.1.2.3 (Processing of function)……… 9
5.1.2.4 Store Local copy of outputs into Module Outputs 9
5.3.1.3 (Processing of function)……… 10
5.4 Module Internal (Local) Functions 10
5.5 GLOBAL Function/Macro Definitions 10
6 Known Limitations with Design 11
Appendix A Abbreviations and Acronyms 13
Introduction
Purpose
Module design document for Sensor Measurement Start Function.
SnsrMeasStrt & High-Level Description
Refer the Design.
Design details of software module
Graphical representation of SnsrMeasStrt

Data Flow Diagram
Component level DFD
N/A
Function level DFD
N/A
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
| Constant Name | Resolution | Units | Value | 
| Refer .m file | |||
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: SnsrMeasStrtInit1
Design Rationale
Magic numbers are used due to the large number of numeric values (for peripheral register configuration), it is more readable and easier to maintain without using embedded constants for these values. The values are shown in code comments, and line up exactly with the definitions given in the design module (a special spreadsheet was included in the design for this purpose).
See CM410A_SnsrMeasStrt_PeripheralCfg.xlsx in design module.
Module Outputs
Refer to FDD
Per: SnsrMeasStrtPer1
Design Rationale
None
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Server Runnable
None
Interrupt Functions
SnsrMeasStrtIrq
Design Rationale
ISR calls the HwTq0, HwTq1, HwTq2, HwTq3 server runnables which inturn trigger the Tq SENT.
ISR is trigger through OSTM1 timer. CM410 is designed to application where all the torques is executed.
(Processing of function)………
None
Module Internal (Local) Functions
None
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
ISR needs to execute in the same application region of the Torque.
UNIT TEST CONSIDERATION
Overflow for the variable Rte_Pim_TqMsgTrigCnt is intentional as this is used as a rolling counter.
Abbreviations and Acronyms
| Abbreviation or Acronym | Description | 
|---|---|
| DFD | Design functional diagram | 
| MDD | Module design Document | 
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 | EA4 01.00.00 | 
| 3 | Software Naming Conventions.doc | 1.0 | 
| 4 | Software Design and Coding Standards.doc | 2.0 | 
| 5 | FDD – CM410A SnsrMeasStrt | See Synergy subproject version | 
3 - SnsrMeasStrt_PeerReviewChecklist
Overview
Summary SheetSynergy Project
PolySpace
Sheet 1: Summary Sheet



