IMU & Motion
TDK InvenSense ICM-20948 in the datasheet corpus
9-axis IMU combining 3-axis accel, 3-axis gyro and integrated AK09916 magnetometer.
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 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). |
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.yamlFault-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