Skip to main content
Visitor II
June 20, 2025
Question

Problem with reading X-axis data from LIS2MDL

  • June 20, 2025
  • 1 reply
  • 332 views

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!

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    June 26, 2025

    Hi @MPME_240117 ,

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

    You can find them on Github.