Skip to content

Latest commit

 

History

History
138 lines (97 loc) · 5.6 KB

openiotsdk_platform_overview.md

File metadata and controls

138 lines (97 loc) · 5.6 KB

Open IoT SDK platform port

This platform is based on Open IoT SDK. Open IoT SDK is a reference implementation of Open-CMSIS-CDI which defines a common device interface for microcontroller-based devices used in the Internet of Things. It is delivered as a framework of software components with a set of feature-rich example applications.

Building

Open IoT SDK uses CMake as its build system. To integrate with Matter's GN build system our top level CMakeLists.txt generates GN configuration files that pass on the required configs required by the GN build.

Targets

Supported targets are the ones supported by the Open IoT SDK. Currently it ships with support for Corstone-300 and Corstone-310. This platform makes no assumption on the target and will support any targets added to Open IoT SDK.

Fast model network

The fast models of supported platforms have two network modes:

  • user mode networking - emulates a built-in IP router and DHCP server, and routes TCP and UDP traffic between the guest and host. It uses the user mode socket layer of the host to communicate with other hosts. See more details: User mode networking

  • TAP/TUN networking mode - set fast model to host bridge component which acts as a networking gateway to exchange Ethernet packets with the TAP device on the host, and to forward packets to model. See more details TAP/TUN networking mode

Due the user mode limitations, the TAP/TUN networking mode is preferred for implementing IP communication for a Matter project.

RTOS

Open IoT SDK uses CMSIS-RTOS2 API as its RTOS API. It offers the choice of implementation between FreeRTOS or CMSIS RTX but this is hidden below the API so your choice has no bearing on this port and indeed your application may provide your own implementation entirely.

Connectivity

The platform currently only offers connectivity through the Ethernet interface. This is limited by current support for network interfaces in Open IoT SDK.

This means that commissioning is simplified since no provisioning is required to provide the device with network credentials.

LWIP is used in the implementation of endpoints as the IP stack. LWIP library is provided through the Open IoT SDK.

Mbed TLS

Mbed TLS is provided through the Open IoT SDK, the Matter version is not used. Configuration of Mbed TLS is in config/openiotsdk/mbedtls.

Storage

The application uses Trusted Firmware-M and TF-M Protected Storage Service is used for persistence in secure memory. The key-value objects are stored in a secure part of flash memory and the Protected Storage Service takes care of their encryption and authentication.


NOTE

On FVP Corstone targets, memory content is lost after the program exits. To achieve persistence memory regions used for the key-value storage must be saved when the execution ends.


Fast model persistent memory via files

Two command lines options can be used to achieve persistence of a specific memory regions:

  • --dump store the content of a memory region into a file when the model ends its execution
  • --data load the content of a file into a specific memory region at startup

Use the --list-memory flag to see the list of instances and memory spaces for your FVP model.

Visit the FVP command line documentation for more details about these flags.

Depending on your application, choose the right memory instance, memory space, address and size.

Clocks

Open IoT SDK does not currently offer an RTC. Matter configuration has been set accordingly and real time cannot be read from the system.

Monotonic clocks are available and are based on system tick count. They are limited by the target configuration. The current targets set the tick to 1 ms. This becomes the lower bound for timers.

Drivers

Drivers are provided by Reference MCU-Driver-HAL driver implementation for Arm platforms which is provided by Open IoT SDK.

Trusted Firmware-M

Trusted Firmware-M (TF-M) implements the Secure Processing Environment (SPE) for Armv8-M, Armv8.1-M architectures and dual-core platforms. It is the platform security architecture reference implementation aligning with PSA Certified guidelines, enabling chips, Real Time Operating Systems and devices to become PSA Certified. TF-M relies on an isolation boundary between the Non-secure Processing Environment (NSPE) and the Secure Processing Environment (SPE).

TF-M consists of:

  • Secure Boot to authenticate NSPE and SPE images

  • TF-M Core for controlling the isolation, communication and execution within SPE and with NSPE

  • Crypto, Internal Trusted Storage (ITS), Protected Storage (PS), Firmware Update and Attestation secure services