Barometer & Pressure

Bosch Sensortec BMP280 in the datasheet corpus

20-bit barometric pressure and temperature sensor with factory NVM calibration coefficients.

standing: provisionalI2C / SPII2C 0x76/0x77; SPI Mode 0/3
VendorBosch SensortecBarometer & Pressure
InterfaceI2C / SPII2C 0x76/0x77; SPI Mode 0/3
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Included in the CircuitTwin datasheet manifest (test-firmware/datasheets/manifest.json) for fixed-point compensation testing.

Driver referenceBosch BMP2_SensorAPI / Zephyr bme280
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0xD0id0x58Bosch BMP280 fixed chip ID
0xF4ctrl_meas0x00Temp/pressure oversampling and forced/normal mode
0x88-0xA1calib00..calib25NVM trim wordsdig_T1..T3 and dig_P1..P9 calibration coefficients
0xF7-0xFCpress / temp20-bit BEUncompensated pressure and temperature ADC registers

Attach with ct CLI

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

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

Fault-injection test snippet (suite.yaml)

tests/bmp280-fault.suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
  - name: bmp280-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x76
        count: 2
      - at_ms: 140
        part: bmp280
        kind: register_override
        register: 0xD0
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Barometer & Pressure