2026-02-04 2:28 AM - edited 2026-02-04 2:56 AM
Hello,
I am trying to use an accelerometer LIS2DUXS12 in ultralow power mode using the FIFO with a threshold. To initialize it, I configure the registers using the driver's functions in this order:
I use odr=25Hz ULP, fs = 2g.
Everything works fine as long as I set
and
but as soon as I add a divider to BDR (for example I set bdr_xl = LIS2DUX12_BDR_XL_ODR_DIV_2), the FIFO remains empty forever.
Same result if I use
I read the number of elements in FIFO after a timeout with lis2dux12_fifo_data_level_get(..)
I tried also with 3Hz ULP and the outcome is the same, so I am wondering if ultralow power mode prevents the use of FIFOx2 and/or BDR dividers, or if something is missing in my configuration. There is nothing regarding this in the datasheet and I can't find any examples.
Could someone please help?
Edit: I am using LIS2DUX12 driver even if I actually have a LIS2DUXS12 (for some project reasons), assuming nothing changes for what I am trying to do here (and it shouldn't looking at the code and datasheet).