cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2MDL data never ready

spglou
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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);*/

 

 

View solution in original post

2 REPLIES 2
Federica Bossi
ST Employee

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.

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);*/