lis2mdl registers are changed after reboot

Hello everyone,

I have a question regarding the LIS2MDL sensor.

When I configure Register A, it correctly takes the value that I set. However, after the sensor initialization and boot sequence, Register A returns to its default value, even though I am not modifying it anywhere else in the code (the initial driver that change to contiunous mode etc etc) ......

As suggested, I added some debug messages (displayed in red for better visibility), and they confirm that the register is correctly configured at first, but later it unexpectedly reverts to its default value.

Has anyone encountered this behavior before, or could there be a step during initialization/boot that resets the register configuration?

Thank you.

Parents Reply Children
No Data
Related