xtrx-sdr / images

Pre-built XTRX packages and firmware images
https://www.crowdsupply.com/fairwaves/xtrx
43 stars 27 forks source link

XTRX Rev4/5 (04000113) TCXO DAC FAIL #106

Open tecandrew opened 3 years ago

tecandrew commented 3 years ago

After rebuilding and successfully installing the XTRX onto an Intel-based SBC, testing the functionality of the card resulting in the following error:

atec@fitlet2:/usr/local/lib/xtrx$ sudo ./test_xtrx -t -l2
19:45:16.625638 ERROR:  [CTRL] PCI:/dev/xtrx0: XTRX Rev4/5 (04000113) TCXO DAC FAIL!!!
CPU Features: SSE2+ SSE4.1+ AVX- FMA-
Master: 32.000 MHz; RX rate: 4.000 MHz; TX rate: 0.000 MHz
RX tunned: 900000000.000000
RX bandwidth: 2000000.000000
RX LNA gain: 15.000000
RX PGA gain: 0.000000
RX TIA gain: 9.000000
RX CYCLES=1 SAMPLES=16384 SLICE=16384 (PARTS=1)
PROCESSED RX SLICE 0 /0: res 0 TS:    8192       4088 us DELTA    251 us LATE   2291 us 16384 samples
RX STAT Overruns:0
Success!
Processed 1 devs, each: RX 2 x 1.770 = 3.539 MSPS (WIRE: 14.156989)    TX 2 x 0.000 = 0.000 MSPS (WIRE: 0.000000 MB/s)

I haven't dug too deep into the documentation quite yet, so forgive me if I'm off in understanding the log, but does this mean that the app is unable to communicate with the card fully or is the card faulty in someway? I am using the Compulab fitlet2, which has access to at least x1 PCIe 2.0 lanes, so I suspect some things to not work: wondering if this error is one of them.

Verbose Log

