LSM6DSV16BX Accelerometer and Gyroscope incorrect measurments at random intervals
Hello,
I have an issue with my STM32G431 MCU communicating with an LSM6DSV16BX sensor via 4-wire SPI. The problem occurs randomly when the device is stationary and mounted securely. The gyroscope provides incorrect measurements consistently, with gy_raw_data[axis_0] always being 8192, gy_raw_data[axis_1] being something normal, and gy_raw_data[axis_3] equal to 704. Similarly, the accelerometer occasionally gives a 1g acceleration in the Y axis instead of the expected Z axis.
I have ruled out communication errors through various tests, including the use of a high-end logic analyzer. The inconsistent data from the LSM6DSV16BX sensor occurs randomly.
My question is: How can I determine if the sensor is malfunctioning? Can a self-test sequence be used to identify any errors?
