WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Jan-25 19:28:46

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Question On User IO Testing

hi,

I am trying to test WARP's User IO according to the document of 'WARP FPGA Board User I/O Reference Design'. I followed it step by step. But at the step of adding sources and headers file, I can not find the files such as warplib.c, UserIOTest.c and warplib.h.

The version of warp board I used is version 1.2.  The software's version is ISE v8.2i and EDK v8.2. But I have not installed the SystemGen v8.2 and Chipscope v8.2.

Thanks,
Junlin

Offline

 

#2 2007-Jan-25 20:04:19

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question On User IO Testing

hi Junlin- the source files for that reference design are available in the WARP project site's documentation section. See http://warp.rice.edu/trac/wiki/peripheral_test This page has a web-based version of the document and an attached .ZIP file containing the source files.

Offline

 

#3 2007-Jan-26 14:00:29

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Re: Question On User IO Testing

Thanks. But I have another question in Updating the bitstream. The following error reports apear:

At Local date and time: Fri Jan 26 10:15:35 2007
xbash -q -c "cd /cygdrive/c/WARP2/BoardTests/IOTest/; /usr/bin/make -f system.make download; exit;" started...
powerpc-eabi-gcc -O2 C:/WARP2/files/PeripheralTest.c C:/WARP2/files/warplib.c  -o UserIOtest/executable.elf \
    -Wl,-T -Wl,UserIOtest_linker_script.ld  -g    -I./ppc405_0/include/  -IC:/WARP2/files/  -L./ppc405_0/lib/  \
 

