Skip to main content
Visitor II
October 16, 2024
Solved

LIS2MDL data never ready

  • October 16, 2024
  • 1 reply
  • 1773 views

Hi,

I am trying to read data in continuous mode from the LIS2MDL on a personal board with the help of the exemple(https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lis2mdl_STdC/examples) and driver (https://github.com/STMicroelectronics/lis2mdl-pid/tree/56a8a1ddb1bd21d98151372b5fa4f48ffa9e1a39).
I am able to retrieve the ID of the chip and configure it in continous mod.
But the problem is that the data ready register always return 0x00.

    This topic has been closed for replies.
    Best answer by spglou

    Hi,

    I am using a board i made with an stm32h743vit6.

    After some change with the code i was able to get some value by removing this line in the exemple.

    /*lis2mdl_reset_set(&dev_ctx, PROPERTY_ENABLE);*/

     

     

    1 reply

    Technical Moderator
    October 23, 2024

    Hi @spglou ,

    What is your acquisition system? Are you using the STEVAL-MKI109V3?

    spglouAuthorAnswer
    Visitor II
    October 23, 2024

    Hi,

    I am using a board i made with an stm32h743vit6.

    After some change with the code i was able to get some value by removing this line in the exemple.

    /*lis2mdl_reset_set(&dev_ctx, PROPERTY_ENABLE);*/