Applications › Secure IoT

Secure IoT with Arm TrustZone

Connected devices keep keys and critical logic in the Secure world and run the network stack outside it. STK can schedule both worlds from one kernel.

Discuss your project See all features

The challenge

A large attack surface

Network stacks, USB and parsers are exposed. A bug there must not reveal keys or firmware-update logic.

Two worlds, one CPU

TrustZone separates Secure and Non-Secure code, but something still has to schedule threads on both sides.

Small devices

Cortex-M23 and M33-class MCUs have little flash and RAM to spare for security infrastructure.

How STK helps

Secure-only scheduling

The open-source TrustZone driver schedules Secure tasks, with independent Secure and Non-Secure MPU hardening.

Commercial

Full Secure + Non-Secure scheduling

The kernel runs in the Secure binary and schedules both worlds, with CMSE-checked NSC gateways and wrappers for tasks and sync objects. Developed on Cortex-M23/M33/M55/M85-class cores.

Commercial

Drop-in Non-Secure facade

Non-Secure code uses a Kernel facade with the familiar STK API, so application code does not need rewriting.

Networking and crypto

Third-party ports for lwIP and mbedTLS.

USB

TinyUSB port for USB device and host stacks.

Examples included

Raspberry Pi Pico 2 W examples, including TrustZone, are in the repository.

A typical setup

  1. Keep key storage, firmware-update verification and cryptography in the Secure world.

  2. Run the network stack (lwIP, TLS with mbedTLS) and the application as Non-Secure tasks that call into the Secure world through CMSE-checked gateways.

  3. Use the commercial interface so both worlds share one scheduler and Non-Secure code keeps the STK API.

  4. Restrict tasks inside each world with MPU regions and unprivileged mode.

Secure-only scheduling is part of the MIT-licensed kernel; the full Secure + Non-Secure interface is a commercial component. Contact us for details.

Building something like this?

Porting, real-time tuning, certification support and commercial components are available. See services.

Contact us

Other applications: Robotics & motor controlIndustrial automationMixed-criticality systemsBattery-powered & consumer devicesAudio & USBEducation & researchMigration from legacy RTOSAll applications