/cygdrive/c/DOCUME~1/UCSD/LOCALS~1/Temp/cca7jKxG.o(.text+0x484): In function `dipswtest':
C:/WARP2/files/PeripheralTest.c:286: undefined reference to `WarpLib_segmapL'
/cygdrive/c/DOCUME~1/UCSD/LOCALS~1/Temp/cca7jKxG.o(.text+0x498):C:/WARP2/files/PeripheralTest.c:287: undefined reference to `WarpLib_segmapH'
collect2: ld returned 1 exit status
make: *** [UserIOtest/executable.elf] Error 1

The version of warp board I used is version 1.2.  The software's version is ISE v8.2i and EDK v8.2. But I have not installed the SystemGen v8.2 and Chipscope v8.2.

Junlin

Offline

 

#4 2007-Jan-26 15:40:01

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question On User IO Testing

hi Junlin- my apologies. The code didn't compile because of an old function name that isn't included in the current warplib.c. I updated the code in the .ZIP file I lined to above. The changes are minor, if you want to make them directly. In PeripheralTest.c, on lines 286-287, chage WarpLib_segmapL(DIPSTATE) and WarpLib_segmapH(DIPSTATE) to WarpLib_segmap(DIPSTATE).

Offline

 

#5 2007-Jan-26 16:29:25

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Re: Question On User IO Testing

Thanks. Other problem occured when I downloaded it to the hardware.

Connecting to cable (Parallel Port - LPT1) in ECP mode.
Checking cable driver.
Installing XilinxPC4Driver...
Successful.
LPT base address = 0378h.
Cable Type = 1, Revision = 3.
Setting cable speed to 5 MHz.
Cable connection established.
// *** BATCH CMD : identify
Identifying chain contents ....Version is 0001
'1': : Manufacturer's ID =Xilinx xc2vp70, Version : 1

INFO:iMPACT:1777 -
   Reading c:/xilinx/virtex2p/data/xc2vp70.bsd...

INFO:iMPACT:501 - '1': Added Device xc2vp70 successfully.
done.
ERROR:iMPACT:583 - '1': The idcode read from the device does not match the
   idcode in the bsdl File.
INFO:iMPACT:1578 - '1':  Device IDCODE :        00001111111111111111111111111111
INFO:iMPACT:1579 - '1': Expected IDCODE:    00000001001010111010000010010011
Elapsed time =      1 sec.
// *** BATCH CMD : identifyMPM
Elapsed time =      0 sec.
ERROR:iMPACT:2204 - Can only assign file to device 1.
ERROR:iMPACT:908 - Position specified is greater than the total number of
   devices.
// *** BATCH CMD : quit

Done!

The version of warp board I used is version 1.2.  The software's version is ISE v8.2i and EDK v8.2. But I have not installed the SystemGen v8.2 and Chipscope v8.2.

Junlin

Offline

 

#6 2007-Jan-26 19:32:41

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Re: Question On User IO Testing

hi, murphpo

My latest question about downloading the bitstream into WARP board is in the condition that I modified the PeripheralTest.c file directly in the project according to your advice. But after I download the newest version of PeripheralTest_Package.zip and replace the project's code, the following errors occur. The "WARP FPGA Board User I/O Reference Design" file is for WARP V1.1. Maybe it is not suitable for WARP V1.2.

*********************************************
Downloading Bitstream onto the target board
*********************************************
impact -batch etc/download.cmd

Release 8.2i - iMPACT I.31
Copyright (c) 1995-2006 Xilinx, Inc.  All rights reserved.
PMSPEC -- Overriding Xilinx file <c:/Xilinx/base/data/impact.acd> with local
file <c:/xilinx/data/impact.acd>

// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setCable -port auto
AutoDetecting cable. Please wait.

Connecting to cable (Parallel Port - LPT1).
Checking cable driver.
Driver windrvr6.sys version = 7.0.0.0.
LPT base address = 0378h.
ECP base address = 0778h.
ECP hardware is detected.
Cable connection established.

Connecting to cable (Parallel Port - LPT1) in ECP mode.
Checking cable driver.
Driver xpc4drvr.sys version = 1.0.4.0. LPT base address = 0378h.
Cable Type = 1, Revision = 3.
Setting cable speed to 5 MHz.
Cable connection established.
// *** BATCH CMD : identify
Identifying chain contents ....Version is 0000
INFO:iMPACT:1588 - '1':The part does not appear to be Xilinx Part.
'1': : Manufacturer's ID =Unknown , Version : 0

INFO:iMPACT:501 - '1': Added Device UNKNOWN successfully.
'2': : Manufacturer's ID =Unknown

INFO:iMPACT:501 - '1': Added Device UNKNOWN successfully.
'3': : Manufacturer's ID =Unknown
INFO:iMPACT:501 - '1': Added Device UNKNOWN successfully.
'4': : Manufacturer's ID =Unknown
INFO:iMPACT:501 - '1': Added Device UNKNOWN successfully.
done.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
The bsdl for device 'UNKNOWN' is out of date. Please check your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
Elapsed time =      0 sec.
// *** BATCH CMD : identifyMPM
Elapsed time =      0 sec.
// *** BATCH CMD : assignFile -p 2 -file "implementation/download.bit"
'2': Loading file 'implementation/download.bit' ...

done.
INFO:iMPACT:1777 -
   Reading c:/xilinx/virtex2p/data/xc2vp70.bsd...

INFO:iMPACT:501 - '2': Added Device xc2vp70 successfully.
// *** BATCH CMD : program -p 2
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:583 - '2': The idcode read from the device does not match the
   idcode in the bsdl File.
INFO:iMPACT:1578 - '2':  Device IDCODE :        00001110110110110110110110110111
INFO:iMPACT:1579 - '2': Expected IDCODE:    00000001001010111010000010010011
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
ERROR:iMPACT:477 - The bsdl for device 'UNKNOWN' is out of date. Please check
   your installation.
Elapsed time =      0 sec.
// *** BATCH CMD : quit

Done!

The version of warp board I used is version 1.2.  The software's version is ISE v8.2i and EDK v8.2. But I have not installed the SystemGen v8.2 and Chipscope v8.2.


Junlin

Last edited by jlliu (2007-Jan-26 19:33:38)

Offline

 

#7 2007-Jan-27 20:50:31

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question On User IO Testing

hi Junlin- based on your error message, it appears you're using a Xilinx Parallel IV programming cable to configure the FPGA. We recommend you use the built-in USB configuration circuit on the board. To do this, disconnect the parallel cable from the FPGA board and connect a standard USB cable between your PC and the FPGA board's USB port (J52).

You can also use your Parallel IV cable, but you must first disable the USB configuraiton port on your FPGA board. Follow the directions in this entry of our FAQ.

Offline

 

#8 2007-Jan-29 21:07:30

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Re: Question On User IO Testing

Thanks. I am trying to use USB to download the bit file into the FPGA. Nothing happened after downloading. I do not know which light is the lowest light mentioned in FAQ. The following is the downloading report. Please help me to make sure whether the download is successful or not.

At Local date and time: Mon Jan 29 18:10:57 2007
xbash -q -c "cd /cygdrive/c/WARP2/BoardTests/IOTest/; /usr/bin/make -f system.make download; exit;" started...

*********************************************
Downloading Bitstream onto the target board
*********************************************
impact -batch etc/download.cmd

Release 8.2i - iMPACT I.31
Copyright (c) 1995-2006 Xilinx, Inc.  All rights reserved.
PMSPEC -- Overriding Xilinx file <c:/Xilinx/base/data/impact.acd> with local
file <c:/xilinx/data/impact.acd>

// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setCable -port auto
AutoDetecting cable. Please wait.

Connecting to cable (Parallel Port - LPT1).
Checking cable driver.
Driver windrvr6.sys version = 7.0.0.0.
LPT base address = 0378h.
ECP base address = 0778h.
ECP hardware is detected.
Cable connection established.

Connecting to cable (Parallel Port - LPT1) in ECP mode.
Checking cable driver.
Driver xpc4drvr.sys version = 1.0.4.0. LPT base address = 0378h.
Cable Type = 1, Revision = 3.
Setting cable speed to 5 MHz.
Cable connection established.
// *** BATCH CMD : identify
Identifying chain contents ....Version is 0001
'1': : Manufacturer's ID =Xilinx xc2vp70, Version : 1

INFO:iMPACT:1777 -
   Reading c:/xilinx/virtex2p/data/xc2vp70.bsd...

INFO:iMPACT:501 - '1': Added Device xc2vp70 successfully.
Version is 0000
'2': : Manufacturer's ID =Xilinx xccace, Version : 0
INFO:iMPACT:1777 -
   Reading c:/xilinx/acecf/data/xccace.bsd...

INFO:iMPACT:501 - '1': Added Device xccace successfully.
done.
Chain TCK freq = 16700000.
Validating chain...
Boundary-scan chain validated successfully.
Elapsed time =      0 sec.
// *** BATCH CMD : identifyMPM
Elapsed time =      0 sec.
// *** BATCH CMD : assignFile -p 2 -file "implementation/download.bit"
'2': Loading file 'implementation/download.bit' ...

done.
INFO:iMPACT:501 - '2': Added Device xc2vp70 successfully.
// *** BATCH CMD : program -p 2
Chain TCK freq = 16700000.
Validating chain...
Boundary-scan chain validated successfully.
'2':Programming  device...

done.
'2': Reading status register contents...
CRC error                                         :         0
Decryptor security set                            :         0
DCM locked                                        :         1
DCI matched                                       :         1
legacy input error                                :         0
status of GTS_CFG_B                               :         1
status of GWE                                     :         1
status of GHIGH                                   :         1
value of MODE pin M0                              :         0
value of MODE pin M1                              :         1
value of MODE pin M2                              :         0
value of CFG_RDY (INIT_B)                         :         1
DONEIN input from DONE pin                        :         1
IDCODE not validated while trying to write FDRI   :         0
write FDRI issued before or after decrypt operation:         0
Decryptor keys not used in proper sequence        :         0
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 0111 0101 1000 0000 0000 0000 0000
INFO:iMPACT:579 - '2': Completed downloading bit file to device.
INFO:iMPACT:580 - '2':Checking done pin ....done.
'2': Programmed successfully.
Elapsed time =      6 sec.
// *** BATCH CMD : quit

Done!


Junlin

Offline

 

#9 2007-Jan-29 23:42:52

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question On User IO Testing

hi Junlin- that report indicates that the download was successful over the Parallel IV JTAG cable. Do you have both a Parallel IV cable and USB cable connected? If the Parallel IV cable is working (which appears to be the case), disconnect the USB and use just the Parallel IV cable.

The LEDs described in the User IO document are the red user LEDs in the center of the FPGA board (D8-D11), just above the five push buttons.

The best way to know whether the program is working is to use a serial cable to view the PowerPC's STDOUT on a PC. Are you using TerraTerm (explained on pg. 27 of the User IO PDF document)? It should display the outputs from any printf commands in your code.

Offline

 

#10 2007-Feb-01 19:43:56

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Re: Question On User IO Testing

Thanks. I still have a question about downloading by USB. When I disconnect the JTAG and download the bitstream by USB, the following errors occur. But if I connect the JTAG and USB simutanuously, the bitstream will be downloaded by JTAG. So how can I download it by USB?

*********************************************
Downloading Bitstream onto the target board

*********************************************
impact -batch etc/download.cmd

Release 8.2.02i - iMPACT I.34
Copyright (c) 1995-2006 Xilinx, Inc.  All rights reserved.
PMSPEC -- Overriding Xilinx file <c:/Xilinx/base/data/impact.acd> with local
file <c:/xilinx/data/impact.acd>

// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setCable -port auto
AutoDetecting cable. Please wait.

Connecting to cable (Parallel Port - LPT1).
Checking cable driver.
Driver windrvr6.sys version = 7.0.0.0. LPT base address = 0378h.
ECP base address = 0778h.
ECP hardware is detected.
Cable connection established.

Connecting to cable (Parallel Port - LPT1) in ECP mode.
Checking cable driver.
Driver xpc4drvr.sys version = 1.0.4.0. LPT base address = 0378h.
Cable Type = 1, Revision = 3.
Setting cable speed to 5 MHz.
Cable connection established.
// *** BATCH CMD : identify
ERROR:iMPACT:2243 - A reference voltage has not been detected on the ribbon
   cable
       interface to the target system ( pin 2 ).  Check that power is applied
        to the target system and that the ribbon cable is properly seated at
        both ends.  The status LED on Parallel Cable IV will be GREEN if target
        voltage is in the proper range and applied to the correct pin.Elapsed time =      0 sec.
// *** BATCH CMD : identifyMPM
ERROR:iMPACT:2243 - A reference voltage has not been detected on the ribbon
   cable
       interface to the target system ( pin 2 ).  Check that power is applied
        to the target system and that the ribbon cable is properly seated at
        both ends.  The status LED on Parallel Cable IV will be GREEN if target
        voltage is in the proper range and applied to the correct pin.Elapsed time =      0 sec.

make: *** [download] Error 1

Done!

Br, Junlin

Offline

 

#11 2007-Feb-01 20:28:23

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question On User IO Testing

hi Junlin- you should disconnect the Parallel IV cable from your PC before using USB to configure the FPGA. Xilinx iMPACT will detect a Parallel IV cable before USB, even if the parallel cable isn't connected to a target FPGA board.

Offline

 

Board footer