AnsweredAssumed Answered

Is the latest libiio broken intentionally?

Question asked by EdwardK on May 5, 2016
Latest reply on May 25, 2016 by larsc

I am running Gentoo Linux OS and having issues with libiio.


To remove my OS from the equation, I am running ADI's latest image: 2015_R2-2016_04_01.img


1) Obtain sources.

git clone


2) Build libiio and iiod.

mkdir -p libiio/build

cd libiio/build



cd iiod/ && ./iiod


3) Use osc to perform test.

TX Chain:

RF BW: 18 GHz

Sampling rate: 30.72 MHz

TX1 attenuation: 0: TX2 attentuation 89


FPGA settings:

TX1: DAC Buffer Output

File Selection: LTE10.mat <- From iio_scope example waveforms.

DAC Channels: Voltage 0 and Voltage1


AD9361 Global Settings:

ENSM Mode fdd


4) Expect to see waveform on output.

Instead osc reports an error on attempt to load file.


5) git checkout 18563161daa5d61c9e404be26e714dbaf0f344f2

Repeat steps 1 thru 4 above and it works.


6) I modified the iiostream example to write the using code from osc to read in the file, and I get errno 110 TIMEOUT when using ADI HDL 2015_r2: 18563161daa5d61c9e404be26e714dbaf0f344f2 & kernel xcomm_zynq: 18563161daa5d61c9e404be26e714dbaf0f344f2


7) Note that the timeout is only if I create a cyclic buffer.


8) To compile the attached code:

gcc -o test ad9361-iiostream.c -L /usr/lib/ -liio -lm -lmatio


larsc @Paul Cercueil