1 - Controller_Temperature_MDD

Module -- Controller Temperature

High-Level Description

This module monitors the controller’s temperature sensor output, filters that output, and checks whether the output is within a lower and upper limit.

Figures

Diagram – Function Data Sharing

This diagram shows all data that is shared between functions within the module.


Module Inputs and Outputs

For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.

(Note: Full variable names required in table.)

(Note: All global variables including End Of Line data used should be shown here)

Module Inputs (Global Variable Name)Module Outputs (Global Variable Name)
DiagStsTempRdPrf_Cnt_lgcFiltMeasTemp_DegC_f32
TemperatureADC_Volt_f32
AmbTemp_DegC_f32

Module Internal Variables

This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.

(Note: If no module specific variables are used by the design, place the text “None” in the first Variable Name cell in the table)

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
CtrlTemp_CtrlTempSV_M_strLPF32KSV_Strsee data dictionarysee data dictionaryCTRLTEMP_START_SEC_VAR_CLEARED_UNSPECIFIED
CtrlTemp_CtrlTempSV_M_str .K_Uls_f32Single Precision Floating Pointsee data dictionarysee data dictionary
CtrlTemp_CtrlTempSV_M_str .SV_Uls_f32Single Precision Floating Pointsee data dictionarysee data dictionary
CtrlTemp_CtrlTemp_DegC_M_f32Single Precision Floating Pointsee data dictionarysee data dictionaryCTRLTEMP_START_SEC_VAR_CLEARED_32
CtrlTemp_CtrlTempErrorAcc_Cnt_M_u161see data dictionarysee data dictionaryCTRLTEMP_START_SEC_VAR_CLEARED_16
CtrlTemp_CtrlTempFiltOut_DegC_D_f32Single Precision Floating Pointsee data dictionarysee data dictionaryCTRLTEMP_START_SEC_VAR_CLEARED_32

User defined typedef definition/declaration

This section documents any user types uniquely used for the module.

Variable NameTypedef NameStorage TypeSafety Critical Classification
None

Constant Data Dictionary

Calibration Constants

This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.

(Note: If no calibrations are used by the design, place the text “None” in the first location in the table)

Constant Name
k_TempSnsrFiltDft_Cnt_lgc
k_TempSnsrLPFKn_Hz_f32
k_TempSnsrDefVal_DegC_f32
k_TempSensDiag_Cnt_str
k_TempSensLowLimit_DegC_f32
k_TempSensHighLimit_DegC_f32
k_TempSnsrScaling_DegpVolt_f32
k_TempSnsrOffset_Volts_f32
k_CustDiagAmbLowThresh_DegC_f32
k_CustDiagAmbLowEnable_Cnt_lgc

Program(fixed) Constants

Embedded Constants

All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.

Local

Constant NameResolutionValue
D_CTRLTEMPLOLMT_DEGC_F32Single Precision Floating Point-50.0
D_CTRLTEMPHILMT_DEGC_F32Single Precision Floating Point150.0

Note: RtnLoopTime depends on the rate of the periodic function.

Global

This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application.

Constant Name
D_2MS_SEC_F32
D_ZERO_ULS_F32
D_FALSE_CNT_LGC

Module specific Lookup Tables Constants

(This is for lookup tables (arrays) with fixed values, same name as other tables)

Constant NameResolutionValueSoftware Segment

Functions/Macros used by the Sub-Modules

Library Functions / Macros

The library functions / Macros that are called by the various sub modules are identified below,

  1. LPF_Init_f32_m

  2. LPF_OpUpdate_f32_m ()

  3. Limit_m()

  4. DiagPStep_m

  5. DiagNStep_m

  6. DiagFailed_m

Data Hiding Functions

The data hiding functions / macros used in this module are identified below,

  1. None

Local Functions/Macros Used by this MDD only

  1. None

Software Module Implementation

Initialization Functions

Init: CtrlTemp_ Init1

Design Rationale

None

Module Outputs

Module Internal

TempADC_Volts_T_f32 = Rte_IRead_CtrlTemp_Init1_TemperatureADC_Volt_f32()

CtrlTemp_DegC_T_f32 = (TempADC_Volts_T_f32 – k_TempSnsrOffset_Volts_f32) * k_TempSnsrScaling_DegpVolt_f32

CtrlTemp_CtrlTemp_DegC_M_f32 = Limit_m(CtrlTemp_DegC_T_f32, D_CTRLTEMPLOLMT_DEGC_F32, D_CTRLTEMPHILMT_DEGC_F32)

CtrlLPF_Init_f32_m(CtrlTemp_CtrlTemp_DegC_M_f32, k_TempSnsrLPFKn_Hz_f32, D_2MS_SEC_F32, & CtrlTemp_CtrlTempSV_M_str)

Rte_IWrite_CtrlTemp_Init1_FiltMeasTemp_DegC_f32 (CtrlTemp_CtrlTemp_DegC_M_f32)


Periodic Functions

Per: CtrlTemp_Per1

Design Rationale

None

Program Flow Start

Rte_Call_CtrlTemp_Per1_CP0_CheckpointReached()

Store Module Inputs to Local copies

DiagStsTempRdPrf_Cnt_T_lgc = Rte_Iread_CtrlTemp_Per1_DiagStsTempRdPrf_Cnt_lgc();

TempADC_Volts_T_f32 = Rte_Iread_CtrlTemp_Per1_TemperatureADC_Volt_f32()

CtrlTemp_DegC_T_f32 = (TempADC_Volts_T_f32 – k_TempSnsrOffset_Volts_f32) * k_TempSnsrScaling_DegpVolt_f32

(Processing of function)………

Calculate Temperature

Store Local copy of outputs into Module Outputs

CtrlTemp_DegC_T_f32 = Limit_m(CtrlTemp_DegC_T_f32, D_CTRLTEMPLOLMT_DEGC_F32, D_CTRLTEMPHILMT_DEGC_F32);

Rte_Iwrite_CtrlTemp_Per1_FiltMeasTemp_DegC_f32 (CtrlTemp_DegC_T_f32 );

Program Flow End

Rte_Call_CtrlTemp_Per1_CP1_CheckpointReached()

Per: CtrlTemp_Per2

Design Rationale

None

Program Flow Start

Rte_Call_CtrlTemp_Per2_CP0_CheckpointReached()

Store Module Inputs to Local copies

(Processing of function)………

Store Local copy of outputs into Module Outputs

Program Flow End

Rte_Call_CtrlTemp_Per2_CP1_CheckpointReached()


Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Local Function/Macro Definitions

None


Execution Requirements

Execution Sequence of the Module

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameTask ListCalling FrequencySystem State(s) in which the function is called
CtrlTemp_Init1()OnceOnce after RTE is started
CtrlTemp_Per1()2msAll
CtrlTemp_Per2()100msAll

Execution Requirements for Serial Communication Functions

Function NameSub-Module called by (Serial Comm Function Name)
None


Memory Map Definition Requirements

Sub Modules (Functions)

This table identifies the software segments for functions identified in this module.

Name of Sub ModuleSoftware Segment
CtrlTem_Init1()RTE_SA_CTRLTEMP_APPL_CODE
CtrlTem_Per1()RTE_SA_CTRLTEMP_APPL_CODE
CtrlTem_Per2()RTE_SA_CTRLTEMP_APPL_CODE

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment
None


