# Help me with usrp-spectrrum-sense.py

**URL:** <https://www.ruby-forum.com/t/help-me-with-usrp-spectrrum-sense-py/245476>\
**Category:** GNU Radio\
**Created:** [June 3, 2013, 7:50am UTC](https://www.ruby-forum.com/t/help-me-with-usrp-spectrrum-sense-py/245476 "2013-06-03T07:50:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [June 3, 2013, 7:50am UTC](https://www.ruby-forum.com/t/help-me-with-usrp-spectrrum-sense-py/245476/1 "2013-06-03T07:50:04Z")

</div>

whem i try to run this code i am getting following error

linux; GNU C++ version 4.6.3; Boost\_104800; UHD\_003.005.003-78-g49a4929b

Warning: this may have issues on some machines+Python version  
combinations  
to seg fault due to the callback in bin\_statitics.

– Opening a USRP2/N-Series device…  
Traceback (most recent call last):  
File “./usrp\_spectrum\_sense.py”, line 297, in   
tb = my\_top\_block()  
File “./usrp\_spectrum\_sense.py”, line 157, in **init**  
stream\_args=uhd.stream\_args(‘fc32’))  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/ **init**.py”,  
line 116, in constructor\_interceptor  
return old\_constructor(\*args)  
File  
“/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd\_swig.py”,  
line 3043, in usrp\_source  
return \_uhd\_swig.usrp\_source(\*args)  
RuntimeError: RuntimeError:  
Please update the firmware and FPGA images for your device.  
See the application notes for USRP2/N-Series for instructions.  
Expected FPGA compatibility number 10, but got 7:  
The FPGA build is not compatible with the host code build.  
Please run:

sudo “/usr/local/lib/uhd/utils/uhd\_images\_downloader.py”  
“/usr/local/share/uhd/utils/usrp\_n2xx\_simple\_net\_burner”   
–addr=“192.168.10.2”

i can run uhd\_find devices properly…

please help me with this error

vidyadhar

---

<div class="post-metadata">

**Author:** ![Vidyadhar\_Reddy\_Gos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e99b99/32.png) [@Vidyadhar\_Reddy\_Gos](https://www.ruby-forum.com/u/Vidyadhar_Reddy_Gos)\
**Post date:** [June 3, 2013, 8:21am UTC](https://www.ruby-forum.com/t/help-me-with-usrp-spectrrum-sense-py/245476/2 "2013-06-03T08:21:02Z")

</div>

Hi Vidyadhar,  
You need to burn the fpga image on to the usrp 2. You  
can either run the command given above or go to  
cd /usr/local/share/uhd/utils from your home folder and then open  
usrp\_n2xx\_net\_burner\_gui.py and then run in terminal. Then you get a gui  
with two fields Firmware Image and FPGA image.

Select usrp\_n2xx\_fw.bin for Firmware image and usrp\_n2xx\_r4\_bin for FPGA  
image. Both of these files are in images folder of uhd.

Then burn these images. That should solve the problem.

On Mon, Jun 3, 2013 at 11:19 AM, Vidyadhar Reddy Gosala \<
