UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer penn
Observer
8,949 Views
Registered: ‎04-02-2014

Virtex-5 Programming failed with SPI

Hi all,

 

We have some questions about the programming Virtex-5 through SPI.

 

I set the mode[2:0] to [0,0,1],

 

Some programming informations are shown in ISE iMPACT.

 

GUI --- Auto connect to cable...
INFO:iMPACT - Connecting to TCF agent...
INFO:iMPACT - Digilent Plugin: Plugin Version: 2.4.4
INFO:iMPACT - Digilent Plugin: no JTAG device was found.
AutoDetecting cable. Please wait.
*** WARNING ***: When port is set to auto detect mode, cable speed is set to default 6 MHz regardless of explicit arguments supplied for setting the baud rates
PROGRESS_START - Starting Operation.
Connecting to cable (Usb Port - USB21).
Checking cable driver.
 Driver file xusbdfwu.sys found.
 Driver version: src=1027, dest=1027.
 Driver windrvr6.sys version = 10.2.1.0. WinDriver v10.21 Jungo (c) 1997 - 2010 Build Date: Aug 31 2010 x86_64 64bit SYS 14:14:44, version = 1021.
 Cable PID = 0008.
 Max current requested during enumeration is 280 mA.
Type = 0x0605.
 Cable Type = 3, Revision = 0.
 Setting cable speed to 6 MHz.
Cable connection established.
Firmware version = 1100.
File version of D:/Xilinx/14.5/ISE_DS/ISE/data/xusbdfwu.hex = 1100.
Firmware hex file version = 1100.
PLD file version = 0012h.
 PLD version = 0012h.
PROGRESS_END - End Operation.
Elapsed time =      1 sec.
Type = 0x0605.
ESN not available for this cable.
Attempting to identify devices in the boundary-scan chain configuration...
INFO:iMPACT - Current time: 2014/6/20 11:30:43
PROGRESS_START - Starting Operation.
Identifying chain contents...done.
ERROR:iMPACT - A problem may exist in the hardware configuration. Check that the cable, scan chain, and power connections are intact, that the specified scan chain configuration matches the actual hardware, and that the power supply is adequate and delivering the correct voltage.
PROGRESS_END - End Operation.
Elapsed time =      0 sec.
Attempting to identify devices in the boundary-scan chain configuration...
INFO:iMPACT - Current time: 2014/6/20 11:30:52
PROGRESS_START - Starting Operation.
Identifying chain contents...done.
ERROR:iMPACT - A problem may exist in the hardware configuration. Check that the cable, scan chain, and power connections are intact, that the specified scan chain configuration matches the actual hardware, and that the power supply is adequate and delivering the correct voltage.
PROGRESS_END - End Operation.
Elapsed time =      0 sec.
Attempting to identify devices in the boundary-scan chain configuration...
INFO:iMPACT - Current time: 2014/6/20 11:31:19
PROGRESS_START - Starting Operation.
Identifying chain contents...'0': : Manufacturer's ID = Xilinx xc5vlx220, Version : 2
INFO:iMPACT:1777 -
Reading D:/Xilinx/14.5/ISE_DS/ISE/virtex5/data/xc5vlx220.bsd...
INFO:iMPACT:501 - '1': Added Device xc5vlx220 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
done.
PROGRESS_END - End Operation.
Elapsed time =      0 sec.
Selected part: M25P128
Unprotect sectors: FALSE
INFO:iMPACT - Current time: 2014/6/20 11:31:48
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 33000000.
Validating chain...
Boundary-scan chain validated successfully.
1: Device Temperature: Current Reading:   33.64 C, Min. Reading:   31.18 C, Max. Reading:   34.13 C
1: VCCINT Supply: Current Reading:   0.996 V, Min. Reading:   0.996 V, Max. Reading:   0.999 V
1: VCCAUX Supply: Current Reading:   2.499 V, Min. Reading:   2.490 V, Max. Reading:   2.505 V
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file D:/Xilinx/14.5/ISE_DS/ISE/virtex5/data/xc5vlx220_spi.cor.
'1': Downloading core...
 Match_cycle = 0.
 LCK_cycle = NoWait.
