[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] UHD replacement for write_fpga_reg
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] UHD replacement for write_fpga_reg |
Date: |
Thu, 13 Sep 2012 10:45:42 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
On 09/12/2012 10:17 PM, Colin Stagner wrote:
> Greetings all,
>
> I am trying to update some legacy (gnuradio 3.2 with libusrp)
> python code to run on the latest git release (master, Mon Sep 10
> 08:42:14 2012 -0700). I am using a custom FPGA image for the USRP1.
> The FPGA image implements additional functionality that is
> controlled via the FPGA user registers, such as usrp.FR_USER_0.
> Previously, I could access these registers in Python with the
>
> u._write_fpga_reg(address, value)
>
> function, where u is an instantiated libusrp sink, but I can't find
> an equivalent function for USRP-UHD. The closest I can find is
> usrp.set_user_register(address, value), but this generates an
> exception:
>
> RuntimeError: LookupError: Path not found in tree:
> /mboards/0/user/regs
>
This sounds like a pretty strait forward thing to add. Can you
checkout this branch: usrp1_set_user_reg and try to call
set_user_register again?
-josh