2025-01-29 02:39 PM
I'm trying to add an LIS2MDL (STEVAL-MKI181V1) magnetometer to my LSM6DSV32X's (STEVAL-MKI240KA) sensor hub. I can't get the LSM6DSV32X to properly identify the LIS2MDL, and I'm not sure if it's a hardware- or firmware-related problem. My current hardware configuration is:
For context I'm using Zephyr RTOS, but the initialization sequence for the LSM6DSV32X should be the same, especially since it fails right at the beginning when attempting to identify slaves. From the LA output, it looks like the LSM6DSV32X is trying to communicate with the external sensor but it can't sufficiently drive its SCx/SDx pins?
2025-01-30 07:40 AM
Hi @rbmarcus ,
Your hardware configuration seems correct, but ensure that there are pull-up resistors on the I2C lines (SCL and SDA). Please refer to the section 7 of AN6016 where the sensor hub mode is well described: