1 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

Shutdown Mechanisms - Rev 1<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1.0OT30-Jul-12Initial Version




























































































































































































































































































































































Sheet 2: Variable Dictionary

Shutdown Mechanisms - Rev 1

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, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables




















ESMErrOutStat_Cnt_D_u08ESMErrOutstatFDD18 ShutdownMechanismsstatus from the Error Signal ModuleDN
00110.00E+00Countsuint8







SysFault2Stat_Cnt_D_u08SysFault2StatFDD18 ShutdownMechanismsstatus of the GPIO bit for the physical SYS_FAULT2 signalDN
00880.00E+00Countsuint8







GateDrvResetStat_Cnt_D_u32GateDrvResetStatFDD18 ShutdownMechanismsstatus of the GPIO bit for the physical Gate Drive ResetDN
005242885242880.00E+00Countsuint32







NHETPwmStat_Cnt_D_u32NHETPwmStatFDD18 ShutdownMechanismsstatus of the NHET control of the Gate Drive signalsDN
0022282308222823080.00E+00Countsuint32




































































































































































































































































































































































































































































































































































































Sheet 3: Calibration Dictionary

Shutdown Mechanisms - Rev 1


N
Calibration InformationAchieved in Software Design



Y








Range





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



Calibrations
















Sheet 4: Global Constants

Shutdown Mechanisms - Rev 1








































































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























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































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.

2 - Shutdown_Mechanisms_MDD

Module –

High-Level Description

This module handles diagnostic data during an F1 fault. The actual signal control is performed in other modules which “own” the signal.

Figures

Component Diagram


Variable Data Dictionary

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

Module InputsModule Outputs
NoneNone

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.

Variable NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
ESMErrOutStat_Cnt_D_u08101SHTDNMECH_START_SEC_VAR_CLEARED_8
SysFault2Stat_Cnt_D_u08808SHTDNMECH_START_SEC_VAR_CLEARED_8
GateDrvResetStat_Cnt_D_u325242880524288SHTDNMECH_START_SEC_VAR_CLEARED_32
NHETPwmStat_Cnt_D_u3222282308022282308SHTDNMECH_START_SEC_VAR_CLEARED_32

User defined typedef definition/declaration

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

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

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.

Constant Name
None

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 NameResolutionUnitsValue
D_ESMERROUTSTAT_CNT_U081Counts0x01
D_SYSFAULT2STAT_CNT_U081Counts0x08
D_GATEDRVRESETSTAT_CNT_U321Counts0x00080000
D_NHETPWMSTAT_CNT_U321Counts0x01540044

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_ZERO_CNT_U8
D_ZERO_CNT_U32

Module specific Lookup Tables Constants

Constant NameResolutionValueSoftware Segment
None


Functions/Macros used by the Sub-Modules

Library Functions / Macros

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

  1. None

Data Hiding Functions

  1. None

Global Functions/Macros Defined by this Module

None

Local Functions/Macros Used by this MDD only

None

Software Module Implementation

Runtime Environment (RTE) Initial Values

This section lists the initial values of data written by this module but controlled by the RTE. After RTE initialization, the data in this table will contain these values.

DataValue
None

Initialization Functions

None


Periodic Functions

Per: _Per1

Design Rationale

None

Program Flow Start

Rte_Call_ShtdnMech_Per1_CP0_CheckpointReached()

Store Module Inputs to Local copies

Rte_Call_FetDrvReset_OP_GET(&FetDrvReset_Cnt_T_lgc)

Rte_Call_SysFault2_OP_GET(&SysFault2_Cnt_T_lgc)

Rte_Call_SysFault3_OP_GET(&SysFault3_Cnt_T_lgc)

Status Signals for Testing

Store Local copy of outputs into Module Outputs

None

Program Flow End

Rte_Call_ShtdnMech_Per1_CP1_CheckpointReached()


Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Transition Functions

None


