ZCU102+AD9082 Matlab Communication Toolbox Support - Hardware Setup Issue

I am trying to use Matlab to stream data for ZCU102+AD9082: https://wiki.analog.com/resources/tools-software/hsx-toolbox  Matlab version 2020.b, zcu102 rev1.1, AD9082.

After installing the "Communications Toolbox Support Package for Xilinx Zynq-Based Radio", The hardware setup pops up to let me do some configurations, write the SD card, and boot the board. In the "Verify Radio Connection" section, the "Test data path between host and RF card" didn't pass with error msg: Error receiving data from the RF card. The Done LED and DS44 LED on zcu102 are on and normal, But the HMC_STATUS LED on the AD9082 board is on and RED. It is similar to last week when I was trying to set up the Linux image but the device tree/HDFs are from AD9081 instead of AD9082: https://ez.analog.com/fpga/f/q-a/547029/ad9082-zcu102-hmc_status-red-led-is-on/424651#424651

I guess there is a mismatch between the hardware data lanes and the device tree/HDF. 

Is there any working solution for using matlab with ZCU102+AD9082?

Thanks,

Jiachen

Top Replies

Parents Reply
  • Thanks. I encountered another problem and I didn't find similar posts.

    I am trying to use DMA to stream the data with this segment of the code (mostly from line 109 of https://github.com/analogdevicesinc/HighSpeedConverterToolbox/blob/master/test/AD9081HWTests.m ):


    %% TX
    tx = adi.AD9081.Tx('num_data_channels',2,'num_coarse_attr_channels',2,'num_fine_attr_channels',2);
    tx.uri = uri;
    tx.DataSource = 'DMA';
    tx.NCOEnables = [1 0];
    tx.EnabledChannels = [1];
    tx.MainNCOFrequencies = TX_MainNCOFreq; %[1000e6 1000e6]
    tx.EnableCyclicBuffers = true;
    amplitude = 2^15; frequency = 40e6;
    swv1 = dsp.SineWave(amplitude, frequency);
    swv1.ComplexOutput = false;
    swv1.SamplesPerFrame = 2^20;
    swv1.SampleRate = 1e9;
    y1 = swv1();
    tx(y1);

    But got error:

    >> Untitled2
    Error using matlabshared.libiio.base/cstatusid
    Failed to setup kernel buffers.
    
    Error in matlabshared.libiio.base/configureKernBuffers
    
    Error in matlabshared.libiio.base/setupImpl
    
    Error in adi.common.RxTx/setupImpl (line 117)
                setupImpl@matlabshared.libiio.base(obj);
    
    Error in adi.common.Tx/setupImpl (line 23)
                setupImpl@adi.common.RxTx(obj);
    
    Error in Untitled2 (line 22)
    tx(y1);

    I am using Matlab 2020b with Communication toolbox 20.2.3 and HighSpeedConverter Toolbox 20.2.1.

    Jiachen

Children