Known Issues / Limitations With Design

  1. None


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial release18MAY11SAH
22.0Added Reduced Performace temperature selecture per #SF-6 00102DEC11M. Story
33.0Anomaly 2995 Limits not set correctly29FEB12M. Story
44.0Anomaly 2994 use CntrlTemp_DegC_T_f32 temporary variable internal to the Per1 function03MAR12M. Story
55.0Updated component to FDD SF-06 revision 416May12KJS
66.0Updated floating point filter structure with K and SV ranges12Jun12KJS
77.0Anomaly 3505 Use output from LPF for diagnostics.23Aug12Srikanth
88.0Added watchdog checkpoints.16 Sept 12BWL
99.0Added “Variables” missing from Module internal variable and their software segment18 sep 12SSK
1010.0Changed local constants to calibration to facilate the use of different temperature sensors.
1111.0Corrected naming conventions of new conversion calibrations.08Nov12LN
1212.0Corrected anomaly 454106Apr13KJS
1313.0Changed conditions on diagnostic per FDD SF—06 ver007; updated module and display variable names per naming conventions; updated temporary variable names for clarity; added missing section 5 and updated numbering on remaining sections17-Sep-13KMC

2 - CtrlTemp_Design_Review


Overview

Summary Sheet
Davinci Files
Source Code
MDD
Data Dictionary
QAC
Integration Manual


Sheet 1: Summary Sheet
























Rev 2.026-Aug-13

Peer Review Summary Sheet



























Component Name:


kzshz2: Intended Use: Identify which component is being reviewed. This should be the Module Short Name from Synergy Rationale: Required for traceability. It will help to ensure this form is not attaced to the the wrong change request. CtrlTemp
Component Revision:


kzshz2: Intended Use: Identify which Synergy revision of this component is being reviewed Rationale: Required for traceability. It will help to ensure this form is not attaced to the the wrong change request. SF06_007.0_CT_NoUTP





























Change Owner:


kzshz2: Intended Use: Identify the developer who made the change(s) Rationale: A change request may have more than one resolver, this will help identify who made what change. Change owner identification may be required by indusrty standards. Kathleen Creager
Change Request ID:


CR10100





























kzshz2: Intended Use: Intended to identify at a high level to the reviewers which areas of the component have been changed. Rationale: This will be good information to know when ensuring appropriate reviews have been completed. Modified File Types:
















































































































































kzshz2: Intended Use: Identify who where the reviewers, what they reviewed, and if the reviewed changes have been approved to release the code for testing. Comments here should be at a highlevel, the specific comments should be present on the specific review form sheet. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. ADD DR Level Move reviewer and approval to individual checklist form Review Checklist Summary:






















































Reviewed:































MDD


Source Code



Data Dictionary


QAC



































Integration Manual


Davinci Files








































































Comments:






























































































General Guidelines:
- The reviews should be performed over the portions of the component that were modified as a result of the Change Request. (Note: If this peer review form was not
completed for pervious versions of this component, the Change Owner should review the entire component and complete the checklist in its entirety prior and check
the form into Syngery. This should be done prior to reviewing the modifications for this Change Result)
- The Change Owner is responsible for completing the entire checklist (Pre and Group review items) prior holding the initial group review.
- New components should include FDD Owner and Intergator as apart of the Group Review Board (Source Code, Integration Manual, and Davinci Files)
- Select "Yes" and add "N/A" to the comments for checklist items that are not applicable for this change















Sheet 2: Davinci Files






















Rev 2.026-Aug-13
Peer Review Meeting Log (Davinci Review)


























Quality Check Items:

































YesNo
Rationale is required for all answers of No









Pre-review checklist for change ownersDCF: Latest StdDef imported








X
Comments:

updated from 2.11 to 2.30







































DCF: Only StdDef Port types are used (if not








X
Comments:

changed input and output types to

add justification)










current StdDef types (e.g. Voltage_Volt_f32 from Voltage)
























DCF: All unused definitions removed








X
Comments:










































*Cfg.arxml.TT: Verfied Davinci Configurator imported the








X
Comments:










change correctly
kzshz2: Either a generic sandbox or a baselined integration project can be used to verify












































*Cfg.h.TT: Verfied Davinci Configurator generates








X
Comments:










the configuration header(s) file correctly




kzshz2: Either a generic sandbox or a baselined integration project can be used to verify









































Group-review for review boardAll changed files have been compared against previous








X
Comments:




versions (If available)

kzshz2: Intended Use: Identify if previous version was compared and only the expected change(s) was present. This is for text files only, not binary or GUIs Rationale: This is helpful in identifying unapproved (intended or mistaken) changes.


































DCF:Automated validation check is performed








X
Comments:

























































DCF: Inputs/Outputs match names from requirements








X
Comments:

Per conversation with Lonnie, leave



















FiltMeasTemp as is due to inconsistencies btw FDDs

































DCF: Inputs/Outputs configuration paremeters








X
Comments:

N/A







reviewedkzshz2: Intended Use: All changed inputs have been reviewed to ensure configuration parameters (i.e. Buffered vs Direct read/writes) are correct. This includes signal grouping when signal consistency is required by the FDD













































DCF: Sender/Reciever Ports type and default values








X
Comments:

NOTE that some integration projects







macth their corresponding ports (internal/external)






kzshz2: Intended Use: Identify if all the Sender/Reciever ports are compatibale with there connecting ports. Rationale: This will help to avoid errors when this component is being integrated into a project.



have ADCTemperature type as Voltage

































DCF: Ports prototype and default values








X
Comments:










macth their corresponding ports (internal/external)






kzshz2: Intended Use: Identify if all the Server/Client ports are compatibale with there connecting ports. Rationale: This will help to avoid errors when this component is being integrated into a project.






































DCF: Server runnable variables are using direct








X
Comments:










read/writes













































DCF: Runnable calling frequencies match requirements








X
Comments:



























































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):










































































Sheet 3: Source Code






















Rev 2.026-Aug-13
Peer Review Meeting Log (Source Code Review)

























Source File Name:




kzshz2: Intended Use: Identify which .asm, .c, or .h file is being reviewed Rationale: Required for traceability. It will help to ensure this sheet is not attached to the wrong design review form. Sa_CtrlTemp.c
Source File Revision:


kzshz2: Intended Use: Identify which version of the source file is being review. Rationale: Required for traceability between source code and review. Auditors will likely require this. 17

























Module Design Document Name:




kzshz2: Intended Use: Identify which version of the MDD this source file was written against. Rationale: Needed for traceability between source code and MDD Controller_Temperature_MDD
MDD Revision:


kzshz2: Intended Use: Identify which version of the MDD this source file was written against. Rationale: Needed for traceability between source code and MDD 13

































Data Dictionary Revision:



kzshz2: Intended Use: Identify which version of the Data Dictionary was referenced for ranges during the source file review. Rationale: Needed for traceability between source code and DD 14

































Quality Check Items:

































YesNo
Rationale is required for all answers of No









Pre-review checklist
(change owners only)
Analysis performed for divide by zero




