Need help in emergency for the fpga image

Hello everyone, I must find a way to compile the FPGA project for the
USRP2 to continue my Masters. I use ISE 12.1
and the top project u2_rev3 in the repository
git://ettus.sourcerepo.com/ettus/fpga.git using all the files in
different makefile.
The compilation works well and I get the bin file of 842Kb. But during
the test, only one of the lights glow
and the computer does not see the radio. Is there someone who can
reproduce this bug and help me find
an answer?

Gabriel

Hello Gabriel,

there are many possible reasons why it wouldn’t work, but in my
experience it is most likely an issue with your SD card.

  • Did you put both the firmware and the FPGA bitstream on the SD card?
    Do they have matching versions?
  • What SD card are you using? SDHC cards do not work, and the USRP2
    seems to like 2GB cards (only?). When in doubt, use the SD card provided
    with the USRP2.
  • Did you write the images directly to the beginning of the card without
    filesystem. You have to use /dev/sdX or the likes instead of
    /dev/sdX{1,2,3,4,…}. There are also graphical tools to flash the card
    somewhere.

There is also some info here if you haven’t found it yet:
http://gnuradio.org/redmine/wiki/1/USRP2UserFAQ

The second LED lights up when the firmware has successfully initialized
the lowest level the device (before the ethernet handlers), so without
it you will definitely not be able to find the USRP2. The first one just
shows that it is powered up.

Matthias

Am 04.01.2011 um 19:29 schrieb Gabriel Morel:

----- Original Message -----
From: “Matthias W.” [email protected]
To: “Gabriel Morel” [email protected]
Cc: [email protected]
Sent: Wednesday, January 05, 2011 4:41 AM
Subject: Re: [Discuss-gnuradio] Need help in emergency for the fpga
image

Hello Gabriel,

there are many possible reasons why it wouldn’t work, but in my
experience
it is most likely an issue with your SD card.

  • Did you put both the firmware and the FPGA bitstream on the SD card?
    Do
    they have matching versions?

      Yes, fpga u2_rev3-20100603.bin firmware
    

txrx_wbx_raw_eth_20100608.bin. This works but if I replace the
u2_rev3-20100603.bin by my u2_rev3.bin, nothing work.

  • What SD card are you using? SDHC cards do not work, and the USRP2
    seems to
    like 2GB cards (only?). When in doubt, use the SD card provided with the
    USRP2.

    SD card only since the USRP2 doesn’t support SDHC (I used the one
    that
    came with the USRP2)

  • Did you write the images directly to the beginning of the card without
    filesystem. You have to use /dev/sdX or the likes instead of
    /dev/sdX{1,2,3,4,…}. There are also graphical tools to flash the card
    somewhere.

    I use u2_flash_tool.py that I found on the web site gnuradio.org.
    The
    exact code line is
    u2_flash_tool.py --dev=/dev/sdb -t fpga
    /path/to/my/bin/file/u2_rev3.bin -w for the FPGA code
    and
    u2_flash_tool.py --dev=/dev/sdb -t s/w
    /path/to/my/bin/file/txrx_wbx_raw_eth_20100608.bin -w for the firmware
    code.
    (I used a WBX daughter board)
    Can you provide me the graphical tools to flash my SD card ?

There is also some info here if you haven’t found it yet:
http://gnuradio.org/redmine/wiki/1/USRP2UserFAQ

The second LED lights up when the firmware has successfully initialized
the
lowest level the device (before the ethernet handlers), so without it
you
will definitely not be able to find the USRP2. The first one just shows
that
it is powered up.

Matthias

Am 04.01.2011 um 19:29 schrieb Gabriel Morel:

----- Original Message -----
From: “Nick F.” [email protected]
To: “Gabriel Morel” [email protected]
Sent: Tuesday, January 04, 2011 1:48 PM
Subject: Re: [Discuss-gnuradio] Need help in emergency for the fpga
image

I asked you a bunch of questions you didn’t answer the last time you
posted. I can’t help you unless you give me more details. Can you answer
these questions for me?

  1. Are you planning on using the older raw socket interface or UHD to
    communicate with your USRP2?
I use the raw ethernet version.
  1. Are you using the original SD card that came with your USRP2?
