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, ®_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.