Calibration of AD9371 with A10SoC board, using Linux

Hi,

I am using A10SoC Intel Board and AD9371 Daughter Card, Quartus 18.1 Prime Std. framework.

HDL_2019_R1 --> Projects --> ADRV9371X --> a10soc design for my application. By the way, my host system is Windows.

I want to calibrate AD9371 daughter card using Linux set up


1) How to generate Device Tree for above design in Quartus 18.1 Prime Std. Framework?

2) How to generate uboot for above design in Quartus 18.1 Prime Std. Framework?

3) How to build and compile linux kernel for AD9371 + A10SoC_FPGA?

4) How and in what order, to write these files in SD-Card and QSPI on my host computer?


Can anybody please help me out with the Instruction document ?

Thanks and Regards

Top Replies

Parents Reply Children
  • Hello Bogdan,

    Thanks for the link. 

    I have successfully booted linux via sdmmc on a10soc

    Now, I am trying to play with it, on windows10 using IIO_OSC Tool, but as soon as I try to connect to the board,

    it quits abruptly.

    Do you have any idea about it?

    Thanks and Regards,

    Prince

  • 0
    •  Analog Employees 
    on Feb 25, 2021 12:00 PM in reply to Prince_Punia

    Hi,

    Can you run iio_info on the board and show us what it returns?

    Thanks,
    Dragos

  • Hi Dragos,

    Below is the output of iio_info, on my board :-

    Library version: 0.21 (git tag: 565bf68)
    Compiled with backends: local xml ip
    IIO context created with local backend.
    Backend version: 0.21 (git tag: 565bf68)
    Backend description string: Linux analog 4.14.73-ltsi-ge70c7af #20 SMP Mon Feb 3 16:40:53 GMT 2020 armv7l
    IIO context has 3 attributes:
    hdl_system_id: [adv7511] on [zed] git <2e4ac278eb09c13471e381459b0da790ebad8373> clean [2019-12-05 01:36:48] UTC
    local,kernel: 4.14.73-ltsi-ge70c7af
    uri: local:
    IIO context has 4 devices:
    iio:device0: ad9528-1
    4 channels found:
    altvoltage12: DEV_SYSREF (output)
    3 channel-specific attributes found:
    attr 0: frequency value: 120000
    attr 1: phase value: 0.000000
    attr 2: raw value: 1
    altvoltage1: FMC_CLK (output)
    3 channel-specific attributes found:
    attr 0: frequency value: 122880000
    attr 1: phase value: 0.000000
    attr 2: raw value: 1
    altvoltage13: DEV_CLK (output)
    3 channel-specific attributes found:
    attr 0: frequency value: 122880000
    attr 1: phase value: 0.000000
    attr 2: raw value: 1
    altvoltage3: FMC_SYSREF (output)
    3 channel-specific attributes found:
    attr 0: frequency value: 120000
    attr 1: phase value: 0.000000
    attr 2: raw value: 1
    9 device-specific attributes found:
    attr 0: pll1_feedback_clk_present value: 1
    attr 1: pll1_locked value: 0
    attr 2: pll1_reference_clk_a_present value: 0
    attr 3: pll1_reference_clk_ab_missing value: 1
    attr 4: pll1_reference_clk_b_present value: 0
    attr 5: pll2_feedback_clk_present value: 1
    attr 6: pll2_locked value: 1
    attr 7: sync_dividers ERROR: Input/output error (-5)
    attr 8: vcxo_clk_present value: 1
    1 debug attributes found:
    debug attr 0: direct_reg_access value: 0x18
    No trigger on this device
    iio:device1: ad9371-phy
    23 channels found:
    voltage1: (input)
    9 channel-specific attributes found:
    attr 0: gain_control_mode value: manual
    attr 1: gain_control_mode_available value: manual automatic hybrid
    attr 2: hardwaregain value: 30.000000 dB
    attr 3: quadrature_tracking_en value: 1
    attr 4: rf_bandwidth value: 100000000
    attr 5: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 6: rssi value: 44.750 dB
    attr 7: sampling_frequency value: 122880000
    attr 8: temp_comp_gain value: 0.00 dB
    voltage1: (output)
    5 channel-specific attributes found:
    attr 0: hardwaregain value: -10.000000 dB
    attr 1: lo_leakage_tracking_en value: 0
    attr 2: quadrature_tracking_en value: 1
    attr 3: rf_bandwidth value: 75000000
    attr 4: sampling_frequency value: 245760000
    voltage6: (input)
    5 channel-specific attributes found:
    attr 0: gain_control_mode_available value: manual automatic hybrid
    attr 1: offset value: 45
    attr 2: raw value: 81
    attr 3: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 4: scale value: 0.775194
    voltage8: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage5: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage2: (input)
    10 channel-specific attributes found:
    attr 0: gain_control_mode value: manual
    attr 1: gain_control_mode_available value: manual automatic hybrid
    attr 2: hardwaregain value: -190.000000 dB
    attr 3: quadrature_tracking_en value: 0
    attr 4: rf_bandwidth value: 200000000
    attr 5: rf_port_select value: INTERNALCALS
    attr 6: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 7: rssi value: 40.250 dB
    attr 8: sampling_frequency value: 245760000
    attr 9: temp_comp_gain value: 0.00 dB
    voltage0: (input)
    9 channel-specific attributes found:
    attr 0: gain_control_mode value: manual
    attr 1: gain_control_mode_available value: manual automatic hybrid
    attr 2: hardwaregain value: 30.000000 dB
    attr 3: quadrature_tracking_en value: 1
    attr 4: rf_bandwidth value: 100000000
    attr 5: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 6: rssi value: 44.750 dB
    attr 7: sampling_frequency value: 122880000
    attr 8: temp_comp_gain value: 0.00 dB
    voltage9: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage4: (input)
    5 channel-specific attributes found:
    attr 0: gain_control_mode_available value: manual automatic hybrid
    attr 1: offset value: 45
    attr 2: raw value: 1267
    attr 3: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 4: scale value: 0.775194
    altvoltage1: (output)[ 42.762452] ERROR: 0: MYKONOS_setupTempSensor()

    1 channel-specific attributes found:
    attr 0: TX_LO_frequency value: 2500000000
    voltage4: (output)
    4 channel-[ 42.769892] ERROR: 0: MYKONOS_startTempMeasurement()
    specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 24[ 42.786051] ERROR: 0: MYKONOS_readTempSensor()
    5760000
    attr 3: scale value: 1.560671
    voltage3: (input)
    5 channel-specific attributes found:
    attr 0: gain_control_mode_available value: manual automatic hybrid
    attr 1: offset value: 45
    attr 2: raw value: 1063
    attr 3: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 4: scale value: 0.775194
    voltage10: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage3: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage2: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage6: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage11: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage0: (output)
    5 channel-specific attributes found:
    attr 0: hardwaregain value: -10.000000 dB
    attr 1: lo_leakage_tracking_en value: 0
    attr 2: quadrature_tracking_en value: 1
    attr 3: rf_bandwidth value: 75000000
    attr 4: sampling_frequency value: 245760000
    voltage7: (output)
    4 channel-specific attributes found:
    attr 0: offset value: 204
    attr 1: raw value: 0
    attr 2: sampling_frequency value: 245760000
    attr 3: scale value: 1.560671
    voltage5: (input)
    5 channel-specific attributes found:
    attr 0: gain_control_mode_available value: manual automatic hybrid
    attr 1: offset value: 45
    attr 2: raw value: 37
    attr 3: rf_port_select_available value: OFF INTERNALCALS OBS_SNIFFER SN_A SN_B SN_C ORX1_TX_LO ORX2_TX_LO ORX1_SN_LO ORX2_SN_LO
    attr 4: scale value: 0.775194
    altvoltage2: (output)
    1 channel-specific attributes found:
    attr 0: RX_SN_LO_frequency value: 2600000000
    altvoltage0: (output)
    1 channel-specific attributes found:
    attr 0: RX_LO_frequency value: 2500000000
    temp: (output)
    2 channel-specific attributes found:
    attr 0: raw value: 65
    attr 1: scale value: 1.000000
    9 device-specific attributes found:
    attr 0: calibrate ERROR: Input/output error (-5)
    attr 1: calibrate_rx_qec_en value: 0
    attr 2: calibrate_tx_lol_en value: 0
    attr 3: calibrate_tx_lol_ext_en value: 0
    attr 4: calibrate_tx_qec_en value: 0
    attr 5: ensm_mode value: radio_on
    attr 6: ensm_mode_available value: radio_on radio_off
    attr 7: gain_table_config ERROR: Permission denied (-13)
    attr 8: profile_config value: TB
    273 debug attributes found:
    debug attr 0: monitor_out value: 0 255
    debug attr 1: bist_tone value: 0
    debug attr 2: bist_prbs_obs value: 0
    debug attr 3: bist_prbs_rx value: 0
    debug attr 4: loopback_tx_obs value: 0
    debug attr 5: loopback_tx_rx value: 0
    debug attr 6: initialize value: 0
    debug attr 7: adi,aux-dac-vref9 value: 0
    debug attr 8: adi,aux-dac-slope9 value: 0
    debug attr 9: adi,aux-dac-value9 value: 0
    debug attr 10: adi,aux-dac-vref8 value: 0
    debug attr 11: adi,aux-dac-slope8 value: 0
    debug attr 12: adi,aux-dac-value8 value: 0
    debug attr 13: adi,aux-dac-vref7 value: 0
    debug attr 14: adi,aux-dac-slope7 value: 0
    debug attr 15: adi,aux-dac-value7 value: 0
    debug attr 16: adi,aux-dac-vref6 value: 0
    debug attr 17: adi,aux-dac-slope6 value: 0
    debug attr 18: adi,aux-dac-value6 value: 0
    debug attr 19: adi,aux-dac-vref5 value: 0
    debug attr 20: adi,aux-dac-slope5 value: 0
    debug attr 21: adi,aux-dac-value5 value: 0
    debug attr 22: adi,aux-dac-vref4 value: 0
    debug attr 23: adi,aux-dac-slope4 value: 0
    debug attr 24: adi,aux-dac-value4 value: 0
    debug attr 25: adi,aux-dac-vref3 value: 0
    debug attr 26: adi,aux-dac-slope3 value: 0
    debug attr 27: adi,aux-dac-value3 value: 0
    debug attr 28: adi,aux-dac-vref2 value: 0
    debug attr 29: adi,aux-dac-slope2 value: 0
    debug attr 30: adi,aux-dac-value2 value: 0
    debug attr 31: adi,aux-dac-vref1 value: 0
    debug attr 32: adi,aux-dac-slope1 value: 0
    debug attr 33: adi,aux-dac-value1 value: 0
    debug attr 34: adi,aux-dac-vref0 value: 0
    debug attr 35: adi,aux-dac-slope0 value: 0
    debug attr 36: adi,aux-dac-value0 value: 0
    debug attr 37: adi,aux-dac-enable-mask value: 0
    debug attr 38: adi,gpio-src-ctrl18_16 value: 0
    debug attr 39: adi,gpio-src-ctrl15_12 value: 0
    debug attr 40: adi,gpio-src-ctrl11_8 value: 0
    debug attr 41: adi,gpio-src-ctrl7_4 value: 0
    debug attr 42: adi,gpio-src-ctrl3_0 value: 0
    debug attr 43: adi,gpio-oe-mask value: 0
    debug attr 44: adi,gpio-3v3-src-ctrl11_8 value: 3
    debug attr 45: adi,gpio-3v3-src-ctrl7_4 value: 3
    debug attr 46: adi,gpio-3v3-src-ctrl3_0 value: 3
    debug attr 47: adi,gpio-3v3-oe-mask value: 0
    debug attr 48: adi,arm-gpio-tx-obs-select value: 0
    debug attr 49: adi,arm-gpio-srx-enable-ack value: 0
    debug attr 50: adi,arm-gpio-orx2-enable-ack value: 0
    debug attr 51: adi,arm-gpio-orx1-enable-ack value: 0
    debug attr 52: adi,arm-gpio-tx2-enable-ack value: 0
    debug attr 53: adi,arm-gpio-tx1-enable-ack value: 0
    debug attr 54: adi,arm-gpio-rx2-enable-ack value: 0
    debug attr 55: adi,arm-gpio-rx1-enable-ack value: 0
    debug attr 56: adi,arm-gpio-orx-mode0-pin value: 0
    debug attr 57: adi,arm-gpio-orx-mode1-pin value: 0
    debug attr 58: adi,arm-gpio-orx-mode2-pin value: 0
    debug attr 59: adi,arm-gpio-orx-trigger-pin value: 0
    debug attr 60: adi,arm-gpio-orx-pin-mode value: 0
    debug attr 61: adi,arm-gpio-tx-rx-pin-mode value: 0
    debug attr 62: adi,arm-gpio-use-tx2-enable-pin value: 0
    debug attr 63: adi,arm-gpio-use-rx2-enable-pin value: 0
    debug attr 64: adi,obs-settings-default-obs-rx-channel value: 3
    debug attr 65: adi,obs-settings-real-if-data value: 0
    debug attr 66: adi,obs-settings-sniffer-pll-lo-frequency_hz value: 2600000000
    debug attr 67: adi,obs-settings-obs-rx-lo-source value: 0
    debug attr 68: adi,obs-settings-obs-rx-channels-enable value: 31
    debug attr 69: adi,rx-settings-real-if-data value: 0
    debug attr 70: adi,rx-settings-rx-pll-lo-frequency_hz value: 2500000000
    debug attr 71: adi,rx-settings-rx-pll-use-external-lo value: 0
    debug attr 72: adi,rx-settings-rx-channels-enable value: 3
    debug attr 73: adi,tx-settings-tx2-atten_mdb value: 10000
    debug attr 74: adi,tx-settings-tx1-atten_mdb value: 10000
    debug attr 75: adi,tx-settings-tx-atten-step-size value: 0
    debug attr 76: adi,tx-settings-tx-pll-lo-frequency_hz value: 2500000000
    debug attr 77: adi,tx-settings-tx-pll-use-external-lo value: 0
    debug attr 78: adi,tx-settings-tx-channels-enable value: 3
    debug attr 79: adi,clocks-clk-pll-hs-div value: 4
    debug attr 80: adi,clocks-clk-pll-vco-div value: 2
    debug attr 81: adi,clocks-clk-pll-vco-freq_khz value: 9830400
    debug attr 82: adi,clocks-device-clock_khz value: 122880
    debug attr 83: adi,tx-profile-tx-fir-num-fir-coefs value: 16
    debug attr 84: adi,tx-profile-tx-fir-gain_db value: 6
    debug attr 85: adi,tx-profile-tx-bbf-3db-corner_khz value: 100000
    debug attr 86: adi,tx-profile-tx-dac-3db-corner_khz value: 187000
    debug attr 87: adi,tx-profile-rf-bandwidth_hz value: 200000000
    debug attr 88: adi,tx-profile-primary-sig-bandwidth_hz value: 75000000
    debug attr 89: adi,tx-profile-iq-rate_khz value: 245760
    debug attr 90: adi,tx-profile-tx-input-hb-interpolation value: 1
    debug attr 91: adi,tx-profile-thb2-interpolation value: 1
    debug attr 92: adi,tx-profile-thb1-interpolation value: 2
    debug attr 93: adi,tx-profile-tx-fir-interpolation value: 1
    debug attr 94: adi,tx-profile-dac-div value: 1
    debug attr 95: adi,sniffer-profile-rx-bbf-3db-corner_khz value: 100000
    debug attr 96: adi,sniffer-profile-rf-bandwidth_hz value: 20000000
    debug attr 97: adi,sniffer-profile-iq-rate_khz value: 30720
    debug attr 98: adi,sniffer-profile-rhb1-decimation value: 2
    debug attr 99: adi,sniffer-profile-en-high-rej-dec5 value: 0
    debug attr 100: adi,sniffer-profile-rx-dec5-decimation value: 5
    debug attr 101: adi,sniffer-profile-rx-fir-decimation value: 4
    debug attr 102: adi,sniffer-profile-adc-div value: 1
    debug attr 103: adi,obs-profile-rx-fir-num-fir-coefs value: 24
    debug attr 104: adi,obs-profile-rx-fir-gain_db value: 6
    debug attr 105: adi,obs-profile-rx-bbf-3db-corner_khz value: 100000
    debug attr 106: adi,obs-profile-rf-bandwidth_hz value: 200000000
    debug attr 107: adi,obs-profile-iq-rate_khz value: 245760
    debug attr 108: adi,obs-profile-rhb1-decimation value: 1
    debug attr 109: adi,obs-profile-en-high-rej-dec5 value: 1
    debug attr 110: adi,obs-profile-rx-dec5-decimation value: 5
    debug attr 111: adi,obs-profile-rx-fir-decimation value: 1
    debug attr 112: adi,obs-profile-adc-div value: 1
    debug attr 113: adi,rx-profile-rx-fir-num-fir-coefs value: 48
    debug attr 114: adi,rx-profile-rx-fir-gain_db value: 250
    debug attr 115: adi,rx-profile-rx-bbf-3db-corner_khz value: 100000
    debug attr 116: adi,rx-profile-rf-bandwidth_hz value: 100000000
    debug attr 117: adi,rx-profile-iq-rate_khz value: 122880
    debug attr 118: adi,rx-profile-rhb1-decimation value: 1
    debug attr 119: adi,rx-profile-en-high-rej-dec5 value: 1
    debug attr 120: adi,rx-profile-rx-dec5-decimation value: 5
    debug attr 121: adi,rx-profile-rx-fir-decimation value: 2
    debug attr 122: adi,rx-profile-adc-div value: 1
    debug attr 123: adi,obs-agc-conf-agc-enable-sync-pulse-for-gain-counter value: 0
    debug attr 124: adi,obs-agc-conf-agc-reset-on-rx-enable value: 0
    debug attr 125: adi,obs-agc-conf-agc-peak-wait-time value: 4
    debug attr 126: adi,obs-agc-conf-agc-slow-loop-settling-delay value: 3
    debug attr 127: adi,obs-agc-conf-agc-gain-update-counter value: 30720
    debug attr 128: adi,obs-agc-conf-agc-low-ths-prevent-gain-increase value: 1
    debug attr 129: adi,obs-agc-conf-agc-peak-threshold-mode value: 1
    debug attr 130: adi,obs-agc-conf-agc-obs-rx-select value: 1
    debug attr 131: adi,obs-agc-conf-agc-obs-rx-min-gain-index value: 203
    debug attr 132: adi,obs-agc-conf-agc-obs-rx-max-gain-index value: 255
    debug attr 133: adi,rx-agc-conf-agc-enable-sync-pulse-for-gain-counter value: 0
    debug attr 134: adi,rx-agc-conf-agc-reset-on-rx-enable value: 0
    debug attr 135: adi,rx-agc-conf-agc-peak-wait-time value: 2
    debug attr 136: adi,rx-agc-conf-agc-slow-loop-settling-delay value: 3
    debug attr 137: adi,rx-agc-conf-agc-gain-update-counter value: 30720
    debug attr 138: adi,rx-agc-conf-agc-low-ths-prevent-gain-increase value: 1
    debug attr 139: adi,rx-agc-conf-agc-peak-threshold-mode value: 1
    debug attr 140: adi,rx-agc-conf-agc-rx2-min-gain-index value: 195
    debug attr 141: adi,rx-agc-conf-agc-rx2-max-gain-index value: 255
    debug attr 142: adi,rx-agc-conf-agc-rx1-min-gain-index value: 195
    debug attr 143: adi,rx-agc-conf-agc-rx1-max-gain-index value: 255
    debug attr 144: adi,obs-pwr-agc-pmd-meas-config value: 2
    debug attr 145: adi,obs-pwr-agc-pmd-meas-duration value: 8
    debug attr 146: adi,obs-pwr-agc-pmd-lower-low-gain-step-recovery value: 0
    debug attr 147: adi,obs-pwr-agc-pmd-lower-high-gain-step-recovery value: 0
    debug attr 148: adi,obs-pwr-agc-pmd-upper-low-gain-step-attack value: 0
    debug attr 149: adi,obs-pwr-agc-pmd-upper-high-gain-step-attack value: 0
    debug attr 150: adi,obs-pwr-agc-pmd-lower-low-thresh value: 4
    debug attr 151: adi,obs-pwr-agc-pmd-lower-high-thresh value: 12
    debug attr 152: adi,obs-pwr-agc-pmd-upper-low-thresh value: 3
    debug attr 153: adi,obs-pwr-agc-pmd-upper-high-thresh value: 1
    debug attr 154: adi,rx-pwr-agc-pmd-meas-config value: 2
    debug attr 155: adi,rx-pwr-agc-pmd-meas-duration value: 8
    debug attr 156: adi,rx-pwr-agc-pmd-lower-low-gain-step-recovery value: 4
    debug attr 157: adi,rx-pwr-agc-pmd-lower-high-gain-step-recovery value: 2
    debug attr 158: adi,rx-pwr-agc-pmd-upper-low-gain-step-attack value: 2
    debug attr 159: adi,rx-pwr-agc-pmd-upper-high-gain-step-attack value: 4
    debug attr 160: adi,rx-pwr-agc-pmd-lower-low-thresh value: 4
    debug attr 161: adi,rx-pwr-agc-pmd-lower-high-thresh value: 12
    debug attr 162: adi,rx-pwr-agc-pmd-upper-low-thresh value: 3
    debug attr 163: adi,rx-pwr-agc-pmd-upper-high-thresh value: 1
    debug attr 164: adi,obs-peak-agc-hb2-overload-thresh-cnt value: 1
    debug attr 165: adi,obs-peak-agc-hb2-overload-duration-cnt value: 1
    debug attr 166: adi,obs-peak-agc-hb2-overload-detect-enable value: 1
    debug attr 167: adi,obs-peak-agc-hb2-fast-attack value: 0
    debug attr 168: adi,obs-peak-agc-apd-fast-attack value: 0
    debug attr 169: adi,obs-peak-agc-hb2-very-low-gain-step-recovery value: 4
    debug attr 170: adi,obs-peak-agc-hb2-low-gain-step-recovery value: 2
    debug attr 171: adi,obs-peak-agc-hb2-high-gain-step-attack value: 4
    debug attr 172: adi,obs-peak-agc-apd-low-gain-step-recovery value: 2
    debug attr 173: adi,obs-peak-agc-apd-high-gain-step-attack value: 4
    debug attr 174: adi,obs-peak-agc-hb2-very-low-thresh-exceeded-cnt value: 3
    debug attr 175: adi,obs-peak-agc-hb2-low-thresh-exceeded-cnt value: 3
    debug attr 176: adi,obs-peak-agc-hb2-high-thresh-exceeded-cnt value: 3
    debug attr 177: adi,obs-peak-agc-apd-low-thresh-exceeded-cnt value: 3
    debug attr 178: adi,obs-peak-agc-apd-high-thresh-exceeded-cnt value: 3
    debug attr 179: adi,obs-peak-agc-hb2-very-low-thresh value: 64
    debug attr 180: adi,obs-peak-agc-hb2-low-thresh value: 128
    debug attr 181: adi,obs-peak-agc-hb2-high-thresh value: 181
    debug attr 182: adi,obs-peak-agc-apd-low-thresh value: 22
    debug attr 183: adi,obs-peak-agc-apd-high-thresh value: 42
    debug attr 184: adi,rx-peak-agc-hb2-overload-thresh-cnt value: 1
    debug attr 185: adi,rx-peak-agc-hb2-overload-duration-cnt value: 1
    debug attr 186: adi,rx-peak-agc-hb2-overload-detect-enable value: 1
    debug attr 187: adi,rx-peak-agc-hb2-fast-attack value: 1
    debug attr 188: adi,rx-peak-agc-apd-fast-attack value: 1
    debug attr 189: adi,rx-peak-agc-hb2-very-low-gain-step-recovery value: 4
    debug attr 190: adi,rx-peak-agc-hb2-low-gain-step-recovery value: 2
    debug attr 191: adi,rx-peak-agc-hb2-high-gain-step-attack value: 4
    debug attr 192: adi,rx-peak-agc-apd-low-gain-step-recovery value: 2
    debug attr 193: adi,rx-peak-agc-apd-high-gain-step-attack value: 4
    debug attr 194: adi,rx-peak-agc-hb2-very-low-thresh-exceeded-cnt value: 4
    debug attr 195: adi,rx-peak-agc-hb2-low-thresh-exceeded-cnt value: 4
    debug attr 196: adi,rx-peak-agc-hb2-high-thresh-exceeded-cnt value: 6
    debug attr 197: adi,rx-peak-agc-apd-low-thresh-exceeded-cnt value: 4
    debug attr 198: adi,rx-peak-agc-apd-high-thresh-exceeded-cnt value: 6
    debug attr 199: adi,rx-peak-agc-hb2-very-low-thresh value: 64
    debug attr 200: adi,rx-peak-agc-hb2-low-thresh value: 128
    debug attr 201: adi,rx-peak-agc-hb2-high-thresh value: 181
    debug attr 202: adi,rx-peak-agc-apd-low-thresh value: 22
    debug attr 203: adi,rx-peak-agc-apd-high-thresh value: 31
    debug attr 204: adi,sniffer-min-gain-index value: 203
    debug attr 205: adi,sniffer-max-gain-index value: 255
    debug attr 206: adi,sniffer-gain-index value: 255
    debug attr 207: adi,sniffer-gain-mode value: 0
    debug attr 208: adi,orx-min-gain-index value: 237
    debug attr 209: adi,orx-max-gain-index value: 255
    debug attr 210: adi,orx2-gain-index value: 255
    debug attr 211: adi,orx1-gain-index value: 255
    debug attr 212: adi,orx-gain-mode value: 0
    debug attr 213: adi,rx2-min-gain-index value: 195
    debug attr 214: adi,rx2-max-gain-index value: 255
    debug attr 215: adi,rx1-min-gain-index value: 195
    debug attr 216: adi,rx1-max-gain-index value: 255
    debug attr 217: adi,rx2-gain-index value: 255
    debug attr 218: adi,rx1-gain-index value: 255
    debug attr 219: adi,rx-gain-mode value: 0
    debug attr 220: adi,jesd204-deframer-tx-syncb-mode value: 0
    debug attr 221: adi,jesd204-deframer-enable-auto-chan-xbar value: 0
    debug attr 222: adi,jesd204-deframer-new-sysref-on-relink value: 0
    debug attr 223: adi,jesd204-deframer-lmfc-offset value: 0
    debug attr 224: adi,jesd204-deframer-invert-lane-polarity value: 0
    debug attr 225: adi,jesd204-deframer-eq-setting value: 1
    debug attr 226: adi,jesd204-deframer-deserializer-lane-crossbar value: 228
    debug attr 227: adi,jesd204-deframer-deserializer-lanes-enabled value: 15
    debug attr 228: adi,jesd204-deframer-external-sysref value: 1
    debug attr 229: adi,jesd204-deframer-scramble value: 1
    debug attr 230: adi,jesd204-deframer-k value: 32
    debug attr 231: adi,jesd204-deframer-m value: 4
    debug attr 232: adi,jesd204-deframer-lane0-id value: 0
    debug attr 233: adi,jesd204-deframer-device-id value: 0
    debug attr 234: adi,jesd204-deframer-bank-id value: 0
    debug attr 235: adi,jesd204-obs-framer-over-sample value: 0
    debug attr 236: adi,jesd204-obs-framer-rx-syncb-mode value: 0
    debug attr 237: adi,jesd204-obs-framer-obs-rx-syncb-select value: 1
    debug attr 238: adi,jesd204-obs-framer-enable-auto-chan-xbar value: 0
    debug attr 239: adi,jesd204-obs-framer-new-sysref-on-relink value: 0
    debug attr 240: adi,jesd204-obs-framer-lmfc-offset value: 0
    debug attr 241: adi,jesd204-obs-framer-invert-lane-polarity value: 0
    debug attr 242: adi,jesd204-obs-framer-pre-emphasis value: 4
    debug attr 243: adi,jesd204-obs-framer-serializer-amplitude value: 22
    debug attr 244: adi,jesd204-obs-framer-serializer-lane-crossbar value: 228
    debug attr 245: adi,jesd204-obs-framer-serializer-lanes-enabled value: 12
    debug attr 246: adi,jesd204-obs-framer-external-sysref value: 1
    debug attr 247: adi,jesd204-obs-framer-scramble value: 1
    debug attr 248: adi,jesd204-obs-framer-k value: 32
    debug attr 249: adi,jesd204-obs-framer-m value: 2
    debug attr 250: adi,jesd204-obs-framer-lane0-id value: 0
    debug attr 251: adi,jesd204-obs-framer-device-id value: 0
    debug attr 252: adi,jesd204-obs-framer-bank-id value: 0
    debug attr 253: adi,jesd204-rx-framer-over-sample value: 0
    debug attr 254: adi,jesd204-rx-framer-rx-syncb-mode value: 0
    debug attr 255: adi,jesd204-rx-framer-obs-rx-syncb-select value: 0
    debug attr 256: adi,jesd204-rx-framer-enable-auto-chan-xbar value: 0
    debug attr 257: adi,jesd204-rx-framer-new-sysref-on-relink value: 0
    debug attr 258: adi,jesd204-rx-framer-lmfc-offset value: 0
    debug attr 259: adi,jesd204-rx-framer-invert-lane-polarity value: 0
    debug attr 260: adi,jesd204-rx-framer-pre-emphasis value: 4
    debug attr 261: adi,jesd204-rx-framer-serializer-amplitude value: 22
    debug attr 262: adi,jesd204-rx-framer-serializer-lane-crossbar value: 228
    debug attr 263: adi,jesd204-rx-framer-serializer-lanes-enabled value: 3
    debug attr 264: adi,jesd204-rx-framer-external-sysref value: 1
    debug attr 265: adi,jesd204-rx-framer-scramble value: 1
    debug attr 266: adi,jesd204-rx-framer-k value: 32
    debug attr 267: adi,jesd204-rx-framer-m value: 4
    debug attr 268: adi,jesd204-rx-framer-lane0-id value: 0
    debug attr 269: adi,jesd204-rx-framer-device-id value: 0
    debug attr 270: adi,jesd204-rx-framer-bank-id value: 0
    debug attr 271: adi,default-initial-calibrations-mask value: 32255
    debug attr 272: direct_reg_access value: 0x3C
    No trigger on this device
    iio:device2: axi-ad9371-tx-hpc (buffer capable)
    12 channels found:
    voltage0: (output, index: 0, format: le:S16/16>>0)
    3 channel-specific attributes found:
    attr 0: calibphase value: 0.000000
    attr 1: calibscale value: 1.000000
    attr 2: sampling_frequency value: 245760000
    voltage1: (output, index: 1, format: le:S16/16>>0)
    3 channel-specific attributes found:
    attr 0: calibphase value: 0.000000
    attr 1: calibscale value: 1.000000
    attr 2: sampling_frequency value: 245760000
    voltage2: (output, index: 2, format: le:S16/16>>0)
    3 channel-specific attributes found:
    attr 0: calibphase value: 0.000000
    attr 1: calibscale value: 1.000000
    attr 2: sampling_frequency value: 245760000
    voltage3: (output, index: 3, format: le:S16/16>>0)
    3 channel-specific attributes found:
    attr 0: calibphase value: 0.000000
    attr 1: calibscale value: 1.000000
    attr 2: sampling_frequency value: 245760000
    altvoltage3: TX1_Q_F2 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 0
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage1: TX1_I_F2 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 90000
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage0: TX1_I_F1 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 90000
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage7: TX2_Q_F2 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 0
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage6: TX2_Q_F1 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 0
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage5: TX2_I_F2 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 90000
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage2: TX1_Q_F1 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 0
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    altvoltage4: TX2_I_F1 (output)
    5 channel-specific attributes found:
    attr 0: frequency value: 40001860
    attr 1: phase value: 90000
    attr 2: raw value: 1
    attr 3: sampling_frequency value: 245760000
    attr 4: scale value: 0.250000
    3 buffer-specific attributes found:
    attr 0: data_available value: 0
    attr 1: length_align_bytes value: 16
    attr 2: watermark value: 2048
    2 debug attributes found:
    debug attr 0: pl_ddr_fifo_enable value: 1
    debug attr 1: direct_reg_access value: 0x90162
    No trigger on this device
    iio:device3: axi-ad9371-rx-hpc (buffer capable)
    4 channels found:
    voltage0_i: (input, index: 0, format: le:S16/16>>0)
    4 channel-specific attributes found:
    attr 0: calibbias value: 0
    attr 1: calibphase value: 0.000000
    attr 2: calibscale value: 1.000000
    attr 3: sampling_frequency value: 122880000
    voltage0_q: (input, index: 1, format: le:S16/16>>0)
    4 channel-specific attributes found:
    attr 0: calibbias value: 0
    attr 1: calibphase value: 0.000000
    attr 2: calibscale value: 1.000000
    attr 3: sampling_frequency value: 122880000
    voltage1_i: (input, index: 2, format: le:S16/16>>0)
    4 channel-specific attributes found:
    attr 0: calibbias value: 0
    attr 1: calibphase value: 0.000000
    attr 2: calibscale value: 1.000000
    attr 3: sampling_frequency value: 122880000
    voltage1_q: (input, index: 3, format: le:S16/16>>0)
    4 channel-specific attributes found:
    attr 0: calibbias value: 0
    attr 1: calibphase value: 0.000000
    attr 2: calibscale value: 1.000000
    attr 3: sampling_frequency value: 122880000
    3 buffer-specific attributes found:
    attr 0: data_available value: 0
    attr 1: length_align_bytes value: 16
    attr 2: watermark value: 2048
    2 debug attributes found:
    debug attr 0: pseudorandom_err_check value: CH0 : PN9 : Out of Sync : PN Error
    CH1 : PN9 : Out of Sync : PN Error
    CH2 : PN9 : Out of Sync : PN Error
    CH3 : PN9 : Out of Sync : PN Error
    debug attr 1: direct_reg_access value: 0x0
    No trigger on this device

  • Hello,

    Any updates? 

    can you figure out the problem from the iio_info output?

    Thanks,

    Prince

  • 0
    •  Analog Employees 
    on Mar 3, 2021 9:49 PM in reply to Prince_Punia

    Since you have opened a new thread regarding this issue, let's continue the discussion there: https://ez.analog.com/linux-software-drivers/f/q-a/541810/iio-osc-application-on-windows-10-for-a10soc-ad9371-quits-abruptly-on-connect

    Thanks,
    Dragos