AnsweredAssumed Answered

libiio iio_reg vs

Question asked by IPrium on Apr 12, 2018
Latest reply on Apr 13, 2018 by IPrium

Hello ADI


I have ZedBoard + FMCOMMS4 + 2017_R1 SD Card.

I execute following python script inside ZedBoard Linux (local context):

import iio
import os
ctx = iio.Context('local:')
#device = 'cf-ad9361-dds-core-lpc'        # OK
device = 'cf-ad9361-lpc'            # ERROR
#device = 'ad9361-phy'                # OK
dev = ctx.find_device(device)
for i in range(100):
    print('0x%x' % dev.reg_read(4*i))
    os.system('iio_reg %s 0x%x' % (device, 2**31 + i*4))


I want to read AXI HDL registers for AD9361 DAC and ADC cores.

iio_reg program works as expected and returns all values correct, but same python code dev.reg_read works only for cf-ad9361-dds-core-lpc and ad9361-phy, but not for cf-ad9361-lpc, python always reads ZERO.


Please suggest, how can I read cf-ad9361-lpc registers from python?


Thank you in advance


Danil Shendrik, IPrium LLC