Skip to main content
Visitor II
September 9, 2019
Question

Lis2de12 always returning 255 value using SPI communication

  • September 9, 2019
  • 1 reply
  • 1693 views

I am interfacing lis2de12 sensor with TI-CC2650 via SPI. When am trying to read the WO_AM_I register, it is returning 255 value when 0X33 is the expected value according to the datasheet. I have analyzed the protocol using analyzer and things seem to be fine there.

Below is the image showing data sent to be 143 i.e. 0X8F in order to read the contents from the WHO_AM_ register. Data received from the master is 255.

0690X00000AQtToQAL.png

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 9, 2019

    Hi @RGusa​ , a couple of questions related to the HW of your application: did you follow the schematic suggestion of Lis2de12 related steval-mki175v1? Regards

    RGusaAuthor
    Visitor II
    September 9, 2019

    Hi @Eleon BORLINI​ , yes I have followed the schematic suggestion in order to build the breakout board.And it worked perfectly when tested with Arduino example code for Lis2de12 utilising I2c.

    ST Employee
    September 9, 2019

    ​I'm wondering if the TI-CC2650 SPI configuration are well set (e.g. 16 bit or 32 bit). Did you try TI-CC2650 SPI communication with other chips?