2023-12-15 02:26 AM
Hi Experts,
I am using lis2dw12 accelerometer connected to esp32s3 and recently have got a situation which is blocking for esp32s3 to read status registers of accelerometer when LIR =1 (latched mode). I put accelerometer on stationary mode and routing the intruppt to INT1 which resets my esp32. Interrupt is working fine but when I want to read tap_source or wakeup_source or in general ALL_INT_SRC ( not pulling them. only one time) to detect the reset reason on my esp32 side, It will be hanged sometimes until esp32 watchdog happens and from that point the status register are readable since i2c is reinitiated I guess. Whould you mind please help me to underestand why acccelerometer get frozen?
Here is my configurations:
and after reboot which takes only 10ms I try to read:
2024-01-03 07:37 AM
++++++ I clean forgot to mention that if two consecutive interrupt happens ( two movements) after each configuration while accelerometer is in stationary + latched, then accelerometer gets hanged again for next read or write.