Environment & Temperature

Analog Devices / Maxim MAX31855 digital twin

Cold-junction compensated K-type thermocouple-to-digital converter.

standing: provisionalSPI (read-only) (SPI1 on nucleo-f767zi)SPI Mode 0 (max 5 MHz SCLK)
VendorAnalog Devices / MaximEnvironment & Temperature
InterfaceSPISPI Mode 0 (max 5 MHz SCLK)
Record Status2026-11-21rev 287d49a4a (clean tree)

Driver oracle & capability record

Driver oracle PASS: 6/6 stages passed on nucleo-f767zi; generator 0.1.0+policy.12.

Driver referencelibdriver/max31855 driver (commit 5f145c394) (MIT)
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Datasheet accuracy basisthermocouple +/-2 C (K type), 0.25 C resolution; cold junction 0.0625 C resolution (MAX31855 data sheet)
Negative controlstimulus outside the datasheet tolerance -> oracle FAIL
Published recordaccuracy/driver-oracles-2026-11-21.json (SHA-256 dd20a19b84c9)

Measured driver round-trip results

QuantityMeasuredExpectedErrorDatasheet Tolerance
THERMOCOUPLE_mC100250 mC100250 mC0 mC±2000 mC
JUNCTION_mC25062 mC25062 mC0 mC±63 mC

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
Bits [31:18]TC_TEMP0.25 °C/LSB14-bit signed thermocouple temperature
Bits [15:4]CJ_TEMP0.0625 °C/LSB12-bit signed internal cold-junction temperature
Bits [16, 2:0]FAULT / SCV / SCG / OC0 = OKOpen-circuit and short-to-VCC/GND fault bits

Attach with ct CLI

Shell - run firmware with MAX31855
# Run compiled firmware with MAX31855 attached on nucleo-f767zi
ct run --json --board nucleo-f767zi --device max31855 build/app.elf

# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/max31855.xml tests/max31855-fault.suite.yaml

Fault-injection test snippet (suite.yaml)

tests/max31855-fault.suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
  - name: max31855-spi-fault-and-stuck-sample
    faults:
      - at_ms: 40
        part: max31855
        kind: bus_disconnect
        duration_ms: 25
      - at_ms: 120
        part: max31855
        kind: frozen_reading
    expect:
      console_contains: "SENSOR_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Environment & Temperature