AnsweredAssumed Answered

Calibration timeouts on AD9364 init

Question asked by bistromat on May 29, 2015
Latest reply on Jun 1, 2015 by bistromat

Hi all,

 

Looking for some help on where to start debugging AD9364 calibration timeouts. We have custom hardware which is more or less derived from the FMCOMMS4 reference design. We're using the Linux driver based on the xcomm_zynq branch, with our own device tree, etc. It's current as of today. Everything seems to be working fairly well, but we have a couple of lingering issues.

 

First, almost invariably on initialization, we get calibration timeout errors. Here's the relevant driver output:

 

ad9361 spi1.0: ad9361_probe : enter

mmc0: new high speed SDHC card at address e624

mmcblk0: mmc0:e624 SP16G 14.8 GiB

mmcblk0: p1 p2 p3 p4 < p5 p6 >

random: nonblocking pool is initialized

ad9361 spi1.0: Calibration TIMEOUT (0x247, 0x2)

ad9361 spi1.0: Calibration TIMEOUT (0x287, 0x2)

ad9361 spi1.0: ad9361_probe : AD9361 Rev 2 successfully initialized

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

ad9361 spi1.0: Calibration TIMEOUT (0x5E, 0x80)

SAMPL CLK: 61440000 tuning: TX

  0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:

0:# # # # # # # # # # # # # # # #

1:# # # # # # # # # # # # # # # #

ad9361 spi1.0: ad9361_dig_tune: Tuning TX FAILED!

cf_axi_adc: probe of 79020000.cf-ad9361-lpc failed with error -5

 

Second, and possibly related, we get occasional problems where our userspace application (using libiio) starts and runs, but no output appears to go to the AD9364 -- the buffers are being submitted, but nothing is transmitted. This occurs nondeterministically as far as I can tell. Most of the time it works just fine, calibration errors notwithstanding.

 

Thanks for your time,

Nick

Outcomes