cancel
Showing results for 
Search instead for 
Did you mean: 

step counter detection not working on lsm6dsr

AHuta.1
Associate

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

1 REPLY 1
Eleon BORLINI
ST Employee

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