This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - CurrMeasCorrln_IntegrationManual
Integration Manual
For
CURRENT MEASUREMENT CORRELATION
VERSION: 3.0
DATE: 07-Jun-2017
Prepared By:
Shawn Penning,
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 | Nick Saxton | 1.0 | 26-Apr-2016 |
| 2 | Added FltInj point for an output | Krishna Anne | 2.0 | 27-Jun-16 |
| 3 | Added Init Runnable | Shawn Penning | 3.0 | 06-Jun-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 |
| <ADD more to the table if applicable> | |
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 - ES209A Current Measurement Correlation | Refer current Synergy subproject version |
| 2 | Software Naming Conventions | 1.01.00 |
| 3 | Software Design and Coding Standards | 2.1 |
Dependencies
SWCs
| Module | Required Feature |
|---|---|
| None | N/A |
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 | |
|---|---|---|
| CurrMeasCorrln | FLTINJENA should be set to STD_ON as required |
Configuration Files to be provided by Integration Project
None
Da Vinci Parameter Configuration Changes
| Parameter | Notes | SWC |
|---|---|---|
| N/A |
DaVinci Interrupt Configuration Changes
| ISR Name | VIM # | Priority Dependency | Notes |
|---|---|---|---|
| N/A |
Manual Configuration Changes
| Constant | Notes | SWC |
|---|---|---|
| N/A |
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 |
|---|---|---|
| CurrMeasCorrlnInit1 | None | RTE Init |
| Runnable | Scheduling Requirements | Trigger |
|---|---|---|
| CurrMeasCorrlnPer1 | None | RTE 2ms |
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
|---|---|---|
| CurrMeasCorrln_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
Non RTE NvM Blocks
| Block Name |
|---|
| None |
Note : Size of the NVM block if configured in developer
RTE NvM Blocks
| Block Name |
|---|
| None |
Note : Size of the NVM block if configured in developer
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
None
2 - CurrMeasCorrln_MDD
Module Design Document
For
Current Measurement Correlation
21-Feb-2018 Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Shawn Penning,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date |
| Initial version | Nick Saxton | 1.0 | 26-Apr-2016 |
| Update per design rev. 1.6.0 | Shawn Penning | 2.0 | 23-May-2017 |
| Update graphic design 2.0 | Shawn Penning | 3.0 | 21-Feb-2018 |
Table of Contents
1 Current Measurement Correlation & High-Level Description 5
2 Design details of software module 6
2.1 Graphical representation of Current Measurement Correlation 6
3.1 Program (fixed) Constants 7
4 Software Component Implementation 8
4.1.1 Initialization Functions 8
4.1.1.3 Store Module Inputs to Local copies 8
4.1.1.4 (Processing of function)……… 8
4.1.1.5 Store Local copy of outputs into Module Outputs 8
4.1.2.1 Per: CurrMeasCorrlnPer1 8
4.1.2.3 Store Module Inputs to Local copies 8
4.1.2.4 (Processing of function)……… 8
4.1.2.5 Store Local copy of outputs into Module Outputs 8
4.4 Module Internal (Local) Functions 9
4.5 Local Function/Macro Definitions 9
4.5.1 Local Function #1 SigAvlChk 9
4.5.2 Local Function #2 CurrMeasCorrlnChk 9
4.6 GLOBAL Function/Macro Definitions 9
5 Known Limitations with Design 10
Appendix A Abbreviations and Acronyms 12
Current Measurement Correlation & High-Level Description
Refer FDD
Design details of software module
Graphical representation of Current Measurement Correlation