LCK cycle: NoWait
done.
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1111 1001 1110 0000 1011 1000 0000
INFO:iMPACT:2492 - '1': Completed downloading core to device.
'1': IDCODE is '202018' (in hex).
'1': ID Check passed.
 '1': IDCODE is '202018' (in hex).
'1': ID Check passed.
 '1': Erasing Device.
'1': Using Sector Erase.
'1': Programming Flash.
'1': Reading device contents...
Failed at address, 0
'1': Verification Terminated
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time =    243 sec. 

 

I paste my configuration  circuit as follow:

 

 

CONFIG.PNG

In the configuration process,the D16 

0 Kudos
7 Replies
Observer penn
Observer
8,948 Views
Registered: ‎04-02-2014

Re: Virtex-5 Programming failed with SPI

In the configuration process, D16 is always light.

0 Kudos
Moderator
Moderator
8,944 Views
Registered: ‎01-15-2008

Re: Virtex-5 Programming failed with SPI

looks fpga is unable to read the SPI flash and it is failing at address '0'.

can you check if this spi flash has some read protection. generally this should not happen.

you can check by trying to readback operation of  the spi flash thorugh impact.

 

--Krishna

 

0 Kudos
Observer penn
Observer
8,941 Views
Registered: ‎04-02-2014

Re: Virtex-5 Programming failed with SPI

Thank you.

 

The SPI Flash memory is M25P128 without any read protection, Coule you tell me how to readback operation through iMPACT.

 

Is there a possible of hardware errors? Such as weld,the wire of PCB and so on?

0 Kudos
Moderator
Moderator
8,939 Views
Registered: ‎01-15-2008

Re: Virtex-5 Programming failed with SPI

attached is the snapshot showing readback.

may be you can check the hold signal of the spi flash has proper voltage level

 

--Krishna

 

readback.jpg
0 Kudos
Observer penn
Observer
8,934 Views
Registered: ‎04-02-2014

Re: Virtex-5 Programming failed with SPI

I checked the voltage of the SPI pin,  the HOLD pin voltage is 3.3V,and others are in correct state.

 

Readback succeeded.

 

readback-1.png

0 Kudos
Xilinx Employee
Xilinx Employee
8,922 Views
Registered: ‎07-31-2012

Re: Virtex-5 Programming failed with SPI

Hi,

 

Can you try with a different cable Platform USB cable-II if you have?

 

Please check these few AR's which talk about the same error. 

 

http://www.xilinx.com/support/answers/22160.html

 

http://forums.xilinx.com/t5/Spartan-Family-FPGAs/ERROR-iMPACT-585-A-problem-may-exist-in-the-hardware/td-p/11283

 

Hope this helps.

Thanks,
Anirudh

PS: Please MARK this as an answer in case it helped resolve your query.Give kudos in case the post guided you to a solution.
0 Kudos
Observer penn
Observer
8,879 Views
Registered: ‎04-02-2014

Re: Virtex-5 Programming failed with SPI

Thanks.

 

I will read the documents that you give me later.

 

The same errors appear in Impcat when I use the Platform Cable USB II.

 

GUI --- Auto connect to cable...
INFO:iMPACT - Connecting to TCF agent...
INFO:iMPACT - Digilent Plugin: Plugin Version: 2.4.4
INFO:iMPACT - Digilent Plugin: no JTAG device was found.
AutoDetecting cable. Please wait.
*** WARNING ***: When port is set to auto detect mode, cable speed is set to default 6 MHz regardless of explicit arguments supplied for setting the baud rates
PROGRESS_START - Starting Operation.
Connecting to cable (Usb Port - USB21).
Checking cable driver.
 Driver file xusbdfwu.sys found.
 Driver version: src=1027, dest=1027.
 Driver windrvr6.sys version = 10.2.1.0. WinDriver v10.21 Jungo (c) 1997 - 2010 Build Date: Aug 31 2010 x86_64 64bit SYS 14:14:44, version = 1021.
 Cable PID = 0008.
 Max current requested during enumeration is 300 mA.
