cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AH

Samuel Schalkwyk
Associate

Good day

I have a STEVAL-MKI173V1 which is for the LSM303AH.

I have to integrate this on a project in VS code, as there is no Zephyr driver for this, I am trying to implement this directly on I2C.

The device has two addresses one for the accel and the other for the magn, the supplied addresses 

/** I2C Device Address 8 bit format **/
#define LSM303AH_I2C_ADD_XL       0x3B
#define LSM303AH_I2C_ADD_MG       0x3D
does not respond when a "device is ready" check is done, I don't see any other addresses in the datasheet.
 
I got these from the header file, supplied under HAL

I must be missing something, I have tested other I2C devices on the same port and it works just fine.
 
Thanks in advance
 
Sam
1 REPLY 1
Foued_KH
ST Employee

Hello @Samuel Schalkwyk , 

Could you please check this section in the datasheet : https://www.st.com/resource/en/datasheet/lsm303ah.pdf

Foued_KH_0-1698659151721.png

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.