Execution Requirements

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
ShtdnMech_Per110 msALL

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
ShtdnMech_Per1RTE_START_SEC_SA_SHTDNMECH_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 Version25-Jul-12OT
22.0Updates to remove NHETPINDIS, removed control of SysFault3 pin (this is handled in hardware). Only control NHET Direction on entering operate state (instead of exiting disable state) as other pins are controlled by other modules and NHET pins should remain inputs in warm init.03-Aug-12LWW
33.0Update for anomaly 3640 correction22-Aug-12LWW
44.0Added checkpoints and memmap software segment is updated for static variables27-Sep-12Selva
55.0Implemented FDD 18B v003 (removed signal control from module)17-Oct-12OT

3 - ShtdnMech_UnitTestReports


Overview

Unit Test Information
Module Definitions
Variable Range
ShtdnMech_Per1
ShtdnMech_Per1() B


Sheet 1: Unit Test Information

1.0a






















Nexteer EPS Unit Test Tool






Rev:2.7b












Name of Tester:Rajsi Tyagi
Include Files:

Code File(s) Under Test:Sa_ShtdnMech.c



Code File(s) Version:6



Module Design Document:Shutdown_Mechanisms_MDD.docx



Module Design Document Version:5



Unit Test Plan Version:2



Optimization Level:Level 2



Compiler (CodeGen) Version:TMS470_4.9.2



Model Type:Excel Macro



Model Version:




Special Test Requirements:




Test Date:11/22/2012



Comments:Note: Full range is taken for the register testing as suggested by developer.



Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

ShtdnMech_Per1ShtdnMech_Per1() B----
11
















































































































































































































































































Sheet 2: Module Definitions









































Nexteer EPS Unit Test Tool












Rev:2.7b












Module Definitions
Module Test Functions
Module Set/Read Variables
Module Function Stubs
Return TypeNameParameter Prototype
ScopeTypeNameDefault Value
Return TypeNameParameter Prototype
voidShtdnMech_Per1(void)
Muint8ESMErrOutStat_Cnt_D_u080
BooleanFetDrvReset_OP_GET(void)




Muint8SysFault2Stat_Cnt_D_u080
BooleanSysFault2_OP_GET(void)




Muint32GateDrvResetStat_Cnt_D_u320
BooleanSysFault3_OP_GET(void)




Muint32NHETPwmStat_Cnt_D_u320
voidCP0_CheckpointReached(void)




GT_NHET.UINT32NHET0.NHETDIR

voidCP1_CheckpointReached(void)

Sheet 3: Variable Range












































Nexteer EPS Unit Test Tool












Rev:2.7b
























Variable Range Definitions








Variable NameMax ValueMin Value








ESMErrOutStat_Cnt_D_u08










SysFault2Stat_Cnt_D_u08










GateDrvResetStat_Cnt_D_u32










NHETPwmStat_Cnt_D_u32










NHET0.NHETPINDIS










NHET0.NHETDIR











Sheet 4: ShtdnMech_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
ShtdnMech_Per1B11NHET0.NHETDIR
FetDrvReset_OP_GET





SysFault2_OP_GET





SysFault3_OP_GET





CP0_CheckpointReached





CP1_CheckpointReached

Sheet 5: ShtdnMech_Per1() B

ShtdnMech_Per1TS--














BI/PFunc Stub
Return Val
Func Stub
Return Val
Func Stub
Return Val
Func Stub
Counter
Func Stub
Counter
Func Stub
Counter
Func Stub
Counter
Func Stub
Counter
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionNHET0.NHETDIRFetDrvReset_OP_GETSysFault2_OP_GETSysFault3_OP_GETFetDrvReset_OP_GETSysFault2_OP_GETSysFault3_OP_GETCP0_CheckpointReachedCP1_CheckpointReachedFetDrvReset_OP_GETSysFault2_OP_GETSysFault3_OP_GETCP0_CheckpointReachedCP1_CheckpointReachedP/FCPU Cycles
1NHET0.NHETDIR min0100----------11111--

2NHET0.NHETDIR max4294967295100----------11111--

3NHET0.NHETDIR pos634636011----------11111--

4FetDrvReset_OP_GET min8696001----------11111--

5FetDrvReset_OP_GET max89202110----------11111--

6SysFault2_OP_GET min6778001----------11111--

7SysFault2_OP_GET max42344110----------11111--

8SysFault3_OP_GET min7768010----------11111--

9SysFault3_OP_GET max423454101----------11111--

10All min0000----------11111--

11All max4294967295111----------11111--