Barometer & Pressure

Bosch Sensortec BMP388 digital twin

24-bit barometric pressure and temperature sensor (±8 Pa relative).

standing: provisionalI2C / SPII2C 0x76 / 0x77; SPI Mode 0/3
VendorBosch SensortecBarometer & Pressure
InterfaceI2C / SPII2C 0x76 / 0x77; SPI Mode 0/3
Record Status2026-11-19rev c3f5f9950 (clean tree)

Driver oracle & capability record

Part of the 27-part, 44-case twin-factory oracle suite (44/44 passed, generator 0.1.0+policy.12).

Driver referenceTwin-factory vendor-driver oracle (0.1.0+policy.12)
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordaccuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5)

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x00CHIP_ID0x50BMP388 chip identifier
0x04–0x09DATA_0..DATA_524-bit unsignedUncompensated pressure and temperature
0x31–0x45NVM_PAR_T1..P11Factory trimCalibration coefficients for compensation math

Attach with ct CLI

Shell - run firmware with BMP388
# Run compiled firmware with BMP388 attached on nucleo-h743zi2
ct run --json --board nucleo-h743zi2 --device bmp388 build/app.elf

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

Fault-injection test snippet (suite.yaml)

tests/bmp388-fault.suite.yaml
version: 1
board: nucleo-h743zi2
firmware: build/app.elf
tests:
  - name: bmp388-i2c-nack-and-bad-id
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x76
        count: 2
      - at_ms: 150
        part: bmp388
        kind: register_override
        register: 0x00
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_DETECTED"
      exit_code: 0

Compatible board twins

More in Barometer & Pressure