Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
zhgwork
Posts: 5
Registered: ‎10-19-2010
0

programming the spi flash failed

Hi all, I'm trying to load the .mcs file into a SPI FLASH PROMs(M25P40) using the Xilinx Platform Cable USB II. The problem is, I was able to load the .bit file into FPGA but I can't load .mcs file into SPI FLASH. there is always error message:

 

INFO:iMPACT - Current time: ????? ??? 18 15PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 25000000.
Validating chain...
Boundary-scan chain validated successfully.
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file F:/Xilinx/12.2/ISE_DS/ISE/spartan6/data/xc6slx16_spi.cor.
'1': Downloading core...
 LCK_cycle = NoWait.
LCK cycle: NoWait
done.
'1': Reading status register contents...
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1100 1110 1100
INFO:iMPACT:2492 - '1': Completed downloading core to device.
'1': IDCODE is '00' (in hex).
'1': ID Check failed.
INFO:iMPACT:2488 - The operation did not complete successfully.
INFO:iMPACT - SPI Device not found.
INFO:iMPACT:2488 - The operation did not complete successfully.
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time =      3 sec.
:11:56 2010
:10:00 2010
:08:59 2010

 

Attachments:

 

schematic01.JPG

 

 

schematic02.JPG

 

Visitor
zhgwork
Posts: 5
Registered: ‎10-19-2010
0

Re: programming the spi flash failed

Could you please help me to solve this? Thanks.

Xilinx Employee
borisq
Posts: 199
Registered: ‎08-07-2007
0

Re: programming the spi flash failed

hi zhgwork,

 

the issue is IDCODE check failure.

 

'1': IDCODE is '00' (in hex).
'1': ID Check failed.

 

The IDCODE iMPACT reads from SPI is 00, which means the MISO is always low.

 

you can probe the pin with an oscilloscope and check to see if the MISO toggles when you perform programming operations.

Visitor
zhgwork
Posts: 5
Registered: ‎10-19-2010
0

Re: programming the spi flash failed

Thanks.

Yes. The MISO signal is always low. But the MOSI is always HIGH.

Visitor
zhgwork
Posts: 5
Registered: ‎10-19-2010
0

Re: programming the spi flash failed

Addationally, the CSO and CCLK signals is corrected.

Visitor
zhgwork
Posts: 5
Registered: ‎10-19-2010
0

Re: programming the spi flash failed

error message:

 

INFO:iMPACT - Current time: ������ ʮ�� 2// *** BATCH CMD : Program -p 1 -spi
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 25000000.
Validating chain...
Boundary-scan chain validated successfully.
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file F:/Xilinx/12.2/ISE_DS/ISE/spartan6/data/xc6slx16_spi.cor.
'1': Downloading core...
 LCK_cycle = NoWait.
LCK cycle: NoWait
done.
'1': Reading status register contents...
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1100 1110 1100
INFO:iMPACT:2492 - '1': Completed downloading core to device.
'1': IDCODE is '00' (in hex).
'1': ID Check failed.
INFO:iMPACT:2488 - The operation did not complete successfully.
INFO:iMPACT - SPI Device not found.
INFO:iMPACT:2488 - The operation did not complete successfully.
'1': Programming device...
 LCK_cycle = NoWait.
LCK cycle: NoWait
done.
'1': Reading status register contents...
[0] CRC ERROR                                                              :         0
[1] IDCODE ERROR                                                           :         0
[2] DCM LOCK STATUS                                                        :         1
[3] GTS_CFG_B STATUS                                                       :         1
[4] GWE STATUS                                                             :         1
[5] GHIGH STATUS                                                           :         1
[6] DECRYPTION ERROR                                                       :         0
[7] DECRYPTOR ENABLE                                                       :         0
[8] HSWAPEN PIN                                                            :         1
[9] MODE PIN M[0]                                                          :         1
[10] MODE PIN M[1]                                                         :         1
[11] RESERVED                                                              :         0
[12] INIT_B PIN                                                            :         1
[13] DONE PIN                                                              :         1
[14] SUSPEND STATUS                                                        :         0
[15] FALLBACK STATUS                                                       :         0
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1100 1110 1100
INFO:iMPACT:579 - '1': Completed downloading bit file to device.
INFO:iMPACT - '1': Programming not completed successfully.
PROGRESS_END - End Operation.
Elapsed time =      2 sec.
1 14:53:19 2010
1 14:45:50 2010
1 14:38:58 2010
1 14:38:54 2010
1 14:34:28 2010
1 14:31:38 2010
1 14:27:13 2010

Xilinx Employee
borisq
Posts: 199
Registered: ‎08-07-2007
0

Re: programming the spi flash failed

I review your schematic.

I see you connect CMPMOSI to the SPI.

you should use MOSI, not CMPMOSI.

 

Boris

Visitor
p0o9i8
Posts: 2
Registered: ‎01-04-2010
0

Re: programming the spi flash failed

Hi 

had the same problem , turned out that the wrong CS* was connected. (CSI_B_0 instead of FCS_B)