uRTEDemo_03_Nucleo-F446RE_SystemStates_10_Model

Runnable

run_LED

Controls the LED signal and thus the LED

Diagrams

Safety

Required
SIL derived -
overwrite (SIL_manual) derived
reason (SIL_manual_reason)
SIL -
Achieved
SIL achieved QM
justification

Properties

Base
Namerun_LED
Type Runnable
Description

Controls the LED signal and thus the LED

User-IDRunnable_14
UID_KtLgAOTWEeyrV5NXTwe27Q
software unit configuration
Parent LED
WCET 0
Stack 0
ROM 0
runnable configuration
Has a return value false

System-States (2)

Systemstates the runnable is active in.

State isStart Runnables Tasks

In this state, an LED will blink.

true

A state that is entered if the user has pressed the button. Here, periodic UART messages are sent.

false
Ports

Ingoing Trigger Ports (1)

Trigger IN ports attached runnable run_LED.

Port Events Signal event source Container Task Guard Order
Runnable_00_blink_Tick
run_LED LED
0

Ingoing Data Ports (1)

Data IN ports attached to runnable run_LED.

Port Signals Source Container
Runnable_blink_Button_IN run_LED

Outgoing Data Ports (1)

Data OUT ports attached to runnable run_LED.

Port Signals Target Container
Runnable_00_blink_OUT run_LED

Requirement Layer

(Safety)Requirements (2)

(Safety)Requirements referencing to runnable run_LED.

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

In order to indicate that uRTE is up and running, an LED shall blink (toggle its binary state) with an frequency of 1/100ms.

Requirement_32 Thomas Barth Tue Jun 07 13:05:57 CEST 2022 0.0 Thomas Barth product functional implemented - - - -

While the button is pressed, the LED shall be on permanently.

Requirement_93 Wed Jun 08 17:18:27 CEST 2022 0.0 product functional implemented - - - -

(Safety)Requirements to guards and drivers (1)

(Safety)Requirements referencing to guards, functions and drivers

(Safety)Requirement Parent User-ID Author Creation Date Start Date Deadline Expense Responsibe Category Type Status Function Type SIL derived SIL manual SIL effective Tests Technical Functions Software 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 (1)

Technical functions referencing to runnable run_LED.

Function LFB Software Hardware Technical Functions sub Technical Functions Requirements sub Requirements

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

Technical functions to guards and drivers (1)

Technical functions referencing to guards, functions and drivers of runnable run_LED.

Function LFB Software Hardware Technical Functions sub Technical Functions Requirements sub Requirements

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

Software Layer

IN Signals (1)

Ingoing signals of runnable run_LED.

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

A representation of the current button state

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

OUT Signals (1)

Outgoing signals of runnable run_LED.

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

Hardware interface for the LED

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

Software units (1)

Software units which are associated with runnable run_LED.

Unit Parent Function calls Technical Functions Requirements Type Tasks WCET Stack ROM Globals ProtectionSets SIL req SIL ach sub Technical Functions (R) sub Requirements (R) Has a return value (R) SystemStates (R) Ingoing Trigger Ports (R) Outgoing Trigger Ports (R) Ingoing Data Ports (R) Outgoing Data Ports (R) Signals (D) Runnables (D) DataType (D) Is Synchronous (D) Hardware (D) Ports (G) Callers (F) Return Type (F) Parameters (F)

Hardware write-Interface towards the LED

LED
OutDriver 0 0 0
QM QM - - - - - - - - uRTE_boolean_t true - - - -

Tasks (1)

Tasks runnable run_LED is executed by.

Task Core SIL Priority Software States Signals Init Hardware OutputSections Own TimeBase Stack

Task responsible to let the LED blink

Arm® Cortex®-M4 SIL_1 4 - false .rtos.task.LED

DataTypes (1)

Datatypes runnable run_LED is associated with.

Type Atomic Primitive Initial value Typedef path Signals Drivers Global Variables

This type used by uRTE internally and is avaiable for general purpose. Its save to delete this type if it is not needed.

true true 0 generated at src_rte\signals\types\uRTE_boolean_t_type.h

Activation-Events (1)

Activation Events triggering the execution of runnable run_LED.

Event Type Cycle Time (C) Offset (C) Task-Init (S) Requirements Ports Runnables Tasks SystemStates SIL req SIL ach

The timebase for the LED logic. Has an bit of offset to make sure it comes after the button has been read (button value is polled).

CyclicEvent 100 2 -
  • Runnable_00_blink_Tick in run_LED
- QM

Runnables providing data (1)

Runnables providing data for runnable run_LED.

Unit Parent Function calls Technical Functions Requirements Type Tasks WCET Stack ROM Globals ProtectionSets SIL req SIL ach 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
QM 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

Hardware Layer

Hardware Components (2)

Hardware runnable run_LED is associated with. Including executing CPUs, hardware referenced by its protectionSets and driver hardware of connecting signals.

Component Type Start End SIL req SIL ach 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

LD2 [Green Led] on the Nucelo Board

Periphery GPIOA_BASE GPIOB_BASE - 1 - QM

Testing Layer

Tests (2)

Tests derived from referencing requirements.

Test User-ID Group Priority Status Procedure and Input-Data Expected Results SIL Requirements Technical-Functions Software-Units Signals Global variables Activation-Events Hardware-Components

The LED has to blink with a frequency of 1/100ms.

Test_132 0 implemented Regular power-on without user-input A blinking LED

Check if the LED is permanent on if there is user-input from the button

Test_133 0 implemented After a regular power-on, the button is pressed The LED shall be permanently on while the button is pressed