2014-04-08 07:13 AM
Hi,
Is there an easy way to 'factory reset' the LIS3DH?Does a simple power cycle do this?I looked through the data sheet and app note and could not see this defined there.Thanks #lis3dh-reset2016-09-26 12:54 PM
I would also like to know if there is a way to reset all of the registers of the LIS3DH (including reserved) to their powerup defaults without having to power cycle the accelerometer.
I ask because I think some of our devices have become corrupted by the bug / vulnerability in the LIS3DH described in this thread:/70a26a03
It relates to using the LIS3DH on a shared SPI bus.2016-09-27 04:10 AM
You can try to reboot accelerometer memory content writing 1 to bit BOOT (MSB bit) in register CTRL_REG5_A (24h). See page 32 of the datasheet.
Best regards
Miroslav
2016-09-27 05:38 AM
Miroslav, thanks. Unfortunately this does not seem to clear/reset any of the registers marked as ''Reserved''. These have been corrupted, I think by the use of the LIS3DH on a shared SPI bus.
I need to set them back to defaults, but since they are undocumented I don't know what values to use (except from copying the values from a correctly functioning LIS3DH).Is it acceptable to simply copy the reserved register values from a correctly functioning LIS3DH, or are the values device specific ?2016-10-07 07:56 AM
It has been told to me, that to corrupt internal data by connecting the sensor on a shared SPI but is very very rare, probably impossible.
So maybe something different happened with the sensor.
If you power off and on the device and the data are still corrupted you will have to replace the sensor.
Some data are unique for each sensor (for example calibration) and they won’t be valid for different sensor.
Best regards
Miroslav