Technical data sheet & functional description
System name: SRR Financial Monolith (Embedded Bare-Metal Core)
Target architecture: ARMv8-M (Optimized for Raspberry Pi Pico 2 / Cortex-M33)
License / Status: Production-Grade / Zero-Heap Deterministic Monolith
Target platforms for publication: Zenodo (DOI registration) & Industrial Specialist Portals
1. Technical specifications & footprint
The monolith completely dispenses with operating systems, RTOS, dynamic memory management (no_std, alloc-free), and standard libraries. All calculations, cryptographic modules, and validations run deterministically and are optimized for cycle time.
Key figure
Value
specification
Compiler profile
opt-level = "z" / lto = "fat"
Maximum byte condensation with global dead code elimination
Code segment (.text)
5,920 bytes
Complete machine code including all engines and exception handlers
Telemetry segment (.telemetry)
64 bytes
Fixed RAM sector with seqlock-secured, authenticated telemetry structure
Runtime dynamics
0 heap allocations
Static buffers, compile-time stable structures (const fn)
Compilation time
< 1.0 second
Minimal translational overhead due to flat module topology
2. Core Architecture & Security Stack
- Integrity and replay protection: 64-bit challenge-response protocol via reference-compliant SipHash-2-4, combined with boot counter, generation counter and hardware-assisted entropy mixing.
- NVRAM Dual-Checkpointing: Atomic backup of portfolio states, audit logs and system flags in two redundant NVRAM slots with MAC checksum validation.
- Hardware Root of Trust: Binding of the cryptographic root keys to the unique hardware UID (HW_UID_BASE) of the MCU and generation of firmware attestation quotes.
- Numerical robustness: Consistent use of overflow safeguards (saturating_add, saturating_sub, saturating_mul) in all calculation modules.
3. Appendix: Detailed Functionality
3.1 Startup & Entropy Pooling (Hardware Hardening)
At system startup, the monolith reads the device-specific hardware ID and compares it to the mask. After successful verification, an initial entropy pool is created from three independent hardware and software sources:
- DWT cycle counter (Core Debug/Trace Register).
- Hardware TRNG (STM32/RP2350 entropy register RNG_DR).
- Stack and PC jitter (Runtime variation during initial loop iterations). This mixed entropy value generates the system-wide nonce key for the execution engine.
3.2 Cryptographic Authentication & SipHash-2-4
The SipHash 2-4 implementation operates directly on byte streams with standardized length padding. It protects both the challenge-response communication with external secure elements and the integrity of the telemetry data mirrored in RAM (TELEMETRY), which is secured via a 64-bit MAC authentication tag.
3.3 Fault forensics & exception handling
If a hardware fault occurs (e.g., HardFault, MemoryManagement or BusFault), the exception-based handler catches the incident:
- Reading the ARM backup registers
CFSR (Configurable Fault Status Register) and
MMFAR (MemManage Fault Address Register).
- Immediate writing of the error code and error address to the persistent portfolio and checkpoint structure.
- Creating a cryptographically secured NVRAM checkpoint before the forced hardware watchdog reset (WATCHDOG_CTRL).
3.4 Execution, Risk & Compliance Engines
The main loop processes market data feeds (MarketSnapshot) in each Tyk cycle, calculates weighted exposures, determines the Value at Risk (VaR) using the Cornish Fisher method, checks solvency limits (Treasury LCR/NSFR), and validates compliance and KYC/AML requirements via smart order routing. In the event of a rule violation, the system immediately switches to the Emergency Stop-Mode.
4. Abstract
Title: SRR Finance Monolith: A deterministic, 5.9 KiB bare-metal finance kernel for ARMv8-M in Rust
Summary:
This document and its accompanying source code describe a production-grade, heap-free embedded financial kernel for safety-critical microcontrollers (ARMv8-M). The monolith combines deterministic portfolio management, risk assessment (Cornish-Fisher VaR), compliance checks, SipHash-based authentication, and NVRAM-protected fault forensics in an extremely compact footprint of less than 6 KiB of .text segment. It is designed for maximum system stability without operating system overhead.
https://doi.org/10.5281/zenodo.23622320
- Creating a cryptographically secured NVRAM checkpoint before the forced hardware watchdog reset (WATCHDOG_CTRL).
- Immediate writing of the error code and error address to the persistent portfolio and checkpoint structure.
- Reading the ARM backup registers
CFSR (Configurable Fault Status Register) and
MMFAR (MemManage Fault Address Register).
- Stack and PC jitter (Runtime variation during initial loop iterations). This mixed entropy value generates the system-wide nonce key for the execution engine.
- Hardware TRNG (STM32/RP2350 entropy register RNG_DR).
- DWT cycle counter (Core Debug/Trace Register).
- Numerical robustness: Consistent use of overflow safeguards (saturating_add, saturating_sub, saturating_mul) in all calculation modules.
- Hardware Root of Trust: Binding of the cryptographic root keys to the unique hardware UID (HW_UID_BASE) of the MCU and generation of firmware attestation quotes.
- NVRAM Dual-Checkpointing: Atomic backup of portfolio states, audit logs and system flags in two redundant NVRAM slots with MAC checksum validation.
