Skip to main content
Visitor II
September 11, 2024
Question

Is LSM6DSL Zephyr driver compatible with LSM6DSM?

  • September 11, 2024
  • 1 reply
  • 661 views

Hello,

Our custom HW uses a LSM6DSM sensor.  There is no existing driving for it in Zephyr, however, the LSM6DSL sensor does. I looked at the differences between the 2 devices and it comes down to the LSM6DSM having 2 extra connection modes (Modes 3 & 4), and 4 registers that are accessible in AuxSPI mode (which we're not using).  The LSM6DSM on our board is configured for connection mode 1 and is an I2C slave to the nRF5340. Is the LSM6DSL driver compatible with the LSM6DSM? If not, is there a LSM6DSM driver for Zephyr?

The reason I'm asking this is because I had tried using the LSM6DSL Zephyr driver on my board and I'm getting an I2C write error during device initialization. I've verified that my device I2C works because I can read/write to it via the Zephyr I2C shell commands.

Thanks.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    November 8, 2024

    Hi @jkullds ,

     

    Yes, they are compatible!