kzshz2: Intended Use: To confirm this defensive coding strategy has been taken into consideration Rationale: Necessary since currently there is no place this is documented



X
Comments:










































Software Design and Coding Standard followed
X
Comments:

as checked by QAC













































Software Naming Convention followed


X
Comments:
















































All buffered outputs are written in every path








X
Comments:

















































Group-review Checklist (review board)Telelogic Synergy version matches header





kzshz2: Intended Use: Indicate that the the versioning was confirmed by the peer reviewer(s). Rationale: There have been many occassions where versions were not updated in files and as a result Unit Test were referencing wrong versions. This often time leads to the need to re-run of batch tests.


X
Comments:










































Change log contains detailed description of changes








X
Comments:










































Code compared vs requirements (Document or Model)







kzshz2: Intended Use: Identify if previous version was compared and only the expected change(s) was present. Rationale: This is helpful in identifying unapproved (intended or mistaken) changes.
X
Comments:

compared change only







































Global Outputs (RTE/Non-RTE) Initialized








X
Comments:
















































Global Outputs are limited to the legal range defined








X
Comments:

N/A for this change







in the FDD Data dictionary




































No Compiler Errors verified


kzshz2: Intended Use: To confirm the appropriate variable name formats have been used. Rationale: This is needed to ensure there will be no errors discovered at the time of integration. A Sandox project may be required to confirm there are no errors until the QAC tool has been evaultated to determine if it can automate this check.





X
Comments:
















































Type Casting and Fix Point Macros use reviewed








X
Comments:

N/A for this change













































Function prototype and passed parameters are








X
Comments:










consistent






































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):










































































Sheet 4: MDD






















Rev 2.026-Aug-13
Peer Review Meeting Log (MDD Review)






























Module Name:

kzshz2: Intended Use: Identify which file is has been reviewed Rationale: Required for traceability. It will help to ensure this sheet is not attached to the wrong design review form. Controller_Temperature_MDD


Modulekzshz2: Intended Use: Identify how many source files are being reviewed and trace it to the appropriate MDD. Rationale: Required for traceability between source code and MDD
1of1





























MDD Revision:

kzshz2: Intended Use: Identify which version of the MDD has been reviewed. Rationale: Required for traceability between the MDD and review. Auditors will likely require this. 13


Source File Revision:


kzshz2: Intended Use: Identify which version of the source file was this MDD written for. Rationale: Needed for traceability between source code and MDD 17

Data Dictionary Revision:



kzshz2: Intended Use: Identify which version of the Data Dictionary was referenced for ranges during the review. Rationale: Needed for traceability between source code and DD. Note: Maybe this should be moved to the Summary sheet since there is only one Data Dictionary Version for all changes 14



















































Quality Check Items:

































YesNo
Rationale is required for all answers of No









Group-review Checklist (review board)Telelogic Synergy version matches header








X
Comments:










































Change log contains detailed description of changes








X
Comments:










































Changes Highlighted (for Unit Tester)








X
Comments:










































High-level Diagrams have been reviewed (Section 2)








X
Comments:
















































All Design Exceptions and Limitations are listed








X
Comments:
















































Design Rationale understood captured appropriately








X
Comments:

















































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):










































































Sheet 5: Data Dictionary






















Rev 2.026-Aug-13
Peer Review Meeting Log (Data Dictionary Review)


























Data Dictionary Revision:



kzshz2: Intended Use: Identify which version of the file is being reviewed Rationale: Required for traceability. 14









































kzshz2: Intended Use: Indicate to the reviewers the type of variable changes. This should be filled out prior to the review by the change owner. Rationale: This will be good information to know to both reviewers and post reviewers of the change. Variables:



























XNewly Added


Name Changes


XRange Changes


Deleted
































NVM Changes


XOther:
unit test tolerance
































































kzshz2: Intended Use: Indicate to the reviewers the type of calibration changes. This should be filled out prior to the review by the change owner. Rationale: This will be good information to know to both reviewers and post reviewers of the change. Calibrations:



























XNewly Added


Name Changes


XRange Changes


XDefault Value Changes
































Deleted


Other:


































































Quality Check Items:

































YesNo
Rationale is required for all answers of No









Group-review Checklist (review board)Telelogic Synergy version matches header








X
Comments:










































Change log contains detailed description of changes








X
Comments:










































All Changes Identified (for Unit Tester)








X
Comments:










































Calibration and NVM names, ranges, and default values








X
Comments:

temp sensor offset and scaling -- left

compared against FDD










as is pending resolution of anomaly 5628
























Global variables names, ranges, and default values








X
Comments:

see note on ambient temperature input

compared against FDD Data Dictionary






























































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):










































































Sheet 6: QAC






















Rev 2.026-Aug-13
Peer Review Meeting Log (QAC Review)


























Module Name:

kzshz2: Intended Use: Identify which .c file is being analyzed Rationale: Required for traceability. It will help to ensure this sheet is not attached to the wrong design review form. Sa_CtrlTemp.c

Source File Revision:


17

Module
1of1


























Compliance Document Version:




unreleased









































kzshz2: Intended Use: Identify specific changes in results (new violation present, previous violation corrected, etc.). Changes to the version of the tool or the way the results were gathered should be described here also. This should be filled out prior to the review by the change owner. Rationale: Gives reviewers an what needs to be focused on. Forces the change owner to compare with previous results to catch any differences that may otherwise go unoticed Brief Summary of Changes (In Results or Tool):


































































Quality Check Items:

































YesNo
Rationale is required for all answers of No









Pre-review
checklist for change owners
QAC version is correct and did not change (List version)







kzshz2: Intended Use: Identify which version of the QAC Subproject was used and if any of the personalities may have changed. Rationale: Will help ensure this is factored into evaluating the results
X
Comments:

QAC_6







































Contract Folder's header files are appropriate





kzshz2: Intended Use: Identify that the contract folder contains only the information required for this component. All other variables, constants, function prototypes, etc. should be removed. Rationale: This will help avoid unit testers having to considers object not used. It will also avoid having other files required for QAC.


X
Comments:












































G Group-review Checklist (review board)100% Compliance to the MISRA Compliance DocumentX
Comments:













































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):










































































Sheet 7: Integration Manual






















Rev 2.026-Aug-13
Peer Review Meeting Log (Integration Manual Review)


























Integration Manual Name:



kzshz2: Intended Use: Identify which file is being reviewed Rationale: Required for traceability. It will help to ensure this sheet is not attached to the wrong design review form. CtrlTemp_Integration_Manual

Integration Manual Revision:



kzshz2: Intended Use: Identify which version of the integration manual has been reviewed. Rationale: Required for traceability between the MDD and review. Auditors will likely require this. 1





























Quality Check Items:

































YesNo
Rationale is required for all answers of No









Group-review Checklist (review board)Telelogic Synergy version matches header








X
Comments:










































Latest template used








X
Comments:










































Change log contains detailed description of changes








X
Comments:

N/A







































Changes Highlighted (for Integrator)








X
Comments:

N/A








































General Notes / Comments:



























































