2019-03-14 07:10 AM
I'm setting up LIS2DW12 to 100Hz, low power mode 1, fifo threshold 30 and fifo interrupt on INT2.
When interrupt is received by MCU (STM32L4 here) i readout register 0x2F to know how much samples is to retrieve, then retrieve them all by issuing read from address 0x28, length 6*<sample count> bytes. And i receive interrupt about 3 times per second and it almost works.
To be exact it works for about 30 seconds or so, then LIS2DW12 fails to raise interrupt.
By "pushing it" by manually connecting power supply wire for short time to INT2 line it again works, until some time it again fails.
Where should i seek a source of this problem? I have no idea for now.
2019-03-14 09:25 AM
hi, for my understanding are you in Continuous mode? I assume you configured INT2 pin by writing the INT2_FTH bit to '1' in register CTRL5_INT2_PAD_CTRL (24h). Which is the FIFO threshold flag (FIFO_FTH) when the interrupt INT2 fails?
moreover, are there hw components on INT2 (which is an in/out line, see p.16 of the ds) the electrical track?
just for debug, if INT1 is available in your app, you could try to read INT2 interrupt on it by setting 1 to INT2_ON_INT1 bit in CTRL7 (3Fh).
Regards
2019-03-15 12:19 AM
2019-03-15 12:31 AM
2019-03-15 01:47 AM