Skip to main content
netanelu
Associate III
Solved

LSM303AGR return only zeros

It's returning ack on the i2c on every command , and i'm getting an error if it's not the correct address.

I'm attaching image from the scope of the i2c commands and responses.

The configuration done first and then I'm reading the temperature that it always zeros.

Also when I'm reading the config registers I'm also getting zeros.

Please advice. Thanks.

    This topic has been closed for replies.
    netanelu
    netaneluBest answer
    Associate III

    Thanks you all, It been fixed.

    Need to take close look at that:

    "Registers 00h through 3Fh are dedicated to the accelerometer while registers 40h through 6Fh are dedicated to the magnetometer. "

    4 replies

    S.Ma
    Principal

    When will the I2C by SW and GPIO will be offered as utility to bringup a board with less things to worry about ?

    Eleon BORLINI
    ST Employee

    ​Hi @netanelu​ , what if you read the WHO_AM_I_A (0Fh) register? Regards

    netanelu
    netaneluAuthorBest answer
    Associate III

    Thanks you all, It been fixed.

    Need to take close look at that:

    "Registers 00h through 3Fh are dedicated to the accelerometer while registers 40h through 6Fh are dedicated to the magnetometer. "