Environment & Temperature
Analog Devices / Maxim MAX31855 digital twin
Cold-junction compensated K-type thermocouple-to-digital converter.
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 reference | libdriver/max31855 driver (commit 5f145c394) (MIT) |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Datasheet accuracy basis | thermocouple +/-2 C (K type), 0.25 C resolution; cold junction 0.0625 C resolution (MAX31855 data sheet) |
| Negative control | stimulus outside the datasheet tolerance -> oracle FAIL |
| Published record | accuracy/driver-oracles-2026-11-21.json (SHA-256 dd20a19b84c9) |
Measured driver round-trip results
| Quantity | Measured | Expected | Error | Datasheet Tolerance |
|---|---|---|---|---|
THERMOCOUPLE_mC | 100250 mC | 100250 mC | 0 mC | ±2000 mC |
JUNCTION_mC | 25062 mC | 25062 mC | 0 mC | ±63 mC |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
Bits [31:18] | TC_TEMP | 0.25 °C/LSB | 14-bit signed thermocouple temperature |
Bits [15:4] | CJ_TEMP | 0.0625 °C/LSB | 12-bit signed internal cold-junction temperature |
Bits [16, 2:0] | FAULT / SCV / SCG / OC | 0 = OK | Open-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.yamlFault-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