Skip to main content
Visitor II
February 24, 2023
Question

step counter detection not working on lsm6dsr

  • February 24, 2023
  • 1 reply
  • 761 views

Enabling "step counter detection" on lsm6dsr using the application note [1] "basic SW routine" does not seem to work (1-13 routine steps). Device always reads the value: 2C00h from registers 62h and 63h. Any pointers on how to debug the issue?

[1]: https://www.st.com/resource/en/application_note/an5358-lsm6dsr-alwayson-3d-accelerometer-and-3d-gyroscope-stmicroelectronics.pdf

    This topic has been closed for replies.

    1 reply

    ST Employee
    March 2, 2023

    Hi @AHuta.1​ ,

    you might try with this C sample code on Github --> lsm6dsr_fifo_****.c

    This file is built to read step count from FIFO, should be better in terms of optimization than the use case in the application note.

    -Eleon