kzshz2: Intended Use: Identify who where the reviewers and if the reviewed changes have been approved. Rationale: Since this Form will be attached to the Change Request it will confirm the approval and provides feedback in case of audits. Group Review Level: There are four Design Review States that a document may have as follows: DR1 – Un-reviewed document. The DR1 reviews usually require larger, cross functional review teams (i.e. Management, Hardware Engineering, etc.) It is usually advisable, but not required to include outside representation as well such as system engineers. It is up to the document owner to decide on the scope of the review, however, the peer group can decide that a re-review with additional team member is required. DR2 – The Document has previously passed through the peer review process, but requires design changes significant enough to require another group peer review. DR3 – The Document has passed group peer review but needs minor corrections that can be re-reviewed with the Lead Peer Reviewer. DR4 – The document has passed all peer reviews and is ready for release. Review Board:


























Change Owner:

Kathleen Creager
Review Date :

09/23/13
Group Review Level:


DR4



























Lead Peer Reviewer:


Selva Sengottaiyan

Approved by Reviewer(s):



Yes































Other Reviewer(s):









































































3 - CtrlTemp_Integration_Manual

1 Dependencies 2

1.1 SWCs 2

1.2 Functions to be provided to Integration Project 2

2 Configuration 3

2.1 Build Time Config 3

2.2 Configuration Files to be provided by Integration Project 3

2.2.1 Da Vinci Config generation 3

2.2.2 Manual Configuration Changes 3

3 Integration 4

3.1 Required Global Data Inputs 4

3.2 Optional Global Data Inputs 4

3.3 Specific Include Path present 4

4 Runnable Scheduling 5

5 Memory Mapping 6

5.1 Mapping 6

5.2 Usage 6

5.3 NvM Blocks 6

6 Compiler Settings 6

6.1 Preprocessor MACRO 6

6.2 Optimization Settings 6

7 Revision Control Log 7

Dependencies

SWCs

ModuleRequired Feature
None

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

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

None

Configuration

Build Time Config

ModulesNotes
None

Configuration Files to be provided by Integration Project

Sa_CtrlTemp_Cfg.h generated by Sa_CtrlTemp_Cfg.h.tt

Da Vinci Parameter Configuration Changes

ParameterNotesSWC
CtrlTempGeneral/CtrlTempCPEnableTo enable checkpointsCtrlTemp

DaVinci Interrupt Configuration Changes

ISR NameVIM #Priority DependencyNotes
None

Manual Configuration Changes

ConstantNotesSWC
None

Integration

Required Global Data Inputs

TemperatureADC_Volt_f32

DiagStsTempRdPrf_Cnt_lgc

AmbTemp_DegC_f32

Required Global Data Outputs

FiltMeasTemp_DegC_f32

Specific Include Path present

No

Runnable Scheduling

This section specifies the required runnable scheduling.

InitScheduling RequirementsTrigger
CtrlTemp_Init1Called from RTE before any call to the periodic functionsRTE init
RunnableScheduling RequirementsTrigger
CtrlTemp_Per1NoneRTE 2ms
CtrlTemp_Per2NoneRTE 100ms

.

Memory Mapping

Mapping

Memory SectionContentsNotes
CTRLTEMP_START_SEC_VAR_CLEARED_32
CTRLTEMP_START_SEC_VAR_CLEARED_16
CTRLTEMP_START_SEC_VAR_CLEARED_UNSPECIFIED
RTE_START_SEC_SA_CTRLTEMP_APPL_CODE

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

Usage

Table 1: ARM Cortex R4 Memory Usage

FeatureRAMROM
<Memmap usuage info>

Non RTE NvM Blocks

Block Name
<NVM block used Non RTE functions >

Note : Size of the NVM block if configured in developer

RTE NvM Blocks

Block Name
<NVM block used in RTE functions >

Note : Size of the NVM block if configured in developer

Compiler Settings

Preprocessor MACRO

<Define all the preprocessor Macros needed and conditions when needed>.

Optimization Settings

<Define Optimization levels that are needed and conditions when needed>.

Revision Control Log

Rev #Change DescriptionDateAuthor
1Initial version17-Sep-13KMC

4 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

CtrlTemp - Rev 14<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1.0M. Story5-Dec-11Initial version



2M. Story4-Jan-12Corrected AbsTempDiag to be structure & Added M variables



3M. Story5-Jan-12Added NTC_STATUS Constants



4OT9-Jan-12Updated Template (v3.1)



5OT18-Jan-12Updated Template (Graph Settings)



6OT19-Jan-12Fixed Syntax Errors



7M. Story29-Feb-12Corrected Ranges for Anomaly 2995



8SH16-Mar-12Updated diag structure in data dictionary



9KJS16-May-12Updated calibrations to revision 4 of the SF-6 document.



10KJS12-Jun-12Updated resolution and tolerance for floating point filters SV and K



11AH15-Oct-12Added k_TEMPSNSROFF_VOLTS_F32 and k_TEMPSNSRSCALE_DEGPERVLT_F32



12LN8-Nov-12Corrected naming conventions of new conversion calibrations



13NPH31-May-13FDD reference, software cal names: k_TempSensDiag_Cnt_str.NStep,
k_TempSensDiag_Cnt_str.Pstep




14KMC16-Sep-13Added new input variable and two new calibrations; updated cal ranges and defaults and associated variable ranges and unit test tolerances; all per per FDD SF-06 v007 and per FDD data dictionary.




















































































































































































































































Sheet 2: Variable Dictionary

CtrlTemp - Rev 14

IOMDN
Variable Information

YN










Range











Software Variable NameStandard Reference NameFDD ReferenceDescription[I]nput [O]uput [M]oduleInternal [D]isplay [N]onVolatileMemory UsageOEM1X, 1Y, 1Z, 1I, 1B 2X, 2Y, 2Z, 2I, 2B etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables




















TemperatureADC_Volt_f32Temperature_ADCSF06 TemperatureEstimation
IN
005Single Precision Floating Point
Voltsfloat32







DiagStsTempRdPrf_Cnt_lgcTemp_Red_PerfSF06 TemperatureEstimation
IN
001N/A
Countsboolean







AmbTemp_DegC_f32Amb_TempSF06 TemperatureEstimationNOTE - because this input is from serial coms and the range is not documented in a single place, for the purpose of unit test the range is given as min-1 to max+1 of the cal that the variable is compared toIN
0-151151Single Precision Floating Point
DegCfloat32







FiltMeasTemp_DegC_f32Filt_Meas_TempSF06 TemperatureEstimation
ON
0-50150Single Precision Floating Point3.13E-02DegCfloat32







CtrlTemp_CtrlTempSV_M_str.K_Uls_f32
SF06 TemperatureEstimation
MN
00.0001256558107908260.222232320828211Single Precision Floating Point1.25662916578007E-05UlsLPF32KSV_Str







CtrlTemp_CtrlTempSV_M_str.SV_Uls_f32
SF06 TemperatureEstimation
MN
0-2001000Single Precision Floating Pointsix significant digitsDegCLPF32KSV_Str







CtrlTemp_CtrlTemp_DegC_M_f32
SF06 TemperatureEstimation
MN
0-2001000Single Precision Floating Point3.13E-02DegCfloat32







CtrlTemp_CtrlTempErrorAcc_Cnt_M_u16
SF06 TemperatureEstimation
MN
0FullFulluint160Countsuint16







