Skip to content

Arm-Examples/Safety-Example-STM32

Repository files navigation

Safety Example for STMicroelectronics NUCLEO-H563ZI

This repository contains examples for Keil Studio that run on the STMicroelectronics NUCLEO-H563ZI.

Quick Start

  1. Install Keil Studio for VS Code from the VS Code marketplace.
  2. Clone this Git repository into a VS Code workspace.
  3. Open the CMSIS View in VS Code and use the ... menu to choose an example via Select Active Solution from workspace.
  4. The related tools and software packs are downloaded and installed. Review progress with View - Output - CMSIS Solution.
  5. In the CMSIS view, use the Action buttons to build, load and debug the example on the hardware.

Examples

The examples can be explored using the Keil MDK Community edition that is free-to-use for training and evaluation. For evaluation purposes, the open-source variant of Keil RTX is used which offers the similar features as the commercial, safety-certified FuSa RTS. FuSa RTS is part of the Keil MDK Professional edition.

App

This is a practical demonstration of Arm FuSa RTS process isolation, using a simple traffic light controller to showcase safety classes, MPU zones, and fault handling on Cortex-M devices.

The TrafficLight.csolution.yml safety example contains:

Safety Example

Git Workflow

This repository contains multiple csolution projects and is configured as a single Git workspace for VS Code. It can be therefore effectively used with the VS Code Git integration via the following files:

  • vcpkg-configuration.json is in the workspace root directory and installs the tools for all csolution projects.
  • .gitignore excludes files that contain user specific setup, for example .vscode and *.cbuild*.yml.

Files and Directories

This is a list of the relevant files and directories.

File/Directory Content
vcpkg-configuration.json Defines the tools that the Arm Tools Environment Manager installs in VS Code.
App Contains the safety example.
.github/workflows Contains setup for the CI Build and HiL test workflows.

Issues or Questions

Use the Issues tab to raise questions or issues.

About

This repository contains functional safety related examples running on STMicroelectronics STM32 devices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages