AdaCore: Build Software that Matters
Untitled design 29

Embedded Systems Summit

Join AdaCore at Embedded Systems Summit

Event Details
  • [In-Person]
  • January 26 - January 28, 2027
  • Silicon Valley, California
  • Sonesta Silicon Valley

The Embedded Systems Summit returns to Silicon Valley for its second in-person edition, January 26–28, 2027. Built by embedded engineers for embedded engineers, it’s three days of practical talks and sessions on the technologies powering:

  • IoT
  • AI
  • Robotics
  • Automotive
  • Medical devices

AdaCore will be at the Summit, and our own Olivier Henley is presenting on January 27. His session covers how to use SPARK to catch driver misuse at build time instead of at run time. Full details are in the agenda below.

Come and find us to talk about:

  • Formal verification with SPARK, even if you’re new to it
  • Choosing between Rust, Ada, and SPARK for a new project
  • Building software for safety- and security-critical systems

Agenda

16:30 - 17:30, January 27th

Contracts Instead of Crashes: Proving a Bare-Metal I2C Driver with SPARK

A bare-metal driver checks arguments and state to catch incorrect use before it reaches the hardware. This talk shows how SPARK can move some of those checks to build time: express the driver's requirements as contracts, then prove that every caller satisfies them. Hardware errors still need run-time handling.

The example is a bare-metal I2C driver for the STM32F746, running in the Renode emulator against a BMP390 sensor. We walk through the original code, examine what the prover cannot establish, and make three changes that complete the proof. The central change is straightforward: replace a defensive check with a precondition, then verify the callers.

The result is every proof obligation discharged and the corresponding run-time checks removed. We explain what has been proved, what remains outside the proof, and how much work it took. We also compare SPARK's proof guarantees with Rust's safety guarantees, since both target the same class of bugs by different means.

Attendees will leave with a concrete example of applying contracts to a hardware abstraction layer, including the code changes and the reasoning behind them. No prior experience with SPARK or formal verification is assumed.