Forum: GNU Radio usrp2_fft segmentation fault

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Natalia Olano (Guest)
on 2008-10-24 12:40
(Received via mailing list)
Hello,

I am looking for some advice regarding the use of the USRP2 and I hope
that you can help me. Please forgive my inexperience, it is very short
that I have been working on this area. The USRP2 I am using has an RFX
2400 daughterboard, the environment is Suse 10.3 and these are the
steps I have followed:

1/ Installed boost library 1.36 as explained in the readme and added
it to LD_LIBRARY_PATH

2/ Installed Microblaze compiler as explained in the wiki and added it
to PATH

3/ Installed the gnuradio trunk version 9831
./bootstrap
./configure --with-boost=$BOOST_PREFIX
make
make check (all test passed)
make install

4/ USRP2 is found (LEDS D and F are on)
~/gnuradio-usrp2-rev9831/usrp2/host # find_usrps
00:50:c2:85:30:18 hw_rev = 0x0300

5/Then I try to run the usrp2_fft.py and get
~/gnuradio-usrp2-rev9831/gr-utils/src/python # python usrp2_fft.py -f 2.
4G
usrp2: mismatched command reply length (expected: 60 got: 4). op =
OP_EOP
Traceback (most recent call last):
  File "usrp2_fft.py", line 268, in <module>
    main ()
  File "usrp2_fft.py", line 264, in main
    app = stdgui2.stdapp(app_top_block, "USRP2 FFT", nstatus=1)
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py", line
36, in __init__
    wx.App.__init__ (self, redirect=False)
  File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
                              line 7913, in __init__
    self._BootstrapApp()
  File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
                              line 7487, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line                               39, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line                               60, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line                               81, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "usrp2_fft.py", line 68, in __init__
    self.u = usrp2.source_32fc(options.interface, options.mac_addr)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp2.py",
line 305, in                               source_32fc
    return _usrp2.source_32fc(*args)
RuntimeError: Unable to retrieve daughterboard info
Segmentation fault

The same happens with any of the other codes for the usrp2.

I would be very gratefull if you could come up with a solution.
Best regards
--
Natalia Olano
Johnathan C. (Guest)
on 2008-10-24 15:58
(Received via mailing list)
On Fri, 2008-10-24 at 10:39 +0200, Natalia Olano wrote:

> RuntimeError: Unable to retrieve daughterboard info

There has been some recent changes in the USRP2 host and firmware code
which appear to be incompatible.  I will be working on this tonight and
over the weekend.

-Johnathan
Eric B. (Guest)
on 2008-10-24 17:33
(Received via mailing list)
On Fri, Oct 24, 2008 at 10:39:26AM +0200, Natalia Olano wrote:
>
> 2/ Installed Microblaze compiler as explained in the wiki and added it to PATH
>
> 3/ Installed the gnuradio trunk version 9831
> ./bootstrap
> ./configure --with-boost=$BOOST_PREFIX
> make
> make check (all test passed)
> make install


You need to install the current usrp2 firmware (what you just built)
onto the SD card.  usrp2/firmware/apps/txrx.bin is the file that
should be installed into the s/w slot of the SD card.
See the USRP2 FAQs.  I suspect the info's in there somewhere...

Eric
This topic is locked and can not be replied to.