OsErrCallouts_MDD

High-Level Description

OsErrCallouts provides the error hook functions ErrorHook() and ProtectionHook() to provide diagnostic information for certain errors that result in calls to these hooks.

Figures

Diagram – Function Data Sharing

No Shared Data

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.

(Note: Full variable names required in table.)

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

Module InputsModule Outputs
None

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
None

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
None

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
UNUSEDINTERRUPT
STACKOVERWRITE
MPUVIOLATION
osdErrSOStackOverflow
osdErrYOStackOverflow
osdErrUEUnhandledException

Module specific Lookup Tables Constants

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

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. RednRpdShtdn()

Data Hiding Functions

  1. OSErrorGetosCANError()

Global Functions/Macros Defined by this Module

Global Function #1

Function NameErrorHookTypeDir.MinMaxUTP Tol.
Arguments PassedErrorCodeStatusTypeN/AN/A
Return ValueN/A

Design Rationale

When the error was an unhandled exception, reset with a reset cause indicating unexpected interrupt. Currently does no handling of other errors.

Description

Global Function #2

Function NameProtectionHookTypeDir.MinMaxUTP Tol.
Arguments PassedErrorCodeStatusTypeN/AN/A
Return Value<has return value defined but function does not return>ProtectionReturnTypePRO_SHUTDOWN

Design Rationale

When the protection violation was a stack fault, reset with a reset cause of STACKOVERWRITE. For any other protection violation, reset with a reset cause of MPUVIOLATION.

Description

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

None

Fault Recovery Functions

None

Shutdown Functions

None


Interrupt Functions

None

Serial Communication Functions

None

Execution Requirements

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
ErrorHookAPPLCB_CODE
ProtectionHookAPPLCB_CODE

Local Functions

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

Name of Local FunctionSoftware Segment
None


Known Issues / Limitations With Design

None


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial Revision6/26/2013KMC
Last modified October 12, 2025: Initial commit (0347a62)