Zephyr 2.4.0 on nRF52840 MCU. We use LSM303AGR sensor, which is supported by zephyr LIS2DH driver. The threshold exceeded interrupt from sensor are used, and after some time from booting, the device logs such error:<err> i2c_nrfx_twi: Error 195952641 on I2C line occurred for message 0
<err> lis2dh: clearing interrupt 2 failed: -5
As we have figured out, this is somehow connected with power management, which we use because it is battery powered device. When the following lines from config are deleted:
CONFIG_SYS_POWER_MANAGEMENT=y
CONFIG_SYS_POWER_SLEEP_STATES=y
CONFIG_DEVICE_POWER_MANAGEMENT=y
Has someone faced such problem, and got any solution? If there are more information needed, let me know.