CtrlTemp_CtrlTempFiltOut_DegC_D_f32Temp_Filter_OutputSF06 TemperatureEstimation
DN
0-2001000Single Precision Floating Point3.13E-02DegCfloat32


































































































































































































































































































































































































































































































































Sheet 3: Calibration Dictionary

CtrlTemp - Rev 14


N
Calibration InformationAchieved in Software Design



Y








Range





P
Software Calibration NameStandard Reference NameFDD ReferenceDescriptionTuning SetOEM1X, 1Y, 1Z, 1I, 1B 2X, 2Y, 2Z, 2I, 2B etc Graph SettingsDefault ValueMinMaxUnitsTypeMemory Segment



Calibrations















k_TempSnsrFiltDft_Cnt_lgcTempEst_k_TempSnsrFiltDft_CntSF06 TemperatureEstimationFlag indicating whether software low pass filter should be defeated or bypassedNN
001Cntboolean




k_TempSnsrLPFKn_Hz_f32TempEst_k_TempSnsrLPFKn_HzSF06 TemperatureEstimationCutoff frequency for software low pass filterNN
80.0120Hzfloat32




k_TempSnsrDefVal_DegC_f32TempEst_k_TempSnsrDefVal_DegCSF06 TemperatureEstimationDefault value for controller temperature to be used in fault conditionNN
60-40150DegCfloat32




k_TempSensDiag_Cnt_str
SF06 TemperatureEstimation
NN
{40,2,1}


DiagSettings_Str




k_TempSensDiag_Cnt_str.ThresholdTempEst_k_TempSensDiagThresh_CntSF06 TemperatureEstimationThreshold value above which the temperature sensor diagnostic active flag should be set to TrueN

400255Cntuint16




k_TempSensDiag_Cnt_str.PStepTempEst_k_TempSensDiagPStep_CntSF06 TemperatureEstimationSize of P step for PN diagnostic structureN

20255Cntuint16




k_TempSensDiag_Cnt_str.NStepTempEst_k_TempSensDiagNStep_CntSF06 TemperatureEstimationSize of N step for PN diagnostic structureN

10255Cntuint16




k_TempSensLowLimit_DegC_f32TempEst_k_TempSensLowLimit_DegCSF06 TemperatureEstimationLow limit calibration that defines the low limit floor for diagnostic of the temperature sensor signalNN
-40-40150Cntfloat32




k_TempSensHighLimit_DegC_f32TempEst_k_TempSensHighLimit_DegCSF06 TemperatureEstimationUpper limit calibration that defines the upper limit floor for diagnostic of the temperature sensor signalNN
150-40150Cntfloat32




k_TempSnsrOffset_Volts_f32
FDD33C ADCUseandConfiguration
NN
0.501Voltsfloat32




k_TempSnsrScaling_DegpVolt_f32
FDD33C ADCUseandConfiguration
NN
1000200DegpVfloat32




k_CustDiagAmbLowThresh_DegC_f32TempEst_k_CustDiagAmbLowThresh_DegCSF06 TemperatureEstimationCustomer Specific Low Temperature Threshold for Disabling NTC DiagnosticNN
-30-150150DegCfloat32




k_CustDiagAmbLowEnable_Cnt_lgcTempEst_k_CustDiagAmbLowEnable_CntSF06 TemperatureEstimationCalibration to Enable Customer Specific Low Temperature NTC Diagnostic Disable LogicNN
001Cntboolean






















Sheet 4: Global Constants

CtrlTemp - Rev 14








































































Variable Information (Global Variables Only)

Achieved in Software DesignUsed in Module List





Layer 2Layer 3Layer 4Layer 5
Constant NameDescriptionUintsTypeEngineering ValueADCADC DiagnosticsData Memory VerificationDC Link Power ControlDSP Computational IntegrityDSP SPI driverEvent Manager DriverExternal Memory DriverFlash Programming ExecGPIOIllegal OpCode HandlerInterrupt HandlerMotor Current DriverMotor Driver DiagnosticsMotor Position DriverPhase Feedback CapturePowerdown ControlPrimary Shutdown ControlProgram FlowProgram Memory DiagnosticPWM Duty CycleRedundant Memory CheckRedundant Rapid ShutdownSchedulerStack MonitorState Dependent Task ListSystem Boot & StartupSystem ControlTemperature Sensor DiagnosticUnused Interrupt HandlerUtilization MonitorWatchdog DirverSmithBattery VoltageBattery Voltage DiagnosticsDiagnostic CTC ManagerDiagnostic ManagerDiagnostics Application ServicesEOL TorqueTestFlash Boot LoaderFlight RecorderHandwheel PositionHandwheel TorqueMotor Control Output ConversionMotor Position DiagnosticsMotor Position InitializationMotor VelocityMotor Velocity TachometerSerial Communications I/OSerial Communications ServicesStates and ModesTuning SelectVehicle Power ModeVehicle SpeedController PolarityCurrent EstimationHandwheel VelocityInverse Motor ModelMotor Temperature EstimationMotor Torque LimitOutput Reasonableness DianosticParameter EstimationQuadrant and rate DetectionActive Pull CompensationAssistDampingDuty CycleKinematic Integrity DiagnosticLong Term Vehicle Speed DiagnosticMax Assist LimitReturnState Output ControlTorque Output
NTC_STATUS_FAILED
Cntuint161








































































NTC_STATUS_PASSED
Cntuint160








































































NTC_Num_Thermistor
Cntuint1669





















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Sheet 5: Template

2.2aData File:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










EOL Constants:












Header:extern <TYPE><TAB><NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>");
<TYPE> <NAME>;










Global (Embedded) Constants:












Header:#define <NAME><COL40><VALUE>









A2L Name












Measurement:rte_<SWC>_<NAME>









Calibration Constants:












Tuning ID:



















Tuning:NIndex Range:










Header:extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>;









Source:#pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>");
CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>;










eCal:<NAME>























Tuning:YIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>
























Tuning:PIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>

















Sheet 6: Help

Short cutMacroSescription
Ctrl-qClearDataDictFilterWill clear all autofilters on the Global Data Dictionary




DFD_CreateCreates a Series of Data Flow Worksheet Pages from the information in the data dictionary. If Data Flow Worksheet pages already exist, they will be deleted first.

DFD_DeleteWill clear all Data Flow Diagram pages from the Data Dictionary. This will make the file smaller for archiving.

DFD_PrintFormate and prepares to print the Data Flow Worksheet pages.

5 - ControlTemp_UnitTestResults


Overview

Unit Test Information
Module Definitions
Variable Range
CtrlTemp_Init1
CtrlTemp_Init1() B
CtrlTemp_Per1
CtrlTemp_Per1() B
CtrlTemp_Per1() P
CtrlTemp_Per2
CtrlTemp_Per2() P
CtrlTemp_Per2() B


Sheet 1: Unit Test Information

1.0a






















Nexteer EPS Unit Test Tool






Rev:2.7b












Name of Tester:Raghav Tripathi
Source files to be added to the .pjt file Must include path from 'Source Code Directory' setting on the Unit Test Tool Options dialog Include Files:

Code File(s) Under Test:Sa_CtrlTemp.c



Code File(s) Version:16



Module Design Document:Controller_Temperature_MDD



Module Design Document Version:12