Data Flow Diagram
Refer FDD
Component level DFD
Refer FDD
Function level DFD
Refer FDD
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local
| Constant Name | Units | Value |
|---|---|---|
| CORRLNSTSABC_CNT_U08 | Cnt | 0x07 |
| CURRMOTSUMLOLIM_AMPR_F32 | Ampr | 0.0F |
| CURRMOTSUMHILIM_AMPR_F32 | Ampr | 600.0F |
Software Component Implementation
Sub-Module Functions
Initialization Functions
INIT
None
Design Rationale
None
Store Module Inputs to Local copies
None
(Processing of function)…
None
Store Local copy of outputs into Module Outputs
None
PERIODIC FUNCTIONS
Per: CurrMeasCorrlnPer1
Design Rationale
Refer FDD
Store Module Inputs to Local copies
Refer FDD
(Processing of function)…
Refer FDD
Store Local copy of outputs into Module Outputs
Refer FDD
Server Runnables
None
Interrupt Functions
None
Module Internal (Local) Functions
Local Function/Macro Definitions
Local Function #1 SigAvlChk
| Function Name | SigAvlChk | Type | Min | Max |
| Arguments Passed | MotCurrQlfr1_Cnt_T_enum | SigQlfr1 | SIGQLFR_NORES | SIGQLFR_FAILD |
| MotCurrRollgCntr1_Cnt_T_u08 | uint8 | 0 | 255 | |
| Return Value | SigAvlABC_Cnt_T_logl | boolean | FALSE | TRUE |
Description
Refer FDD.
Local Function #2 CurrMeasCorrlnChk
| Function Name | CurrMeasCorrlnChk | Type | Min | Max |
| Arguments Passed | MotCurrCorrdA_Ampr_T_f32 | float32 | -200 | 200 |
| MotCurrCorrdB_Ampr_T_f32 | float32 | -200 | 200 | |
| MotCurrCorrdC_Ampr_T_f32 | float32 | -200 | 200 | |
| *CurrMeasLongTermCorrlnStsVldABC_Cnt_T_logl | boolean | FALSE | TRUE | |
| *CurrMotSumABC_Ampr_T_f32 | float32 | 0 | 600 | |
| Return Value | CurrMeasImdtCorrlnStsVldABC_Cnt_T_logl | boolean | FALSE | TRUE |
Description
Refer FDD.
* CurrMeasLongTermCorrlnStsVldABC_Cnt_T_logl and * CurrMotSumABC_Ampr_T_f32 are outputs of this function.
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
In Signal Availability, SigQlfr sets up 3 possible results:
0 = No Result
1 = Pass
2 = Fail
The model converts this enumerated type to uint8 and checks if less than 2 (Fail). The code differs in that it checks explicitly for No Result (SIGQLFR_NORES) or Pass (SIGQLFR_PASSD).
UNIT TEST CONSIDERATION
Continuous improvent CR EA4#12527 written for output range correction for CurrMeasCorrlnSts.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 | v1.3.0 R4.0 Rev 2 |
| 2 | MDD Guideline | EA4 01.01.00 |
| 3 | Software Naming Conventions | 01.01.00 |
| 4 | Software Design and Coding Standards | 2.1 |
| 5 | FDD – ES209A Current Measurement Correlation | See synergy subversion |
3 - CurrMeasCorrln_PeerReview
Overview
Summary SheetDavinci Files
Source Code
PolySpace
MDD
Synergy Project
Sheet 1: Summary Sheet
Sheet 2: Davinci Files
Sheet 3: Source Code
Sheet 4: PolySpace
Sheet 5: MDD
| Rev 2.00 | 29-Nov-17 | |||||||||||||||||||||||
| Nexteer SWC Implementation Peer Review Meeting Log (MDD Review) | ||||||||||||||||||||||||
| MDD Name: | CurrMeasCorrln_MDD.docx | MDD Revision: | 2 | |||||||||||||||||||||
| Source File Name: | CurrMeasCorrln.c | Source File Revision: | 6 | |||||||||||||||||||||
| Source File Name: | Source File Revision: | |||||||||||||||||||||||
| Source File Name: | Source File Revision: | |||||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| Synergy version matches document | Yes | Comments: | ||||||||||||||||||||||
| Change log contains detailed description of changes | Yes | Comments: | ||||||||||||||||||||||
| Changes Highlighted (for Unit Tester) | Yes | Comments: | ||||||||||||||||||||||
| Diagrams have been included per MDD Guideline | Yes | Comments: | ||||||||||||||||||||||
| and reviewed | ||||||||||||||||||||||||
| All Design Exceptions and Limitations are listed | N/A | Comments: | ||||||||||||||||||||||
| Design rationale given for all global | N/A | Comments: | ||||||||||||||||||||||
| data not communicated through RTE ports, per | ||||||||||||||||||||||||
| Design and Coding Standards rules [N9] and [N10]. | ||||||||||||||||||||||||
| All implementation details that differ from the SWC | N/A | Comments: | ||||||||||||||||||||||
| Design are noted and explained in Design Rationale | ||||||||||||||||||||||||
| All Unit Test Considerations have been described | N/A | Comments: | none | |||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Review Board: Change Owner: Shawn Penning Review Date : Lead Peer Reviewer: Test Approved by Reviewer(s): Other Reviewer(s): Rationale/justification for items marked "No" approved by: | ||||||||||||||||||||||||
| Change Owner: | Shawn Penning | Review Date : | 02/21/18 | |||||||||||||||||||||
| Lead Peer Reviewer: | Matt Leser | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
| Rationale/justification for items marked "No" approved by: | ||||||||||||||||||||||||
Sheet 6: 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: | ES209B_CurrMeasCorrln_Impl_2.1.0 | |||||||||||||||||||||
| naming convention | ||||||||||||||||||||||||
| Project contains necessary subprojects | Yes | Comments: | ||||||||||||||||||||||
| Project contains the correct version of subprojects | Yes | Comments: | ||||||||||||||||||||||
| Design subproject is correct version | Yes | Comments: | Need to baseline with Design v 2.1.0. | |||||||||||||||||||||
| Done - Imported new design 2.1.0 on 2/26/18 | ||||||||||||||||||||||||
| .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: | Shawn Penning | Review Date : | 02/26/18 | |||||||||||||||||||||
| Lead Peer Reviewer: | Matt Leser | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
| Rationale/justification for items marked "No" approved by: | ||||||||||||||||||||||||