uRTEDemo_03_Nucleo-F446RE_SystemStates_10_Model

InDriver

ButtonRead

Reads the current button state from hardware

Warnings

Safety (2)

Safety Warnings for InDriver ButtonRead.
Safety warnings are related to the Requirements Layer, especially the SIL

ButtonRead has a SIL required of SIL_1 but a SIL achieved of QM
Multiple Technical functions for ButtonRead: Blinking LED, UART

Diagrams

Relationships

Safety

Required
The highest SIL derived from SafetyRequirements,Technical Functions and calling Runnables.
SIL derived
SIL_1
This attribute allows to overwrite the derived SIL level. The result is the SIL effective attribute.
SIL manual
derived
The reason why the derived SIL is ignored and an explicit SIL is set.
reason
The SIL required for this implementation unit is defined by the derived SIL but can be overwritten by "SIL manual".
SIL required
SIL_1
Achieved
The achieved SIL for this implementation unit. Has to be provided by the user.
SIL achieved
QM
A justification why a certain SIL was achieved.
justification

Properties

Base
The name of this object. Certain classes of objects require this field to be unique. Please consider that this field might be used in code and thus must not contain special characters.
Name
ButtonRead
The type of this object within the uRTE model
Type
InDriver
A descriptive text for this object. Please consider that this field might be used in code and thus must not contain special characters.
Description

Reads the current button state from hardware

A user defined ID which can be freely chosen. Please consider that this field might be used in code and thus must not contain special characters.
User-ID
InDriver_44
Each object within the uRTE model has a unique ID, this is the ID for this object
UID
_M4xQ4OZiEeyZ2OzYlvU4PA
software unit configuration
the SWC containing InDriver ButtonRead.
Parent
Button
Worst Case Execution Time
WCET
0
Stack consumption
Stack
0
ROM consumption
ROM
0
driver configuration
Datatype this driver provides/accepts.
DataType
uRTE_boolean_t
Defines if the driver provides or applies data synchronously ro asynchronously. Examples: GPIOs are typically synchronous, while communication interfaces are typically asynchrouns.
Is Synchronous
true

Hardware Components (1)

Hardware the driver communicates with.

Component Type Start End SIL required SIL achieved Sub-Components Technical Functions sub Technical Functions Requirements sub Requirements

B1 [Blue PushButton] on the Nucleo Board

Periphery GPIOC_BASE GPIOD_BASE - 1 - QM

Requirement Layer

(Safety)Requirements (1)

(Safety)Requirements referencing to InDriver ButtonRead.

(Safety)Requirement Parent User-ID Author Creation Date Start Date Deadline Expense Responsibe Category Type Status Justification Function Type SIL derived SIL manual SIL required Tests Technical Functions Software Other SW Hardware Signals Global variables Activation events Use-Cases User-Stories Refining Conflicting refined by conflicted by

How to read and write data form and to hardware.

SafetyRequirement_110 Thomas Barth Thu Jun 09 20:50:22 CEST 2022 0.0 Thomas Barth product functional approved System_Function QM derived QM

Functional Layer

Technical Functions (2)

Technical functions referencing to InDriver ButtonRead.

Function LFB Software Hardware Other Software SIL required SIL achieved SIL justification sub Technical Functions Requirements sub Requirements

An LED shall blink to indicate that the system is alive and responding.

SIL_1 QM

If the button is pressed, UART messages indicating the press duration are sent.

SIL_1 QM

Software Layer

Data-Signals (1)

DataSignals directly using InDriver ButtonRead.

Signal Storage Runnables OUT Runnables IN Tasks SystemStates Requirements miminum Age maximum Age Checksum Force Sync Inline ISR API effective inline SIL required SIL achieved Initial value (D) Pointer access (D) Datatype (D) Alt-In (D) Alt-Out (D) In-Driver (D) Out-Driver (D) OnData (D) OnError (D)

Hardware interface for the button

local in
0 2 false false false false false - QM false false uRTE_boolean_t
ButtonRead

