Optical, Color & ToF

STMicroelectronics VL53L4CD in the datasheet corpus

High-accuracy 1 mm to 1300 mm FlightSense time-of-flight laser ranging sensor.

standing: provisionalI2C0x29 (7-bit default, 16-bit register index)
VendorSTMicroelectronicsOptical, Color & ToF
InterfaceI2C0x29 (7-bit default, 16-bit register index)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus alongside verified VL53L0X and VL53L1X ToF twins.

Driver referenceSTMicroelectronics VL53L4CD Ultra-Lite Driver
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
0x010F-0x0110IDENTIFICATION_MODEL_ID0xEBAA16-bit ST FlightSense model and module type ID
0x0087SYSTEM_START0x00Starts and stops continuous ranging
0x0096RESULT_DISTANCE_MM16-bit BEMeasured target distance in millimeters

Attach with ct CLI

Shell - run firmware with VL53L4CD
# Run compiled firmware with VL53L4CD attached on b-u585i-iot02a
ct run --json --board b-u585i-iot02a --device vl53l4cd build/app.elf

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

Fault-injection test snippet (suite.yaml)

tests/vl53l4cd-fault.suite.yaml
version: 1
board: b-u585i-iot02a
firmware: build/app.elf
tests:
  - name: vl53l4cd-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x29
        count: 2
      - at_ms: 140
        part: vl53l4cd
        kind: register_override
        register: 0x010F
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Optical, Color & ToF