Post Go back to editing

ADRV9002: Init Calibration Failure After Loading Custom Profile and Stream Configuration

Category: Software
Product Number: ADRV9002
Software Version: 2023_R2, linux 5.10

I am working with an ADRV9002 2T2R device on a custom Zynq UltraScale+ platform. I am using the ADI Linux/PetaLinux driver and loading the Navassa profile and stream configuration through the IIO sysfs interface.

The device initializes successfully during boot with the following versions:

adrv9002-phy Rev 12.0
Firmware 0.22.49
Stream 0.7.15.0
API version: 68.16.2

The boot log shows:

[ 8.076195] adrv9002 spi1.0: adrv9002-phy Rev 12.0, Firmware 0.22.49, Stream 0.7.15.0, API version: 68.16.2 successfully initialized

However, when I load a generated/modified profile and stream configuration manually:

cat Navassa_Stream.bin > /sys/bus/iio/devices/iio:device1/stream_config
cat Navassa_LVDS_profile.json > /sys/bus/iio/devices/iio:device1/profile_config

I get the following errors:

[ 697.886254] adrv9002 spi1.0: [ERROR]: Error number 3 (0x00000003), Recovery action -101.
In file drivers/iio/adc/navassa/devices/adrv9001/public/src/adi_adrv9001_arm.c,
in function adi_adrv9001_arm_C.

[ 697.918218] adrv9002 spi1.0: [ERROR]: Error number 9731 (0x00002603), Recovery action -2.
In file drivers/iio/adc/navassa/devices/adrv9001/private/src/adrv9001_arm.c,
in function adrv9001_ArmCmdError.

[ 697.957417] adrv9002 spi1.0: [ERROR]: Error number 9731 (0x00002603), Recovery action -2.
In file drivers/iio/adc/navassa/devices/adrv9001/public/src/adi_adrv9001_cals.c,
in function adi_adrv9001_cal.

[ 697.996262] adrv9002 spi1.0: adrv9002_init_cals_handle, 2621:
failed with "Error occurred during an Init Calibration. Check that no signal is being applied to the Rx ports. Check that correct external ..."

[ 704.001557] adrv9002 spi1.0: [ERROR]: Error number 3 (0x00000003), Recovery action -101.

[ 704.033518] adrv9002 spi1.0: [ERROR]: Error number 9729 (0x00002601), Recovery action -2.
In file drivers/iio/adc/navassa/devices/adrv9001/private/src/adrv9001_arm.c,
in function adrv9001_ArmCmdError.

[ 704.072710] adrv9002 spi1.0: [ERROR]: Error number 9729 (0x00002601), Recovery action -2.
In file drivers/iio/adc/navassa/devices/adrv9001/public/src/adi_adrv9001_cals.c,
in function adi_adrv9001_cal.

[ 704.111546] adrv9002 spi1.0: adrv9002_init_cals_handle, 2621:
failed with "Error occurred during an Init Calibration. Check that no signal is being applied to the Rx ports. Check that correct external ..."

cat: write error: Bad address

I am trying to understand the relationship between the profile/init-calibration settings and these ARM calibration errors.

My observations:

The device itself initializes successfully during boot.
The problem occurs when I load a generated/modified Navassa_LVDS_profile.json and Navassa_Stream.bin.
I am testing different Init Calibration selections/settings in the profile.
Whenever I make changes to the Init Calibration configuration and regenerate the profile, I encounter the above errors.
There is currently no RF signal intentionally applied to the RX inputs during this test.
I would like to confirm whether the error is caused by an incorrect Init Calibration combination, a profile/stream mismatch, an RF configuration issue, or something else.
The final userspace error is:
cat: write error: Bad address

Questions:

What exactly do error codes 9729 (0x2601) and 9731 (0x2603) indicate for ADRV9002 Init Calibration?
Does changing the Init Calibration selection require any corresponding changes to the Stream configuration or other profile parameters?
Is there a recommended procedure for modifying Init Calibration settings in an existing ADRV9002 profile and then loading the resulting profile.json and stream.bin through the Linux IIO interface?
Does the profile need to be loaded only during device initialization, rather than dynamically through profile_config after the device has already initialized?
Could the Bad address returned by sysfs be a consequence of the ARM/Init Calibration failure rather than an actual memory-address problem?
Are there specific external clock, LO, RX termination, TX/RX connection, or RF conditions that must be satisfied for the selected Init Calibrations to complete successfully?
Is there a way to identify exactly which Init Calibration is failing from the Linux driver or ADI API logs?
I would also appreciate guidance on what additional logs or debug information I should provide to determine the root cause.
The main thing I am trying to establish is:

Is my generated profile/Init Calibration configuration incorrect, or am I missing some required initialization sequence or hardware condition before loading the profile?

Any guidance on the correct procedure would be greatly appreciated.

Thanks.

  • I hope the  profile and stream generated together from the same usecase/profile.

    Does changing the Init Calibration selection require any corresponding changes to the Stream configuration or other profile parameters?
    Changing the Init Calibration selection itself should not require stream change.
    Is there a recommended procedure for modifying Init Calibration settings in an existing ADRV9002 profile and then loading the resulting profile.json and stream.bin through the Linux IIO interface?

    Once the initcals are enabled , generate the profile and stream bin files and use them for your testing.

    Does the profile need to be loaded only during device initialization, rather than dynamically through profile_config after the device has already initialized?

    We would recommend to load profile during device initialization with the cals enabled .

    Could the Bad address returned by sysfs be a consequence of the ARM/Init Calibration failure rather than an actual memory-address problem?

    Yes.

    Are there specific external clock, LO, RX termination, TX/RX connection, or RF conditions that must be satisfied for the selected Init Calibrations to complete successfully?

    Please ensure that reference clock is valid and stable. The RX inputs must be terminated /without any RF input.

    As the original profile works without any issues, can you please check the difference with respect to modified profile/calibration configuration.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.