Post Go back to editing

Unable to build adrv9002-iiostream.c

Category: Software
Product Number: AD-JUPITER-EBZ
Software Version: 2025.1

I am using AD-JUPITER-EBZ board, I have created hdl project using https://github.com/analogdevicesinc/hdl/tree/main/projects/jupiter_sdr 
and created petalinux image by following steps mentioned in  https://github.com/analogdevicesinc/meta-adi/tree/main/meta-adi-xilinx 
Using Vivado 2025.1 and petalinux 2025.1. 
in Vitis workspace to run adrv9002 stream example for adrv9002 ( https://github.com/analogdevicesinc/libiio/blob/main/examples/adrv9002-iiostream.c 
I am getting the following error. 
 
[ERROR] /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/src/helloworld.c:10:10: fatal error: iio/iio-debug.h: No such file or directory 
10 | #include <iio/iio-debug.h> 
| ^~~~~~~~~~~~~~~~~ 
compilation terminated. 
 

how to solve this issue? 
 
Iam Attaching  my errorlog

 

 --------------------------------------------------------------------------------
 [29/07/2026, 19:29:39]: Build for test1_stream_29_07_2026::build with id '129b9d29-e7dc-4bdb-9f6e-37b9b88d9a9a' started.
 --------------------------------------------------------------------------------
 -- The C compiler identification is GNU 13.3.0
 -- The CXX compiler identification is GNU 13.3.0
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working C compiler: /tools/Xilinx/2025.1/Vitis/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-gcc - skipped
 -- Detecting C compile features
 -- Detecting C compile features - done
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 -- Check for working CXX compiler: /tools/Xilinx/2025.1/Vitis/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ - skipped
 -- Detecting CXX compile features
 -- Detecting CXX compile features - done
 -- Configuring done
 -- Generating done
 -- Build files have been written to: /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build
 /tools/Xilinx/2025.1/tps/lnx64/cmake-3.24.2/bin/cmake -S/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026 -B/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build --check-build-system CMakeFiles/Makefile.cmake 0
 /tools/Xilinx/2025.1/tps/lnx64/cmake-3.24.2/bin/cmake -E cmake_progress_start /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build/CMakeFiles /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build//CMakeFiles/progress.marks
 /bin/gmake  -f CMakeFiles/Makefile2 all
 gmake[1]: Entering directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 /bin/gmake  -f CMakeFiles/test1_stream_29_07_2026.elf.dir/build.make CMakeFiles/test1_stream_29_07_2026.elf.dir/depend
 gmake[2]: Entering directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 cd /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build && /tools/Xilinx/2025.1/tps/lnx64/cmake-3.24.2/bin/cmake -E cmake_depends "Unix Makefiles" /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026 /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026 /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build/CMakeFiles/test1_stream_29_07_2026.elf.dir/DependInfo.cmake --color=
 gmake[2]: Leaving directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 /bin/gmake  -f CMakeFiles/test1_stream_29_07_2026.elf.dir/build.make CMakeFiles/test1_stream_29_07_2026.elf.dir/build
 gmake[2]: Entering directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 [ 33%] Building C object CMakeFiles/test1_stream_29_07_2026.elf.dir/src/helloworld.c.obj
 /tools/Xilinx/2025.1/Vitis/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-gcc -DVITIS_MAJOR_VERSION="" -DVITIS_MINOR_VERSION="" -DVITIS_VERSION="" -I/home/digital_c2r/AD_TEST_JUPITER_EBZ/images/linux/sdk/sysroots/cortexa72-cortexa53-amd-linux/usr/include -I/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/../../../AD_TEST_JUPITER_EBZ/images/linux/sdk/sysroots/cortexa72-cortexa53-amd-linux/usr/include -g --sysroot=/home/digital_c2r/AD_TEST_JUPITER_EBZ/images/linux/sdk/sysroots/cortexa72-cortexa53-amd-linux -Wall -Wextra -O0 -g3 -MD -MT CMakeFiles/test1_stream_29_07_2026.elf.dir/src/helloworld.c.obj -MF CMakeFiles/test1_stream_29_07_2026.elf.dir/src/helloworld.c.obj.d -o CMakeFiles/test1_stream_29_07_2026.elf.dir/src/helloworld.c.obj -c /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/src/helloworld.c
[ERROR] /home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/src/helloworld.c:10:10: fatal error: iio/iio-debug.h: No such file or directory
    10 | #include <iio/iio-debug.h>
       |          ^~~~~~~~~~~~~~~~~
 compilation terminated.
 gmake[2]: *** [CMakeFiles/test1_stream_29_07_2026.elf.dir/build.make:76: CMakeFiles/test1_stream_29_07_2026.elf.dir/src/helloworld.c.obj] Error 1
 gmake[2]: Leaving directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test1_stream_29_07_2026.elf.dir/all] Error 2
 gmake[1]: Leaving directory '/home/digital_c2r/karthik/test_29_07_2026/test1_stream_29_07_2026/build'
 gmake: *** [Makefile:91: all] Error 2
[ERROR] test1_stream_29_07_2026 build failed. 
 --------------------------------------------------------------------------------
[29/07/2026, 19:29:40]: Build for test1_stream_29_07_2026::build with id '129b9d29-e7dc-4bdb-9f6e-37b9b88d9a9a' ended.

Parents Reply
  • Hi  ,


    I am using ad_jupiter_ebz evaluation board,I am using Vivado 2025.1 and petalinux 2025.1. 
    I created hdl project using https://github.com/analogdevicesinc/hdl/tree/main/projects/jupiter_sdr   . 
    then created a PetaLinux image by following the steps provided in the meta-adi-xilinx repository https://github.com/analogdevicesinc/meta-adi/tree/main/meta-adi-xilinx  . 
    After successfully building , Created a Vitis Linux platform from that XSA. 
    Created a Linux application, Configured the generated SDK sysroot, include paths, and linked the libiio library 
    In application's src directory I Added the adrv9002-iiostream.c example from the 2023_R2 branch .
    Built the application successfully. 
    Connected to the AD-JUPITER-EBZ board using the Linux TCF Agent in Vitis. 
    Ran the application directly on the AD-JUPITER-EBZ board. 
     
    I verified the radio state using iio_info. The ADRV9002 PHY is present, and the radio is in rf_enabled mode. 
     
    However, when running the application, I consistently get the following runtime error: 
     
    configure_tx_lo, 129: INFO: adrv9002 bandwidth: 9000000 
    configure_tx_lo, 135: INFO: adrv9002 sampling_frequency: 15360000 
    main, 285: INFO: * Creating non-cyclic IIO buffers with 1 MiS 
    stream, 213: ERROR: Error refilling buf -110 
     
    I have attached: 
     
    The complete boot log (dmesg) from the board. 
    A Vitis debug screenshot showing where the application stops with the Error refilling buf -110. 

    8371.bootlog.txt

    Could you please review the attached logs and Vitis debug screenshot and let me know what could be causing this issue? Could you also suggest how to resolve the Error ?

      

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.