atec@fitlet2:/usr/local/lib/xtrx$ sudo ./test_xtrx -t -l4
19:50:23.019957 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x000300
19:50:23.063734 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x008300
19:50:23.064196 ERROR:  [CTRL] PCI:/dev/xtrx0: XTRX Rev4/5 (04000113) TCXO DAC FAIL!!!
19:50:23.064237 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA STOP MIMO @0.0
19:50:23.064256 INFO:   [PCIE] PCI:/dev/xtrx0: Device `pcie:///dev/xtrx0` has been opened successfully
CPU Features: SSE2+ SSE4.1+ AVX- FMA-
19:50:23.208786 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x008304
19:50:23.309056 INFO:   [CTRL] PCI:/dev/xtrx0: FPGA V_GPIO set to 3280mV
19:50:23.309118 INFO:   [CTRL] PCI:/dev/xtrx0: LMS PMIC DCDC out set to VA18=1880mV VA14=1480mV VA12=1340mV
19:50:23.346276 INFO:   [CTRL] PCI:/dev/xtrx0: FPGA V_IO set to 1800mV
19:50:23.356529 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x008306
19:50:23.367131 INFO:   [LSM7] PCI:/dev/xtrx0: LMS VER:7 REV:1 MASK:1 (3841)
19:50:23.367180 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x00831e
19:50:23.367636 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x00831e
19:50:23.367804 INFO:   [DBGP] Starting XTRX debug thread
19:50:23.378043 INFO:   [XTRX] PCI:/dev/xtrx0: Set INT RefClk to 26000000 based on 26060521 measurement
19:50:23.378135 INFO:   [LSM7] PCI:/dev/xtrx0: CGEN: VCO/2=1184000000 k/2=37 int=91 frac=80659
19:50:23.379016 INFO:   [LSM7] PCI:/dev/xtrx0: CGEN: binary result: 159
19:50:23.379625 INFO:   [LSM7] PCI:/dev/xtrx0: CGEN: Retuned [160:166] -> 163
19:50:23.379989 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x00831e
19:50:23.380017 INFO:   [CTRL] PCI:/dev/xtrx0: FPGA V_IO set to 1800mV
19:50:23.380031 INFO:   [LMSF] PCI:/dev/xtrx0: rxrate=4.000MHz txrate=0.000MHz actual_master=32.000MHz rxdecim=2(h_1) txinterp=1(h_1) RX_ADC=8.000MHz TX_DAC=4.000MHz hintr=0 hdecim=0 delay=0 NRXFWD=0 LML1HID=3 LML2HID=1 RX_div=0 TX_div=0 RX_TSP_div=1 TX_TSP_div=1 FclkRX=0.000 (PHS=0) RXx2=0
Master: 32.000 MHz; RX rate: 4.000 MHz; TX rate: 0.000 MHz
19:50:23.380222 INFO:   [LMSF] PCI:/dev/xtrx0: Auto RX band selection: LNAL
19:50:23.380244 INFO:   [LMSF] PCI:/dev/xtrx0: Set RX band to 2 (L)
19:50:23.380581 INFO:   [CTRL] PCI:/dev/xtrx0: RX_ANT: 1 TX_ANT: 0
19:50:23.380605 INFO:   [LMSF] PCI:/dev/xtrx0: DC START
19:50:23.380818 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.380874 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.380914 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.380952 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381127 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381171 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381210 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381409 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381555 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381739 INFO:   [LSM7] PCI:/dev/xtrx0:  5c1=0000
19:50:23.381831 INFO:   [LSM7] PCI:/dev/xtrx0:  TX[0]=0000
19:50:23.382014 INFO:   [LSM7] PCI:/dev/xtrx0:  TX[1]=0000
19:50:23.382115 INFO:   [LSM7] PCI:/dev/xtrx0:  TX[2]=0000
19:50:23.382337 INFO:   [LSM7] PCI:/dev/xtrx0:  TX[3]=0000
19:50:23.382435 INFO:   [LSM7] PCI:/dev/xtrx0:  RX[0]=0000
19:50:23.382650 INFO:   [LSM7] PCI:/dev/xtrx0:  RX[1]=0000
19:50:23.382745 INFO:   [LSM7] PCI:/dev/xtrx0:  RX[2]=0000
19:50:23.382963 INFO:   [LSM7] PCI:/dev/xtrx0:  RX[3]=0000
19:50:23.383023 INFO:   [LMSF] PCI:/dev/xtrx0: FE_FREQ rx=1 type=0 freq=900000000.000000 ch=3
19:50:23.383304 INFO:   [LSM7] PCI:/dev/xtrx0: SXR: initial VCO=3600000000 DIVH=2 VCOs:0010
19:50:23.383329 INFO:   [LSM7] PCI:/dev/xtrx0: SXX: VCO2 N=138 frac=483958
19:50:23.383903 INFO:   [LSM7] PCI:/dev/xtrx0: SXX: binary result: 255
19:50:23.383985 INFO:   [LSM7] PCI:/dev/xtrx0: SXR: VCO2 [255;255] -> 255
19:50:23.384003 INFO:   [LSM7] PCI:/dev/xtrx0: SXX: VCO2 N=138 frac=483958
19:50:23.384533 INFO:   [LSM7] PCI:/dev/xtrx0: SXX: binary result: 143
19:50:23.385894 INFO:   [LSM7] PCI:/dev/xtrx0: SXR: VCO2 [144;167] -> 155
RX tunned: 900000000.000000
19:50:23.386108 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 00]
19:50:23.386413 INFO:   [LSM7] PCI:/dev/xtrx0: TIA: CCOMP=8 CFB=830 RCOMP=0
19:50:23.386772 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 08]
19:50:23.387079 INFO:   [LSM7] PCI:/dev/xtrx0: TIA: CCOMP=8 CFB=830 RCOMP=0
RX bandwidth: 2000000.000000
19:50:23.387411 INFO:   [LMSF] PCI:/dev/xtrx0: Set gain 15.0 to 0 on 3 channel
19:50:23.387467 INFO:   [LSM7] PCI:/dev/xtrx0: RFE: set_lna(15 -> 15) => 6
RX LNA gain: 15.000000
19:50:23.387656 INFO:   [LMSF] PCI:/dev/xtrx0: Set gain 0.0 to 2 on 3 channel
19:50:23.387707 INFO:   [LSM7] PCI:/dev/xtrx0: RBB: set_pga(12) rcc_ctl -> 23, c_ctl -> 2
RX PGA gain: 0.000000
19:50:23.387895 INFO:   [LMSF] PCI:/dev/xtrx0: Set gain 9.0 to 1 on 3 channel
RX TIA gain: 9.000000
19:50:23.387954 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
19:50:23.387982 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA SKIP MIMO (BLK:0 TS:0); TX DMA STOP MIMO @0.0
19:50:23.388149 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 08]
19:50:23.388479 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 08]
19:50:23.388703 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA STOP MIMO @0.0
19:50:23.388716 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
19:50:23.388724 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA SKIP MIMO (BLK:0 TS:0); TX DMA STOP MIMO @0.0
19:50:23.388751 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 08]
19:50:23.389022 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[18, 08]
19:50:23.389302 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA STOP MIMO @0.0
19:50:23.389581 INFO:   [LMSF] PCI:/dev/xtrx0: AFE TX=[0;0] RX=[1;1]
19:50:23.389870 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[1c, 0c]
19:50:23.390326 INFO:   [LMSF] PCI:/dev/xtrx0: RBB Restore BW[0]=2000000
19:50:23.390473 INFO:   [LSM7] PCI:/dev/xtrx0: TIA: CCOMP=8 CFB=830 RCOMP=0
19:50:23.390784 INFO:   [LMSF] PCI:/dev/xtrx0: RBB Restore BW[1]=2000000
19:50:23.390941 INFO:   [LSM7] PCI:/dev/xtrx0: TIA: CCOMP=8 CFB=830 RCOMP=0
19:50:23.391209 RFIC:   [LMSF] PCI:/dev/xtrx0: configure done
19:50:23.391486 INFO:   [XTRX] PCI:/dev/xtrx0: RX initialized to 65536 bytes packet size
19:50:23.391650 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA 16 bit MIMO (BLK:8192 TS:8192); TX DMA SKIP MIMO @0.0
19:50:23.391784 INFO:   [CTRL] PCI:/dev/xtrx0: Placing TC @8192 on 0 data: 0 stat:20
RX CYCLES=1 SAMPLES=16384 SLICE=16384 (PARTS=1)
PROCESSED RX SLICE 0 /0: res 0 TS:    8192       4075 us DELTA     89 us LATE   2116 us 16384 samples
RX STAT Overruns:0
19:50:23.396439 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
19:50:23.396622 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[1c, 08]
19:50:23.396939 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
19:50:23.397121 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
19:50:23.397290 INFO:   [LSM7] PCI:/dev/xtrx0: 0x0124[1c, 08]
19:50:23.397550 INFO:   [BPCI] PCI:/dev/xtrx0: RX DMA STOP MIMO (BLK:0 TS:0); TX DMA SKIP MIMO @0.0
Success!
Processed 1 devs, each: RX 2 x 1.864 = 3.727 MSPS (WIRE: 14.909482)    TX 2 x 0.000 = 0.000 MSPS (WIRE: 0.000000 MB/s)
19:50:23.398552 INFO:   [CTRL] PCI:/dev/xtrx0: RFIC_GPIO 0x008300
19:50:23.399831 INFO:   [PCIE] PCI:/dev/xtrx0: Device is closing