Type = 0x0005.
write (count, cmdBuffer, dataBuffer) failed C0000004.
 Cable Type = 3, Revision = 0.
 Setting cable speed to 6 MHz.
Cable connection established.
Firmware version = 2301.
File version of D:/Xilinx/14.5/ISE_DS/ISE/data/xusb_xp2.hex = 2401.
Firmware hex file version = 2401.
Downloading D:/Xilinx/14.5/ISE_DS/ISE/data/xusb_xp2.hex.
Downloaded firmware version = 2401.
PLD file version = 200Dh.
 PLD version = 200Dh.
PROGRESS_END - End Operation.
Elapsed time =      1 sec.
Type = 0x0005.
ESN option: 000013B795A801.
Attempting to identify devices in the boundary-scan chain configuration...
INFO:iMPACT - Current time: 2014/6/23 11:25:37
PROGRESS_START - Starting Operation.
Identifying chain contents...'0': : Manufacturer's ID = Xilinx xc5vlx220, Version : 2
INFO:iMPACT:1777 -
Reading D:/Xilinx/14.5/ISE_DS/ISE/virtex5/data/xc5vlx220.bsd...
INFO:iMPACT:501 - '1': Added Device xc5vlx220 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
done.
PROGRESS_END - End Operation.
Elapsed time =      1 sec.
Override chain at index 0.
Overriding chain at index 0.
'1': Added Device 16M successfully.
----------------------------------------------------------------------
Override chain at index 0.
Overriding chain at index 0.
Override chain at index 0.
Overriding chain at index 0.

------------------------  GUI: Wizard Data Report  ---------------------------
      Compression : false
      Fill Value : FF
      Output Format : mcs
      Swap Bits : false
      LoadDirection : UP
      PROM Basename : SDRAM
      File Location : D:\Work\FPGA-Project\sdram/
      Auto Select : false
      Number of Revisions : 1
      Number of PROMs : 1
      PROM Name : 16M   PROM Size : 16777216 bits
-------------------------- END of Report ----------------------------
'1': Loading file 'D:/Work/FPGA-Project/sdram/sdram_module.bit' ...
INFO:iMPACT - Elapsed time =      2 sec.
done.
INFO:iMPACT:501 - '1': Added Device xc5vlx220 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
Add one device.656031INFO:iMPACT - Current time: 2014/6/23 11:26:26
Total configuration bit size = 53139456  bits.
Total configuration byte size = 6642432 bytes.
######### is 163840x655b00 (6642432) bytes loaded up from 0x0
Using user-specified prom size of 16384K
Writing file "D:\Work\FPGA-Project\sdram\SDRAM.mcs".
Writing file "D:\Work\FPGA-Project\sdram\SDRAM.prm".
Writing file "D:\Work\FPGA-Project\sdram\SDRAM.cfi".
Selected part: M25P128
Unprotect sectors: FALSE
INFO:iMPACT - Current time: 2014/6/23 11:26:49
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 33000000.
Validating chain...
Boundary-scan chain validated successfully.
1: Device Temperature: Current Reading:   34.13 C, Min. Reading:   28.72 C, Max. Reading:   34.13 C
1: VCCINT Supply: Current Reading:   0.996 V, Min. Reading:   0.996 V, Max. Reading:   0.999 V
1: VCCAUX Supply: Current Reading:   2.493 V, Min. Reading:   2.490 V, Max. Reading:   2.505 V
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file D:/Xilinx/14.5/ISE_DS/ISE/virtex5/data/xc5vlx220_spi.cor.
'1': Downloading core...
 Match_cycle = 0.
 LCK_cycle = NoWait.
LCK cycle: NoWait
done.
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1111 1001 1110 0000 1011 1000 0000
INFO:iMPACT:2492 - '1': Completed downloading core to device.
'1': IDCODE is '202018' (in hex).
'1': ID Check passed.
 '1': IDCODE is '202018' (in hex).
'1': ID Check passed.
 '1': Erasing Device.
'1': Using Sector Erase.
'1': Programming Flash.
'1': Reading device contents...
Failed at address, 0
'1': Verification Terminated
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time =    273 sec.

0 Kudos