Skip to main content
Visitor II
August 23, 2017
Solved

How to activate Sensor Hub mode in LSM6DSL

  • August 23, 2017
  • 1 reply
  • 1327 views
Posted on August 23, 2017 at 16:50

Hi!, 

I'm trying to do bring-up of a board that has the LSM6DSL and other sensors in its sensor hub. 

I can read and write to other registers except for 

CTRL10_C (19h) and MASTER_CONFIG (1Ah) which I can only read and they are in its default values. 

I want to write to above registers to activate he sensor hub functionality. 

Both sensors in LSM6DSL are in its default power-down status when I try to write to the mentioned registers. 

Could I be missing something else to be able to write to the registers? 

Thanks!

    This topic has been closed for replies.
    Best answer by Jose Navarro
    Posted on August 25, 2017 at 00:05

    I think I know now that the mistake is on my side.  

    I was using binary to write data instead of hex.   

    Let me try again an report back. 

    1 reply

    ST Employee
    August 24, 2017
    Posted on August 24, 2017 at 10:32

    Hello Jose,

    The only thing that comes to my mind is to make sure you disabled access to embedded functions registers by resetting FUNC_CFG_EN bit in FUNC_CFG_ACCESS register (addr. 0x01). You can use the LSM6DSL_SensorHub sample application in

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-mems-xt1.html

     package (inside Projects\Multi\Examples\IKS01A2 subdirectory) and of course the

    http://www.st.com/resource/en/application_note/dm00402563.pdf

     as your references.

    I hope it will help.

    Petr

    Visitor II
    August 24, 2017
    Posted on August 24, 2017 at 16:54

    Hi Petr,

    Thanks a lot for your support!

    -Jose

    Jose NavarroAuthorAnswer
    Visitor II
    August 25, 2017
    Posted on August 25, 2017 at 00:05

    I think I know now that the mistake is on my side.  

    I was using binary to write data instead of hex.   

    Let me try again an report back.