This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: ADC buffer enable fails

Part Number: PROCESSOR-SDK-AM335X

To enable continuous mode adc in AM3354BZCZ80  I tried to do the following

echo 1 > /sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage7_en

echo 100 > /sys/bus/iio/devices/iio\:device0/buffer/length

echo 1 > /sys/bus/iio/devices/iio\:device0/buffer/enable


But the third command threw an error as    buffer not started buffer parameter update failed (-22)

 

How can this error be solved? The driver included is TI's AM335X ADC driver