Unit Test Plan Version:6 (Synergy version is 7)



Optimization Level:Level 2



Compiler (CodeGen) Version:TMS470_4.9.5



Model Type:Excel Macro



Model Version:




Special Test Requirements:




Test Date:4/12/2012



Comments:NOTE 1: Inline functions defined in GlobalMacro.h are not unit tested.




Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

CtrlTemp_Init1CtrlTemp_Init1() B----
20






CtrlTemp_Per1CtrlTemp_Per1() P----
3
28CtrlTemp_Per1() B----
28






CtrlTemp_Per2CtrlTemp_Per2() B----
29
5CtrlTemp_Per2() P----
5












































































































































































































































Sheet 2: Module Definitions









































Nexteer EPS Unit Test Tool












Rev:2.7a












Module Definitions
Module Test Functions
Module Set/Read Variables
Module Function Stubs
Return TypeNameParameter Prototype
ScopeTypeNameDefault Value
Return TypeNameParameter Prototype
voidCtrlTemp_Init1(void)
GfloatFiltMeasTemp_DegC_f32

voidCall_NxtrDiagMgr_SetNTCStatus(void)
voidCtrlTemp_Per1(void)
MfloatCtrlTemp_DegC_M_f32

voidRte_Call_CtrlTemp_Per1_CP0_CheckpointReached(void)
voidCtrlTemp_Per2(void)
GBooleanDiagStsTempRdPrf_Cnt_lgc

voidRte_Call_CtrlTemp_Per1_CP1_CheckpointReached(void)




GfloatTemperatureADC_Volt_f32

voidRte_Call_CtrlTemp_Per2_CP0_CheckpointReached(void)




MUint16CtrlTempErrorAcc_Cnt_M_u16

voidRte_Call_CtrlTemp_Per2_CP1_CheckpointReached(void)




GUint8Ip_NTC








GUint8Ip_Param








GUint8Ip_Status








GBOOLEANk_TempSnsrFiltDft_Cnt_lgc








Gfloatk_TempSnsrLPFKn_Hz_f32








Gfloatk_TempSnsrDefVal_DegC_f32








Gfloatk_TempSensLowLimit_DegC_f32








Gfloatk_TempSensHighLimit_DegC_f32








GDiagSettings_Str.Uint16k_TempSensDiag_Cnt_str.Threshold








GDiagSettings_Str.Uint16k_TempSensDiag_Cnt_str.Pstep








GDiagSettings_Str.Uint16k_TempSensDiag_Cnt_str.Nstep








MLPF32KSV_Str.floatCtrlTempSV_M_str.SV








MLPF32KSV_Str.floatCtrlTempSV_M_str.K








MfloatCtrlTempFiltOut_DegC_D_f32








Gfloatk_TempSnsrOffset_Volts_f32








Gfloatk_TempSnsrScaling_DegpVolt_f32





































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Sheet 3: Variable Range












































Nexteer EPS Unit Test Tool












Rev:2.7a
























Variable Range Definitions








Variable NameMax ValueMin Value








CtrlTempFinal_DegC_f32










CtrlTempSV_DegC_s9p22










CtrlTemp_DegC_f32










Rte_Call_CtrlTemp_CtrlTemp_V_f32










FiltMeasTemp_DegC_f32










CtrlTempSV_DegC_M_s9p22










CtrlTemp_DegC_M_f32










DiagStsTempRdPrf_Cnt_lgc










TemperatureADC_Volt_f32










CntrlTempErrorAcc_Cnt_M_u16










CntrlTemp_DegC_M_f32










Ip_NTC










Ip_Param










Ip_Status










k_TempSnsrFiltDft_Cnt_lgc










k_TempSnsrLPFKn_Cnt_u16










k_TempSnsrDefVal_DegC_f32










k_TempSensLowLimit_DegC_f32










k_TempSensHighLimit_DegC_f32










k_TempSensDiag_Cnt_str.Threshold










k_TempSensDiag_Cnt_str.Pstep










k_TempSensDiag_Cnt_str.Nstep










k_TempSnsrLPFKn_Hz_f32










CtrlTempSV_M_str










CtrlTempSV_M_str.SV_Uls_f32










CtrlTempSV_M_str.K_Uls_f32










CtrlTempFiltOut_DegC_D_f32










CtrlTempErrorAcc_Cnt_M_u16










k_TempSnsrOffset_Volts_f32










k_TempSnsrScaling_DegpVolt_f32











Sheet 4: CtrlTemp_Init1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
CtrlTemp_Init1B20TemperatureADC_Volt_f32CtrlTemp_DegC_M_f32



CtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32



k_TempSnsrLPFKn_Hz_f32CtrlTempSV_M_str.K



k_TempSnsrOffset_Volts_f32




k_TempSnsrScaling_DegpVolt_f32


Sheet 5: CtrlTemp_Init1() B

CtrlTemp_Init1TS--











BI/P1I/P2I/PI/PI/PO/PO/PO/PExpected
O/P
Expected
O/P
Expected
O/P
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionTemperatureADC_Volt_f32CtrlTemp_DegC_M_f32k_TempSnsrLPFKn_Hz_f32k_TempSnsrOffset_Volts_f32k_TempSnsrScaling_DegpVolt_f32CtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.KCtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.KP/FCPU Cycles
1TemperatureADC_Volt_f32 min0-200.01230.220-------4-40.000154554413792418--

2TemperatureADC_Volt_f32 max51000.01440.450------1501500.000180939365344912--

3TemperatureADC_Volt_f32 mid21320.01580.660------84840.000198528946226961--

4CtrlTemp_DegC_M_f32min0-500.0100------000.000125655810790826--

5CtrlTemp_DegC_M_f32max31500.019410.870------1501500.000243883509205456--

6CtrlTemp_DegC_M_f32 zero400.0210.389------1501500.000263858965999897--

7CtrlTemp_DegC_M_f32 neg0-500.0100------000.000125655810790826--

8CtrlTemp_DegC_M_f32 pos2.51230.02460.6543------79.550003051757879.55000305175780.000309084940518067--

9k_TempSnsrLPFKn_Hz_f32 = Min0-500.0100------000.000125655810790826--

10k_TempSnsrLPFKn_Hz_f32=Max2210.9850------51510.012487743476344--

11k_TempSnsrLPFKn_Hz_f32=Pos31000.029910.4360------1501500.000375789518500036--

12k_TempSnsrOffset_Volts_f32==>Min2120.0144080------1501500.000180939365344912--

13k_TempSnsrOffset_Volts_f32==>Max1340.0158170------000.000198528946226961--

14k_TempSnsrOffset_Volts_f32==>Pos3120.0170.589------1501500.000213605483543544--

15k_TempSnsrScaling_DegpVolt_f32==>Min3450.019410.80------000.000243883509205456--

16k_TempSnsrScaling_DegpVolt_f32==>Max2560.0210.8200------1501500.000263858965999897--

17k_TempSnsrScaling_DegpVolt_f32==>Pos1340.0220.3100------70700.000276421941929117--

18CtrlTemp_DegC_M_f32 neg0-500.01151-------50-500.000125655810790826--

19All min0-500.0100------000.000125655810790826--

20All max515011200------1501500.012487743476344--


































































































































































