cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AGR return only zeros

netanelu
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
netanelu
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. "

View solution in original post

4 REPLIES 4
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
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. "