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: provisional I2C / SPI I2C 0x68/0x69; SPI Mode 0/3 (up to 7 MHz)

Vendor TDK InvenSense IMU & Motion

Interface I2C / SPI I2C 0x68/0x69; SPI Mode 0/3 (up to 7 MHz)

Record Status Catalog profile Datasheet / 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 reference  | InvenSense eMD / SparkFun ICM-20948 C driver                                                                                                    |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record  | Generate or inspect locally via ct twin generate (see [/docs/twin-generation](https://circuittwin.ai/docs/twin-generation)).                    |

## Key registers & reset values

| Address / Field | Register        | Reset / Expected | Purpose                             |
| --------------- | --------------- | ---------------- | ----------------------------------- |
| 0x00            | WHO\_AM\_I      | 0xEA             | Bank 0 device identifier            |
| 0x7F            | REG\_BANK\_SEL  | 0x00             | User bank selection bits \[5:4\]    |
| 0x06            | PWR\_MGMT\_1    | 0x41 (SLEEP)     | Clock source and sleep exit control |
| 0x2D-0x38       | ACCEL/GYRO\_OUT | 16-bit BE        | Accel 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

[Board: nucleo-f767zi](https://circuittwin.ai/boards/nucleo-f767zi) [Board: esp32s3-devkitc](https://circuittwin.ai/boards/esp32s3-devkitc) [Board: nrf52840-dk](https://circuittwin.ai/boards/nrf52840-dk) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in IMU & Motion

[ADXL345 (Analog)](https://circuittwin.ai/twins/adxl345) [ADXL355 (Analog)](https://circuittwin.ai/twins/adxl355) [AS5600 (ams)](https://circuittwin.ai/twins/as5600) [BMI088 (Bosch)](https://circuittwin.ai/twins/bmi088) [BMI160 (Bosch)](https://circuittwin.ai/twins/bmi160) [BMI270 (Bosch)](https://circuittwin.ai/twins/bmi270)

> ## Inject ICM-20948 bus faults in CI
>
> Wire ICM-20948 onto your MCU board twin, drive physical stimuli and fail builds when your driver hangs on NACKs or frozen registers.
>
> [Start now](https://app.circuittwin.ai/try) [Inputs & fault injection docs](https://circuittwin.ai/docs/inputs) [Connect a coding agent](https://circuittwin.ai/docs/agents)
