cancel
Showing results for 
Search instead for 
Did you mean: 

why IIS3DWB timestamp values are zero ?

mete
Senior II

I have timestamp counter enabled and batching to FIFO with decimation=1. I can see the timestamp values are interleaved with the accelerometer values, but the timestamp values are always 0 like this (this is SPI trace):

22 00 00 00 00 00 0A
12 32 F7 2F FC 9A 41
24 00 00 00 00 00 0A
14 DE F6 AE FC 94 43
27 00 00 00 00 00 0A
17 9B F6 3E FC 23 40
21 00 00 00 00 00 0A
11 EE F6 46 FC A6 42
22 00 00 00 00 00 0A
12 49 F7 54 FC 69 42

The last byte 0A contains I guess the BDL (1010), and tag sensor is 0x4 so it should be timestamp value but why does it contain only zeroes ?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Federica Bossi , sorry my mistake as expected, I miswrote the address of the register where timestamp counter is enabled.

View solution in original post

4 REPLIES 4
Federica Bossi
ST Employee

Hi @mete ,

Can you share a reg dump? I need to see what are you writing in each register.

Thanks

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Federica Bossi , sorry my mistake as expected, I miswrote the address of the register where timestamp counter is enabled.

Ginkgo
Associate II

Hi @mete and @Federica Bossi, I am not sure if it's ok to "reply" to a resolved topic but it seems to me I have a very similar issue with the iis2mdc magnetometer. I am able to get the values of the magnetic fields (along x,y,z) but the timestamp is always 0.

root@linux:/sys/devices/platform/soc@0/soc@0:bus@30800000/30a50000.i2c/i2c-3/3-001e/iio:device2/buffer# hexdump -C /dev/iio:\device2

00000000  85 01 20 00 34 fe 00 00  00 00 00 00 00 00 00 00  |.. .4...........|

00000010  87 01 24 00 31 fe 00 00  00 00 00 00 00 00 00 00  |..$.1...........|

 

In your answers you talk about register addresses, could you please tell me where can I check these values? 

 

Thanks

 

The register addresses are in the datasheet but I do not see timestamping is mentioned for IIS2MDC.