cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with reading X-axis data from LIS2MDL

MPME_240117
Associate II

The measurement data of LIS2MDL was read in the application. Both the Y and Z axes were normal, and their data changed with the position. However, the data of the X axis was abnormal, and its value was the same as TEMP_OUT. Moreover, it was not related to the position. As shown in the screenshot below.

微信图片_20250619220720_5.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Chip settings: CFG_REG_A = 0X80
Dear friends, could you please help me figure out what the problem is?

Thank you!

1 REPLY 1
Federica Bossi
ST Employee

Hi @MPME_240117 ,

Have you already used our official drivers to exclude issues related to your code?

You can find them on Github.

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.