IMU & Motion

STMicroelectronics LSM6DSOX in the datasheet corpus

6-axis iNEMO inertial module with finite state machine, 9 KB FIFO and I3C/I2C/SPI interface.

standing: provisionalI2C / SPII2C 0x6A/0x6B; SPI Mode 0/3 (up to 10 MHz)
VendorSTMicroelectronicsIMU & Motion
InterfaceI2C / SPII2C 0x6A/0x6B; SPI Mode 0/3 (up to 10 MHz)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin industry datasheet corpus alongside verified LSM6DSO driver oracle registers.

Driver referenceSTMicroelectronics lsm6dsox-pid C 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
0x0FWHO_AM_I0x6CFixed ST device identifier
0x10CTRL1_XL0x00Accelerometer ODR and full-scale selection
0x11CTRL2_G0x00Gyroscope ODR and full-scale selection
0x22-0x2DOUTX_L_G..OUTZ_H_A16-bit LEGyro and accel output samples

Attach with ct CLI

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

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

Fault-injection test snippet (suite.yaml)

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

Compatible board twins

More in IMU & Motion