IMU & Motion

TDK InvenSense ICM-20948 in the datasheet corpus

9-axis IMU combining 3-axis accel, 3-axis gyro and integrated AK09916 magnetometer.

standing: provisionalI2C / SPII2C 0x68/0x69; SPI Mode 0/3 (up to 7 MHz)
VendorTDK InvenSenseIMU & Motion
InterfaceI2C / SPII2C 0x68/0x69; SPI Mode 0/3 (up to 7 MHz)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin industry datasheet corpus (IMU class, 4 banked register maps). Build a local twin via ct twin generate.

Driver referenceInvenSense eMD / SparkFun ICM-20948 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
0x00WHO_AM_I0xEABank 0 device identifier
0x7FREG_BANK_SEL0x00User bank selection bits [5:4]
0x06PWR_MGMT_10x41 (SLEEP)Clock source and sleep exit control
0x2D-0x38ACCEL/GYRO_OUT16-bit BEAccel and gyro output registers

Attach with ct CLI

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

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

Fault-injection test snippet (suite.yaml)

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

Compatible board twins

More in IMU & Motion