Sheet 6: CtrlTemp_Per1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
CtrlTemp_Per1P3DiagStsTempRdPrf_Cnt_lgcCtrlTemp_DegC_M_f32Rte_Call_CtrlTemp_Per1_CP0_CheckpointReached
CtrlTemp_Per1B28TemperatureADC_Volt_f32FiltMeasTemp_DegC_f32Rte_Call_CtrlTemp_Per1_CP1_CheckpointReached



k_TempSnsrFiltDft_Cnt_lgcCtrlTempSV_M_str.SV



k_TempSnsrDefVal_DegC_f32




CtrlTempSV_M_str.SV




CtrlTempSV_M_str.K




k_TempSnsrOffset_Volts_f32




k_TempSnsrScaling_DegpVolt_f32


Sheet 7: CtrlTemp_Per1() B

CtrlTemp_Per1TS--


















BI/P1I/P2I/P3I/P4I/P5I/P6I/PI/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionDiagStsTempRdPrf_Cnt_lgcTemperatureADC_Volt_f32k_TempSnsrFiltDft_Cnt_lgck_TempSnsrDefVal_DegC_f32CtrlTempSV_M_str.SVCtrlTempSV_M_str.Kk_TempSnsrOffset_Volts_f32k_TempSnsrScaling_DegpVolt_f32CtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.SVRte_Call_CtrlTemp_Per1_CP0_CheckpointReachedRte_Call_CtrlTemp_Per1_CP1_CheckpointReachedCtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.SVRte_Call_CtrlTemp_Per1_CP0_CheckpointReachedRte_Call_CtrlTemp_Per1_CP1_CheckpointReachedP/FCPU Cycles
1DiagStsTempRdPrf_Cnt_lgcmin021-27-420.00724260.220----------------------

2DiagStsTempRdPrf_Cnt_lgc max130112450.006430.450----------45.5465511245.5465511--

3TemperatureADC_Volt_f32 min001125-380.00576380.660-----------36-36-3811--

4TemperatureADC_Volt_f32 max15089740.00476280.880----------75.24785368975.247853611--

5TemperatureADC_Volt_f32 mid01156-160.003530.870----------1414-1611--

6k_TempSnsrFiltDft_Cnt_lgc min11.250-30850.0053730.389----------84.99758215-3084.9975821511--

7k_TempSnsrFiltDft_Cnt_lgcmax02.25124-280.0092620.4312----------21.8421.8400001525879-2811--

8k_TempSnsrDefVal_DegC_f32 min12.461-40850.0083530.6543----------77.83-408511--

9k_TempSnsrDefVal_DegC_f32max13.780150-160.0072340.7820-----------15.450216150-15.45021611--

10k_TempSnsrDefVal_DegC_f32 zero14.3610740.0056230.9850----------16907411--

11k_TempSnsrDefVal_DegC_f32 neg14.940-10-270.0046380.4360-----------25.6197312-10-25.619731211--

12k_TempSnsrDefVal_DegC_f32 pos12.76118460.0036730.220----------51.2184611--

13CtrlTempSV_M_str.SV min01.50-11-500.0016710.450-----------49.824545-49.8245468139648-49.82454511--

14CtrlTempSV_M_str.SV max12.50411500.002560.660----------149.9078441149.9078411--

15CtrlTempSV_M_str.SV zero03.50-2500.0037820.880----------0.8169120.8169119954109190.81691211--

16CtrlTempSV_M_str.SVneg14.5064-130.005710.870-----------11.4468864-11.4468811--

17CtrlTempSV_M_str.SV pos01.760-32420.003570.389----------42.313945842.313945770263742.313945811--

18CtrlTempSV_M_str.K min12.376083-100.0001256558107908260.4312-----------9.995809127398583-9.995809127398511--

19CtrlTempSV_M_str.Kmax04.650-27480.0124877434763440.6543----------49.548480191066749.548480987548849.548480191066711--

20CtrlTempSV_M_str.K pos13.65085-200.0064740.7820-----------19.498912485-19.498912411--

21k_TempSnsrOffset_Volts_f32=>Min12.5041-160.001671050-----------15.76438941-15.76438911--

22k_TempSnsrOffset_Volts_f32=>Max03.50-25740.00256160----------74.1945674.194557189941474.1945611--

23k_TempSnsrOffset_Volts_f32=>Pos14.5064-270.0037820.512-----------26.7163564-26.7163511--

24k_TempSnsrScaling_DegpVolt_f32=>Min01.760-32460.0056230.80----------45.74134245.74134063720745.74134211--

25k_TempSnsrScaling_DegpVolt_f32=>Max12.376083-100.0046380.8200-----------8.491722483-8.491722411--

26k_TempSnsrScaling_DegpVolt_f32=>Pos04.650-27480.0036730.350----------48.622573548.622573852539148.622573511--

27All min000-40-500.00012565581079082600-----------49.9937172094605-49.9937171936035-49.993717209460511--

28All max1511501500.0124877434763441200----------80015015011--








































































































































































































































Sheet 8: CtrlTemp_Per1() P

CtrlTemp_Per1TS--


















PI/P1I/P2I/PI/PI/PI/PI/PI/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionDiagStsTempRdPrf_Cnt_lgcTemperatureADC_Volt_f32k_TempSnsrFiltDft_Cnt_lgck_TempSnsrDefVal_DegC_f32CtrlTempSV_M_str.SVCtrlTempSV_M_str.Kk_TempSnsrOffset_Volts_f32k_TempSnsrScaling_DegpVolt_f32CtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.SVRte_Call_CtrlTemp_Per1_CP0_CheckpointReachedRte_Call_CtrlTemp_Per1_CP1_CheckpointReachedCtrlTemp_DegC_M_f32FiltMeasTemp_DegC_f32CtrlTempSV_M_str.SVRte_Call_CtrlTemp_Per1_CP0_CheckpointReachedRte_Call_CtrlTemp_Per1_CP1_CheckpointReachedP/FCPU Cycles
1(TRUE != k_TempSnsrFiltDft_Cnt_lgc)= False
and
(TRUE == DiagStsTempRdPrf_Cnt_T_lgc)=False
021-27-420.00724260.220----------3636-4211--

2(TRUE != k_TempSnsrFiltDft_Cnt_lgc) = True
and
(TRUE == DiagStsTempRdPrf_Cnt_T_lgc)=True
130112450.006430.450----------45.5465511245.5465511--

3Var < Low=True001-27-420.0072426151-----------51-50-4211--








































































































































































































































Sheet 9: CtrlTemp_Per2




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
CtrlTemp_Per2B29CtrlTemp_DegC_M_f32CtrlTempErrorAcc_Cnt_M_u16Call_NxtrDiagMgr_SetNTCStatus
CtrlTemp_Per2P5CtrlTempErrorAcc_Cnt_M_u16Ip_NTCRte_Call_CtrlTemp_Per2_CP0_CheckpointReached



k_TempSensLowLimit_DegC_f32Ip_ParamRte_Call_CtrlTemp_Per2_CP1_CheckpointReached



k_TempSensHighLimit_DegC_f32Ip_Status



k_TempSensDiag_Cnt_str.Threshold




k_TempSensDiag_Cnt_str.Pstep




