AnsweredAssumed Answered

LSM6DSL on IKS01A2 board won't put gyro data into the FIFO

Question asked by Michael Moon on Feb 23, 2017
Latest reply on Feb 24, 2017 by Michael Moon

Hi all,

 

I'm playing with the LSM6DSL sensor on the IKS01A2 board.

 

I'm trying to use the FIFO to record and buffer accelerometer and gyro data.

 

The accelerometer works fine and reading the gyro registers directly gives sensible data, however the gyro data in the FIFO for all 3 axes is *always* 0x7FFF (ie MAX_INT for int16_t).

 

I have scoured the datasheet and the LSM6DSM application note and can't find any indication of why this might be happening.

 

I've tried a huge amount of various settings, with no difference in outcome, currently using:

 

X_ODR = G_ODR = FIFO_ODR = 416Hz

Decimation = 1 (no decimation) for both accelerometer and gyro.

 

Typical FIFO readout looks something like this:

 

...

Got pattern    0 value 32767 (0x7fff) from FIFO with    6 words (empty=0 smartfull=0 overrun=0 watermark=0)

Got pattern    1 value 32767 (0x7fff) from FIFO with    5 words (empty=0 smartfull=0 overrun=0 watermark=0)

Got pattern    2 value 32767 (0x7fff) from FIFO with    4 words (empty=0 smartfull=0 overrun=0 watermark=0)
Got pattern    3 value 64348 (0xfb5c) from FIFO with    3 words (empty=0 smartfull=0 overrun=0 watermark=0)
Got pattern    4 value  812 (0x032c) from FIFO with    2 words (empty=0 smartfull=0 overrun=0 watermark=0)
Got pattern    5 value 17048 (0x4298) from FIFO with    1 words (empty=0 smartfull=0 overrun=0 watermark=0)
Last packet:
    0x7fff    (Gx: 286.7112 °/s)
    0x7fff    (Gy: 286.7112 °/s)
    0x7fff    (Gz: 286.7112 °/s)
    0xfb5c    (Xx: -0.0724 G)
    0x032c    (Xy: 0.0495 G)
    0x4298    (Xz: 1.0399 G)
X_FS 2.0000G G_FS 245.0000°/s
G_direct: -1.067°/s -2.406°/s 1.566°/s

Outcomes