AD9467 non os drivers for zc706

Hello,

I am trying to use the non-os drivers for the AD9467 ZC706 design. Is there any user guide on how to use it??. If not, I would highly appreciate it if someone could tell me how one can import the given drivers into the Vitis application project.

Thanks in advance

regards
Prathosh T S

Top Replies

  • 0
    •  Analog Employees 
    on Apr 19, 2021 2:20 AM

    Please read the guide directly linked off the No-OS github page: https://wiki.analog.com/resources/no-os/build

    -Travis

  • Hello Travis,

    Thanks for your reply. I am not able to find out a proper no-os reference design file. 
    Please correct me if I am wrong. I wanted to use the ad9467 on zc706 and to be made accessible from the arm processor.

    1. First step I developed the block design for ad9467 using the HDL reference design.
    2. Generated bitstream successfully and exported the hardware to SDK platform
    3. So now I have to get these no-os drivers into SDK to drive the ad9467 ??

    If so, please provide me a link to proper non-os drivers for ad9467, the link provided in the https://wiki.analog.com/resources/fpga/xilinx/fmc/ad9467#using_the_software_reference_design for non-os seems not working.

    Thanks in advance.

    regards
    Prathosh T S

  • +1
    •  Analog Employees 
    on Apr 19, 2021 10:17 AM in reply to Prathosh

    Hello ,

    The easiest way to get the source files (no-OS drivers/application) into the SDK project is by following the link stated by Travis ( https://wiki.analog.com/resources/no-os/build).

    Using `make develop` as the last step it will open your project in the SDK with all the required drivers.

    Otherwise, have a look at https://github.com/analogdevicesinc/no-OS/blob/master/projects/ad9467/src/README

    This will give you a hint where you can find in the no-OS repository the drivers required for the ad9467 project so you can import them manually into your SDK project.

    Regards,

    Antoniu

  • Hello amiclaus,

    1. Thanks for your reply. I am using 2018.3v Vivado/SDK and I am using the no-OS-2019-R1 branch as it is compatible with 2018.3v of Vivado. I am trying to follow (https://wiki.analog.com/resources/no-os/build), where inside my adc9467-fmc-ebz, I can see the following files. 

    eamon@DESKTOP-D3S4RNC /c/users/eamon/desktop/no-OS-2019_R1/no-OS-2019_R1/ad9467-fmc-ebz
    $ dir
    README.md
    ad9467_fmc_ebz.c
    ad9467_fmc_ebz.mk
    config.h
    kc705
    system_top.hdf  (I manually added)
    zed

    2. As there are no specific makefile for zc706, but I managed to write one as shown below

    ## Makefile

    include ../../scripts/noos.mk

    M_HDF_FILE := $(HDL-DIR)/projects/ad9467_fmc/zc706/ad9467_fmc_zc706.sdk/system_top.hdf

    include $(NOOS-DIR)/ad9467-fmc-ebz/ad9467_fmc_ebz.mk
    include $(NOOS-DIR)/scripts/zynq_ps7.mk

    3. But again after running the make command, I am getting the following errors

    eamon@DESKTOP-D3S4RNC /c/users/eamon/desktop/no-OS-2019_R1/no-OS-2019_R1/ad9467-fmc-ebz
    $ make
    Makefile:3: ../../scripts/noos.mk: No such file or directory
    Makefile:7: /ad9467-fmc-ebz/ad9467_fmc_ebz.mk: No such file or directory
    Makefile:8: /scripts/zynq_ps7.mk: No such file or directory
    make: *** No rule to make target `/scripts/zynq_ps7.mk'. Stop.


    Thanks in advance

    regards
    Prathosh T S

  • +1
    •  Analog Employees 
    on Apr 21, 2021 10:53 AM in reply to Prathosh

    Hello ,

    We currently offer support for our latest release branch -> 2019_R2 which is compatible with Vivado 2019.1 and above.

    The build guide in the link above was done based on our latest no-OS release.

    My suggestion is to upgrade your Vivado to a newer version and use either 2019_R2 no-OS branch or the master branch.

    And if there are still issues on your side then we can intervene to solve them.

    Thank you for understanding.

    Regards,

    Antoniu

  • Hello Antoniu,

    Thanks for your reply. But from 2019.1v of Vivado they have stopped providing Xilinx SDK instead. Not only they are providing Vitis instead of sdk but, after the successful generation of the bitstream, it won't generate the ".hdf" file instead it generates the ".xsa" file. 

    Looking forward to hearing from you

    regards
    Prathosh T S

  • 0
    •  Analog Employees 
    on Apr 21, 2021 11:16 AM in reply to Prathosh

    Hello @Prathosh,

    The master branch/2019_R2 branch should work both with Xilinx SDK / Vitis (.hdf / .xsa).

    Regards,

    Antoniu

  • Hello 
    I did upgrade to 2019.1v Vivado. I am able to get the bitstream as well as .hdf file. When I am trying to build the no-os file using the make command, I am getting the following error 

    C:\Users\eamon\Desktop\no-OS-2019_R2\no-OS-2019_R2\projects\ad9467>make
    The system cannot find the path specified.
    make[1]: *** [C:/Users/eamon/Desktop/no-OS-2019_R2/no-OS-2019_R2/projects/ad9467/../../tools/scripts/windows.mk:339: create-build-dirs] Error 1
    make: *** [C:/Users/eamon/Desktop/no-OS-2019_R2/no-OS-2019_R2/tools/scripts/windows.mk:440: pre-build] Error 2

    After make, I can see the build folder but it doesn't  have .elf file

    Thanks in advance. Looking forward to hearing from you

    regards
    Prathosh T S

  • +1
    •  Analog Employees 
    on Apr 22, 2021 8:24 AM in reply to Prathosh

    Hello @Prathosh,

    We recently updated the 2019_R2 branch with a set of patches.

    Can you get the latest version of the branch locally and try again to build your project?

    Make sure that you clean your build folder (make clean_all/ make clean) before running make again.

    Regards,

    Antoniu

  • Hello

    I hope you are doing well. I appreciate your support. 
    I did download the latest version of the branch and did make, I got the following lines, it looks like it did generate the .elf file at the end but I can see 2 errors being ignored. Is that ok??

    c:\Users\eamon\Desktop\no-OS-2019_R2\no-OS-2019_R2\projects\ad9467>make clean_all
    [00:00:00] [Delete] c:/Users/eamon/Desktop/no-OS-2019_R2/no-OS-2019_R2/projects/ad9467/build

    c:\Users\eamon\Desktop\no-OS-2019_R2\no-OS-2019_R2\projects\ad9467>make
    [00:00:00] Building for xilinx
    [00:00:00] Evaluating hardware: system_top.hdf
    [00:00:00] Creating and configuring the IDE project
    [00:00:00] Linking srcs to created project
    The system cannot find the file specified.
    The system cannot find the file specified.
    The system cannot find the file specified.
    make[1]: [../../tools/scripts/generic.mk:339: update_srcs] Error 2 (ignored)
    [00:00:00] [CC] ad9467.c
    [00:00:00] [CC] axi_adc_core.c
    [00:00:00] [CC] axi_dmac.c
    [00:00:00] [CC] ad9517.c
    [00:00:00] [CC] axi_io.c
    [00:00:00] [CC] delay.c
    [00:00:00] [CC] xilinx_spi.c
    [00:00:00] [CC] spi.c
    c:/Users/eamon/Desktop/no-OS-2019_R2/no-OS-2019_R2/projects/ad9467/build/app/noos/drivers/spi/spi.c: In function 'spi_transfer':
    c:/Users/eamon/Desktop/no-OS-2019_R2/no-OS-2019_R2/projects/ad9467/build/app/noos/drivers/spi/spi.c:98:11: warning: 're
    ' may be used uninitialized in this function [-Wmaybe-uninitialized]
    int32_t ret;
    ^~~
    [00:00:00] [CC] ad9467_fmc.c
    [00:00:00] [CC] util.c
    [00:00:00] [LD] ad9467.o axi_adc_core.o axi_dmac.o ad9517.o axi_io.o delay.o xilinx_spi.o spi.o ad9467_fmc.o util.o
    make[2]: Nothing to be done for 'post_build'.
    [00:00:00] Done (build/ad9467.elf)

    Looking forward to hearing from you. Thanks in advance.

    regards
    Prathosh T S