Send USRP-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."


Today's Topics:

   1. Re: writing to user settings register (Oliver Wayne)
   2. Re: Alternatives for uhd_fft in Ubuntu (Roman Olesyuk)


----------------------------------------------------------------------

Message: 1
Date: Sat, 29 Apr 2017 18:02:06 -0400
From: Oliver Wayne <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [USRP-users] writing to user settings register
Message-ID:
        <CADueRbnCYFHi=3zwC+q_Ukm46XyFBgeBZWtAzo=spzxuyod...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

At this point I have

reg [31:0] prtCycles;
wire [31:0] prtCycles_sr = 50;
wire prtCycles_ch;
setting_reg #(.my_addr(164)) sr_0
        
(.clk(radio_clk),.rst(radio_rst),.strobe(set_stb),.addr(set_addr),.in(set_data),
.out(prtCycles_sr),.changed(prtCycles_ch));

Then in b200_impl.cpp, I added the lines

_local_ctrl->poke32(TOREG(164), 131);

uint32_t reg_res = _local_ctrl->peek32(TOREG(164));

UHD_LOGGER_INFO("B200") << "Register value : " << reg_res;

I had hoped that this would output the output of setting_reg, which
should be prtCycles_sr, so 50. however I don't see this, instead I see
"Register value : 0." It feels that the poke32 method should let me
change the value of a register, could someone provide some advice on
how to change the reg value from the host with poke32?


On Fri, Apr 28, 2017 at 5:09 PM, Oliver Wayne <[email protected]>
wrote:

> i'd appreciate it if you could give me an example. i've been playing
> around with the b200 cpp files in the uhd repo but think im looking in the
> wrong place.
>
> On Fri, Apr 28, 2017 at 5:04 PM, Long, Jeffrey P. <[email protected]>
> wrote:
>
>> Oliver-
>>
>>
>>
>> I just went through all this myself. Unlike the N210 and older etti the
>> user registers are no longer exposed in the API so while you can ?turn?
>> stuff on in the FPGA image there are no implementations exposed in the B200
>> api.
>>
>>
>>
>> It?s not actually too hard and what I did was just forget the user
>> register space entirely and I just put my stuff in the regular radio mapped
>> area in an unused range. The caveat here being that you are manually
>> tweaking the fpga image and the API and that won?t move forward as Ettus
>> releases.
>>
>>
>>
>> If you are interested I can give you an example. I would just have to
>> write something up.
>>
>>
>>
>> Jeff
>>
>>
>>
>> *From:* USRP-users [mailto:[email protected]] *On
>> Behalf Of *Oliver Wayne via USRP-users
>> *Sent:* Friday, April 28, 2017 1:29 PM
>> *To:* [email protected]
>> *Subject:* [USRP-users] writing to user settings register
>>
>>
>>
>> hi,
>>
>>
>>
>> i am trying to write to the user settings register on the fpga on the
>> b200 device, but am havings ome problems. i followed instructions at
>> http://lists.ettus.com/pipermail/usrp-users_lists.ettus.
>> com/2013-April/006558.html and added in the verilog modules
>>
>>
>>
>>     reg [31:0] prtCycles;
>>
>>     wire [31:0] prtCycles_sr;
>>
>>     wire prtCycles_ch;
>>
>>     setting_reg #(.my_addr(0)) sr_0
>>
>>         
>> (.clk(radio_clk),.rst(radio_rst),.strobe(set_stb),.addr(set_addr),.in(set_data),
>>  .out(prtCycles_sr),.changed(prtCycles_ch));
>>
>> i also went to b200_core.v and changed ".USER_SETTINGS(0)" -> 
>> ".USER_SETTINGS(1)."
>>
>> Then in my cpp file I added
>>
>> usrp -> set_user_register(0, 131, uhd::usrp::multi_usrp::ALL_MBOARDS);
>>
>>
>>
>> 131 is the value that I want to set my register prtCycles to. but this 
>> doesnt seem to happen, can anyone tell me what i am doing wrong?
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20170429/bdfbea89/attachment-0001.html>

------------------------------

Message: 2
Date: Sun, 30 Apr 2017 08:39:03 +0300
From: Roman Olesyuk <[email protected]>
To: Dario Fertonani <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [USRP-users] Alternatives for uhd_fft in Ubuntu
Message-ID:
        <CAMZegnHs-5npkW=e2=w0p4kn-jxkqst2y_e1skbj10q_obg...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Dario,

Also I suggest using MyriadRF PPAs (e.g. like in gqrx installstion guide
here http://gqrx.dk/download/install-ubuntu). They always have updated GNU
Radio version which works with UHD from Ettus PPA.

--
? ?????????, ????? ??????.
Yours sincerely, Roman Olesyuk.

27 ???. 2017 ?. 19:23 ???????????? "Dario Fertonani via USRP-users" <
[email protected]> ???????:

> Is anybody aware of Ubuntu alternatives for the uhd_fft app? I'm looking
> for a basic spectrum analyzer.
>
> The uhd_fft app is great, but impractical for me because the packaged
> version of Gnuradio is always behind the latest UHD version (from Ettus
> Research PPA), and source code compiling of UHD/Gnuradio is an overkill for
> most of my uses cases.
>
> As many Ubuntu users have experienced, the current version of Gnuradio
> apps dies out on Ubuntu 16.04 LTS with the following error.
>
> RuntimeError:
> GR-UHD detected ABI compatibility mismatch with UHD library.
> GR-UHD was build against ABI: 3.9.0-0,
> but UHD library reports ABI: 3.10.1
> Suggestion: install an ABI compatible version of UHD,
> or rebuild GR-UHD component against this ABI version.
>
>
> Thanks,
> Dario
>
>
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20170430/0d6e66a7/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


------------------------------

End of USRP-users Digest, Vol 80, Issue 30
******************************************

Reply via email to