Data-Signals (4)

DataSignals which are in the target chain of InDriver ButtonRead.

Signal Storage Runnables OUT Runnables IN Tasks SystemStates Requirements miminum Age maximum Age Checksum Force Sync Inline ISR API effective inline SIL required SIL achieved Initial value (D) Pointer access (D) Datatype (D) Alt-In (D) Alt-Out (D) In-Driver (D) Out-Driver (D) OnData (D) OnError (D)

A representation of the current button state

local in
0 105 false false false false false SIL_1 QM false false uRTE_boolean_t
-

contains the number of seconds, the button has been pressed

global in
Button
0 202 true false false false false QM QM 0 false button_cnt_t
-

Hardware interface for the LED

local in
0 0 false false false false false - QM 0 false uRTE_boolean_t
-

Hardware Out interface for UART.
No Signal-Datatype will be defined so that a typedef will be generated into the signal configuration.
Pointer access is granted so signal memory can be used directly by the application.

local in
0 0 false false false false false QM QM true
If not type is defined, a type definition template will be generated into the signal configuration file.
undefined
-

Runnables (1)

Runnables which use In- OR Out-signals with which InDriver ButtonRead is associated

Unit Parent Function calls other Software Elements Technical Functions Requirements Type Tasks WCET Stack ROM Globals ProtectionSets SIL required SIL achieved sub Technical Functions sub Requirements) Has a return value SystemStates Ingoing Trigger Ports Outgoing Trigger Ports Ingoing Data Ports Outgoing Data Ports

Acquires the button state periodically and provides button signals

Button
Runnable 0 0 0
SIL_1 QM false
  • Runnable_run_readButton_Tick
  • Runnable_run_readButton_Edge_OUT
  • run_readButton_HW_IN
  • Runnable_run_readButton_Button_OUT
  • Runnable_run_readButton_button_pressed_cnt

Runnables (3)

Runnables which are in the target chain of InDriver ButtonRead.

Unit Parent Function calls other Software Elements Technical Functions Requirements Type Tasks WCET Stack ROM Globals ProtectionSets SIL required SIL achieved sub Technical Functions sub Requirements) Has a return value SystemStates Ingoing Trigger Ports Outgoing Trigger Ports Ingoing Data Ports Outgoing Data Ports

Acquires the button state periodically and provides button signals

Button
Runnable 0 0 0
SIL_1 QM false
  • Runnable_run_readButton_Tick
  • Runnable_run_readButton_Edge_OUT
  • run_readButton_HW_IN
  • Runnable_run_readButton_Button_OUT
  • Runnable_run_readButton_button_pressed_cnt

Controls the LED signal and thus the LED

LED
Runnable 0 0 0
SIL_1 QM false
  • Runnable_00_blink_Tick
  • Runnable_blink_Button_IN
  • Runnable_00_blink_OUT

Sends UART messages periodically via the UART signal

UART
Runnable 0 0 0
SIL_1 QM
true
  • Runnable_run_UART_send_TPortIN_1
  • Runnable_run_UART_send_DPortIN_1
  • Runnable_run_UART_send_DPortIN_2
  • Runnable_run_UART_send_UART_OUT

Hardware Layer

Hardware Components (2)

Hardware InDriver ButtonRead is associated with. Including executing CPUs, hardware referenced by its protectionSets and its direct hardware references.

Component Type Start End SIL required SIL achieved Sub-Components Technical Functions sub Technical Functions Requirements sub Requirements

Arm® 32-bit Cortex®-M4 CPU with FPU, Adaptive real-time accelerator (ART Accelerator) allowing 0-wait state execution from Flash memory, frequency up to 180 MHz, MPU, 225 DMIPS/1.25 DMIPS/MHz (Dhrystone 2.1), and DSP instructions

Core - - - QM

B1 [Blue PushButton] on the Nucleo Board

Periphery GPIOC_BASE GPIOD_BASE - 1 - QM