Post Go back to editing

USRP E312/E310 Exemple HDL/no-OS Failed

Thread Summary

The user encountered initialization and configuration errors when attempting to use the AD9361 at 64 MS/s on a USRPE312 with the HDL and no-OS repositories. The final answer from the support engineer indicated that the AD9361 operates in CMOS mode on the E31X, which limits the maximum data rate to 30.72 MHz in dual channel mode, causing the initialization to fail. The user confirmed that reducing the data rate resolved the issue.
AI Generated Content
Category: Hardware
Product Number: AD9361

Dear, 

As part of my work, I am using a USRPE312 to acquire RF signals. I need to use the full data rate offered by the AD9361 integrated into this USRP (64 MS/s). To do this, I have been using your two repositories: 

I'm using Vivado/Vitis 2022.2. So I decided to clone the 2 repository on my computer and to focus on the tag: 

  • 2022_R2 for HDL Github
  • Latest for no-OS Github

First I'm compiling the HDL directory : 

git clone https://github.com/analogdevicesinc/hdl.git
cd hdl
git checkout 2022_r2_p1
cd projects/usrpe31x
make

Second I'm compiling the no-OS directory : 

git clone https://github.com/analogdevicesinc/no-OS.git
cd no-OS
git checkout Latest
cd projects/ad9361
source /<Xilinx Directory Link>/Xilinx/Vitis/2022.2/settings64.sh
make HARDWARE=../../../hdl/projects/usrpe31x/usrpe31x.sdk/system_top.xsa

Then I'm trying running example by open Vitis via :

make sdkopen HARDWARE=../../../hdl/projects/usrpe31x/usrpe31x.sdk/system_top.xsa

and connect my SmartLynq Probe to the Usrp and open an terminal to see the result. 

Finaly I Flash the bitstream on PL and I debug the PS and let's go!

On Runtime I See several failed via terminal :

Fisrt Failed in :

  • main.c : line 576 (ad9361_init(&ad9361_phy, &default_init_param);)
  • ad9361_api.c : line 556 (axi_adc_init(&phy->rx_adc, init_param->rx_adc_init);)
  • axi_adc_core.c : line 660 (ret = axi_adc_init_finish(adc);)
  • axi_adc_core.c : line 615 axi_adc_read(adc, AXI_ADC_REG_STATUS, &reg_data);
  • FAILED : cf-ad9361-lpc: Status errors

Second Failed on : 

  • main.c : line 578 (ad9361_set_tx_fir_config(ad9361_phy, tx_fir_config);)
  • FAILED : (many) Write Error -22
    cf-ad9361-lpc: Status errors
    SAMPL CLK: 61440000 tuning: RX
    0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
    0:# # # # # # # # # # # # # # # #
    1:# # # # # # # # # # # # # # # #
    ad9361_dig_tune_delay: Tuning RX FAILED!
    ad9361_init : AD936x initialization error
    Read Error -22
    Read Error -22

I find this strange because your examples worked on the USRP31x (I can vouch for that). I’m sure I must be doing something wrong, but I’m having trouble pinpointing the error. The connection between the Zynq and the AD9361 seems fine. The memory maps for the AXI seem correct. I’ve tried using other USRPE31x boards, but unfortunately I’m getting exactly the same behaviour. Do you have any idea what might be going wrong?

Regards, 

Guillaume G.

Parents Reply 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.