yes I'm using a SD card that came with my USRP2
  1. Does re-loading the original downloaded FPGA bin image onto the same
    SD card make it work for you?
Yes
  1. What specific firmware file (including full file name) are you
    loading onto the SD card?
I'm using the WBX daughter board with the fpga bin file
u2_rev3-20100603.bin
and the firmware
txrx_wbx_raw_eth_20100608.bin
It is working when both file are loaded together
  1. Are you using “make bin” or “make -f Makefile.udp bin” to compile
    your image?
 No, I created a project with the FPGA xc3s200fg456-5 in ISE 12.1 

and I
added all the files of all differents
makefile of all folder of the principal makefile in
fpga/usrp2/top/u2_rev3. I implemented the top module and I
generated the programming file by double clicking on the command in
the
design tab.

  1. Are you using the master branch or the ise12 branch of the Git
    repository?
I think i used the master branch.  I downloaded all the files in

repository fpga.git and used the u2_rev3.v top in
fpga/usrp2/top/u2_rev3.

Thanks for the info. Try the following to compile it using the makefile
we include in the distro.

In order to do this you’ll have to have the ISE12 settings exported in
your shell. You can do this by running:

source /opt/Xilinx/12.1/ISE_DS/settings32.sh OR
source /opt/Xilinx/12.1/ISE_DS/settings64.sh

depending on if you’re running a 32-bit or 64-bit system.

Then cd to the usrp2/top/u2_rev3 directory of the fpga repository and
run:

make bin

The bin file will be in the subdirectory build-ISE?? where ?? is the
version of ISE you use. So for 12.1 it will be at
build-ISE12/u2_rev3.bin.

Let me know if that FPGA file works for you and we can work from there.

–n

On 01/05/2011 12:13 PM, Gabriel Morel wrote:

I’m using ISE 12.1 on windows, not on linux, is it different? I think
is different for the method of calling command, not on the result. The

Install gnu make and ensure that make and xtclsh are in your %PATH%. I
have reason to believe that it will work. Another option might be to
call the makefile though cygwin.

bin file is suppose to be the same on linux or on windows, no?

It should, but thats up to Xilinx :slight_smile:

-Josh

Allow to me clarify some details since I’m not sure what you are
attempting to do:

If you want to build the FPGA image for USRP2 over raw ethernet
(gnuradio driver), you will need to use the master branch of the repo
with ise10 (no exceptions).

If you want to build the FPGA image for USRP2 over ipv4/udp (UHD
driver), you will need to use the ise12 branch of the repo with ise12
(no exceptions).

-Josh

I’m using ISE 12.1 on windows, not on linux, is it different? I think
is
different for the method of calling command, not on the result. The bin
file is suppose to be the same on linux or on windows, no?

Gab

----- Original Message -----
From: “Nick F.” [email protected]
To: “Gabriel Morel” [email protected]
Cc: [email protected]
Sent: Wednesday, January 05, 2011 2:55 PM
Subject: Re: [Discuss-gnuradio] Need help in emergency for the fpga
image

Have it a ise10 branch like it have a ise12 branch? Because the main
repo
in fpga.git don’t compile. It have any difference between compilation
on
windows or on linux, some engineer of the ETS confirm that. Can anybody
try
to compile the main project of fpga.git and try it with a USRP2? For me
and
for future users, this bug have to be repair.

thx a lot
Gabriel

----- Original Message -----
From: “Josh B.” [email protected]
To: [email protected]
Sent: Wednesday, January 05, 2011 3:45 PM
Subject: Re: [Discuss-gnuradio] Need help in emergency for the fpga
image

Ok, i understand that, but the final bin file with ISE 10.1 was only
836ko
and the raw ethernet in the web is a 842ko. If I compile the raw
ethernet
version on 12.1, the final bin file is a 842ko, like the net. This is
the
major question i have.

I have to modify the fpga project to bypass the data by the mictor
connector
after the dsp_core_tx. But if i can’t compile the original project, i
will
not be able to compile the modified project.

Gab

----- Original Message -----
From: “Josh B.” [email protected]
To: [email protected]
Sent: Wednesday, January 05, 2011 3:45 PM
Subject: Re: [Discuss-gnuradio] Need help in emergency for the fpga
image