How config IIS3DWB to FIFO mode with Watermark?
Hi, I'm trying to use the IIS3DWB as FIFO mode with a watermark.
I'm using a custom board. I double checked the hardware and guaranteed this board works well. I'm able to read/write the sensor using SPI interface and generate interrupt with wake-up int source.
To handle the sensor, I'm using the library created by ST. https://github.com/STMicroelectronics/iis3dwb
In this mode the interrupt INT1 not works well. This is my init code:
// Reset the sensor
iis3dwb_reset_set(&hAcc, PROPERTY_ENABLE);
do
{
iis3dwb_reset_get(&hAcc, &reset);
HAL_Delay(BOOT_TIME);
} while (reset);
iis3dwb_xl_data_rate_set(&hAcc, IIS3DWB_XL_ODR_26k7Hz);
iis3dwb_xl_full_scale_set(&hAcc, IIS3DWB_2g);
iis3dwb_fifo_mode_set(&hAcc, IIS3DWB_STREAM_MODE);
iis3dwb_fifo_watermark_set(&hAcc, 256);
iis3dwb_fifo_xl_batch_set(&hAcc, IIS3DWB_XL_BATCHED_AT_26k7Hz);
iis3dwb_block_data_update_set(&hAcc, 1);
int1_route.fifo_th = 1;
int1_route.fifo_ovr = 1;
int1_route.fifo_full = 1;
int1_route.fifo_bdr = 1;
iis3dwb_pin_int1_route_set(&hAcc, &int1_route);Please, could you guide me to find where is my mistake?
If possible, can anyone add a sample code for fifo mode with watermark? It will be nice!
Many thanks!