k_TempSensDiag_Cnt_str.Nstep


Sheet 10: CtrlTemp_Per2() P

CtrlTemp_Per2TS--





















PI/P1I/P2I/P3I/P4I/P5I/P6I/P7O/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionCtrlTemp_DegC_M_f32CtrlTempErrorAcc_Cnt_M_u16k_TempSensLowLimit_DegC_f32k_TempSensHighLimit_DegC_f32k_TempSensDiag_Cnt_str.Thresholdk_TempSensDiag_Cnt_str.Pstepk_TempSensDiag_Cnt_str.NstepCtrlTempErrorAcc_Cnt_M_u16Ip_NTCIp_ParamIp_StatusCall_NxtrDiagMgr_SetNTCStatusRte_Call_CtrlTemp_Per2_CP0_CheckpointReachedRte_Call_CtrlTemp_Per2_CP1_CheckpointReachedCtrlTempErrorAcc_Cnt_M_u16Ip_NTCIp_ParamIp_StatusCall_NxtrDiagMgr_SetNTCStatusRte_Call_CtrlTemp_Per2_CP0_CheckpointReachedRte_Call_CtrlTemp_Per2_CP1_CheckpointReachedP/FCPU Cycles
1((k_TempSensLowLimit_DegC_f32 <= CtrlTemp_DegC_M_f32) And (CtrlTemp_DegC_M_f32 <= k_TempSensHighLimit_DegC_f32))=True
and
(DiagFailed_m(CntrlTempErrorAcc_Cnt_M_u16, k_TempSensDiag_Cnt_str) = True)=True
-405678-441604021--------------56776911110--

2((k_TempSensLowLimit_DegC_f32 <= CtrlTemp_DegC_M_f32) And (CtrlTemp_DegC_M_f32 <= k_TempSensHighLimit_DegC_f32))=True
and
(DiagFailed_m(CntrlTempErrorAcc_Cnt_M_u16, k_TempSensDiag_Cnt_str) = True)=False
300-441604021--------------06910110--

3((k_TempSensLowLimit_DegC_f32 <= CtrlTemp_DegC_M_f32) And (CtrlTemp_DegC_M_f32 <= k_TempSensHighLimit_DegC_f32))=False
and
(DiagFailed_m(CntrlTempErrorAcc_Cnt_M_u16, k_TempSensDiag_Cnt_str) = True)=True
-401111-301604021--------------406911110--

4((k_TempSensLowLimit_DegC_f32 <= CtrlTemp_DegC_M_f32) And (CtrlTemp_DegC_M_f32 <= k_TempSensHighLimit_DegC_f32))=False
and
(DiagFailed_m(CntrlTempErrorAcc_Cnt_M_u16, k_TempSensDiag_Cnt_str) = True)=False
-4030-301604021--------------326910110--

5((k_TempSensLowLimit_DegC_f32 <= CtrlTemp_DegC_M_f32) And (CtrlTemp_DegC_M_f32 <= k_TempSensHighLimit_DegC_f32))=False
and
(DiagFailed_m(CntrlTempErrorAcc_Cnt_M_u16, k_TempSensDiag_Cnt_str) = True)=False
-3530-44-404021--------------326910110--






































































































































































































































































Sheet 11: CtrlTemp_Per2() B

CtrlTemp_Per2TS--





















BI/P1I/P2I/P3I/P4I/P5I/P6I/P7O/PO/PO/PO/PFunc Stub
Counter
Func Stub
Counter
Func Stub
Counter
Expected
O/P
Expected
O/P
Expected
O/P
Expected
O/P
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionCtrlTemp_DegC_M_f32CtrlTempErrorAcc_Cnt_M_u16k_TempSensLowLimit_DegC_f32k_TempSensHighLimit_DegC_f32k_TempSensDiag_Cnt_str.Thresholdk_TempSensDiag_Cnt_str.Pstepk_TempSensDiag_Cnt_str.NstepCtrlTempErrorAcc_Cnt_M_u16Ip_NTCIp_ParamIp_StatusCall_NxtrDiagMgr_SetNTCStatusRte_Call_CtrlTemp_Per2_CP0_CheckpointReachedRte_Call_CtrlTemp_Per2_CP1_CheckpointReachedCtrlTempErrorAcc_Cnt_M_u16Ip_NTCIp_ParamIp_StatusCall_NxtrDiagMgr_SetNTCStatusRte_Call_CtrlTemp_Per2_CP0_CheckpointReachedRte_Call_CtrlTemp_Per2_CP1_CheckpointReachedP/FCPU Cycles
1CtrlTemp_DegC_M_f32 min-50164-47-3848228231--------------486911110--

2CtrlTemp_DegC_M_f32 max150257111174193223165--------------926910110--

3CtrlTemp_DegC_M_f32 zero03456-37-28162215252--------------1626911110--

4CtrlTemp_DegC_M_f32 neg-102345143155136147248--------------1366911110--

5CtrlTemp_DegC_M_f32 pos201234-45-18127158238--------------1276911110--

6CtrlTempErrorAcc_Cnt_M_u16 min3001532247147217--------------1476910110--

7CtrlTempErrorAcc_Cnt_M_u16 max-3565535-35-37237190176--------------2376911110--

8CtrlTempErrorAcc_Cnt_M_u16 pos1001000237925017427--------------2506911110--

9k_TempSensLowLimit_DegC_f32min-115323-50-2721736185--------------2176911110--

10k_TempSensLowLimit_DegC_f32 max11176518074222174153--------------2226911110--

11k_TempSensLowLimit_DegC_f32zero-222310-3618520122--------------1856911110--

12k_TempSensLowLimit_DegC_f32neg12678-44221588799--------------1586911110--

13k_TempSensLowLimit_DegC_f32 pos-3332126-441387688--------------1086910110--

14k_TempSensHighLimit_DegC_f32 min28568-10-501746555--------------1746911110--

15k_TempSensHighLimit_DegC_f32max-15800361801535466--------------1536911110--

16k_TempSensHighLimit_DegC_f32zero793242-2001114975--------------1116911110--

17k_TempSensHighLimit_DegC_f32neg-3624276-28964342--------------966911110--

18k_TempSensHighLimit_DegC_f32pos3725629160893249--------------2076911110--

19k_TempSensDiag_Cnt_str.Threshold min85123185-106838--------------06911110--

20k_TempSensDiag_Cnt_str.Threshold max357898-40332552626--------------2556911110--

21k_TempSensDiag_Cnt_str.Threshold pos-2821348-254045138--------------406911110--

22k_TempSensDiag_Cnt_str.Pstep min44213-54410138--------------756911110--

23k_TempSensDiag_Cnt_str.Pstepmax-2978937-1121255126--------------216911110--

24k_TempSensDiag_Cnt_str.Pstep pos66567-1555322123--------------326911110--

25k_TempSensDiag_Cnt_str.Nstep min-3645344-2244150--------------446911110--

26k_TempSensDiag_Cnt_str.Nstep max77565-25665628255--------------566911110--

27k_TempSensDiag_Cnt_str.Nstep pos-24453479-3367491--------------676911110--

28All min-500-50-50000--------------06911110--

29All max15065535180180255255255--------------2556911110--