Skip to content

failure with 1MHz I2C update rate #25

@christianrauch

Description

@christianrauch

Version

1.0.9

Describe the bug

When setting the I2C rate on a Raspberry Pi 5 to 1MHz (dtparam=i2c_arm_baudrate=1000000), the mpu9250 fails with:

$ ./build/mpu9250 -e read
iic: read failed.
: Resource temporarily unavailable
mpu9250: mag read who am i failed.
mpu9250: mag init failed.
mpu9250: run failed.

It works with 400kHz (dtparam=i2c_arm_baudrate=400000).

Reproduce

In /boot/firmware/config.txt, set:

[all]
# I2C 1MHz
dtparam=i2c_arm_baudrate=1000000

Expected behavior

The library should still work.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions