Skip to main content
Associate
October 16, 2024
Solved

LIS2MDL data never ready

  • October 16, 2024
  • 1 reply
  • 1774 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.

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

Federica Bossi
Technical Moderator
October 23, 2024

Hi @spglou ,

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
spglouAuthorBest answer
Associate
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);*/