AnsweredAssumed Answered

Analog Devices ADIS16480 IMU driver

Question asked by maksimandrianov on Nov 18, 2015
Latest reply on Nov 26, 2015 by huanmolb@163.com

I have problems. I use SBC RaspberryPi 2 and Sensors ADIS16480 and ADIS16488.
Kernel version:
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 4.1.12-v7 + # 1 SMP PREEMPT Tue Nov 17 14:08:55 MSK 2015 armv7l GNU / Linux
It seems that the driver does not work consistently. Sometimes it works and sometimes breaks down the entire system with Oops.
My startup script is as follows:
#!/bin/bash

echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_x_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_y_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_z_en


echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_anglvel_x_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_anglvel_y_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_anglvel_z_en


echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_magn_x_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_magn_y_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_magn_z_en


echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_pressure0_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_temp0_en
echo "1" > /sys/bus/iio/devices/iio:device0/scan_elements/in_timestamp_en

echo "1230" > /sys/bus/iio/devices/iio:device0/sampling_frequency


echo "1024" > /sys/bus/iio/devices/iio:device0/buffer/length
echo "1" > /sys/bus/iio/devices/iio:device0/buffer/enable


The problem occurs in the beginning of the following:
echo "1" > /sys/bus/iio/devices/iio:device0/buffer/enable


fGtAhMW.jpeg

Outcomes