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: 
Visitor sidh96
Visitor
1,763 Views
Registered: ‎01-31-2018

Flash SPI problem with Custom Spartan 6 board

Hi,

 

I am working with a simple custom board using Spartan 6 XC6SLX9-TQG144. Right now i am trying to program the SPI memory that is in the board, which is a Cypress S25FL064L, and im not able to identify it in the IMPACT software (14.7 Linux Version).

 

I have already found information around the net about the different compatible versions of SPI for IMPACT, and i understand that the one that i am using is a more recent than the compatible one with the software (S25FL064P). I followed the example from the Cypress site and some other forums around:

 

https://community.cypress.com/docs/DOC-10499

https://www.xilinx.com/support/answers/11630.html (Following the Linux example)

 

to "bypass" the famous ID Check that wont let us program the recent memory. The thing is that i still cant program the memory because IMPACT keeps doing the ID Code Check even if i change the environment variable XIL_IMPACT_SKIPIDCODECHECK=1

 

I also checked the board connections and they are good (following the SPI interface from the Xilinx Documentation, page 40 to 44):

https://www.xilinx.com/support/documentation/user_guides/ug380.pdf

 

Does someone knows if i am missing something to succesfully program the SPI? Or another solution? I am running out of ideas...

 

Hector S.

0 Kudos
9 Replies
Moderator
Moderator
1,761 Views
Registered: ‎01-15-2008

Re: Flash SPI problem with Custom Spartan 6 board

where have you have set the environment variable?

you will need to set in the system variables not in the user variables.

Try this and if you see still issues then post the complet error message in impact tool

0 Kudos
Visitor sidh96
Visitor
1,743 Views
Registered: ‎01-31-2018

Re: Flash SPI problem with Custom Spartan 6 board

Hi @kkn

 

i used the terminal. I will try what you said, thanks.

0 Kudos
Visitor sidh96
Visitor
1,675 Views
Registered: ‎01-31-2018

Re: Flash SPI problem with Custom Spartan 6 board

@kkni have tried but i keep having the same error:

 

***************

 

INFO:iMPACT - Current time: 3/28/18 12:28 PM
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 25000000.
Validating chain...
Boundary-scan chain validated successfully.
INFO: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:    00000100000000000001000010010011
'1': SPI access core not detected. SPI access core will be downloaded to the device to enable operations.
INFO:iMPACT - Downloading core file /opt/Xilinx/14.7/ISE_DS/ISE/spartan6/data/xc6slx9_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 - 0010 0000 0110 1000
INFO:iMPACT:2492 - '1': Completed downloading core to device.
INFO: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:    00000100000000000001000010010011
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time =      1 sec.

 

***************

0 Kudos
Moderator
Moderator
1,650 Views
Registered: ‎01-15-2008

Re: Flash SPI problem with Custom Spartan 6 board

idcode failure error shown is for FPGA idcode, not for the SPI flash.

can you confirm you are able to configure the fpga with only bit file instead of mcs file?

check the following AR for the idcode error message you see

https://www.xilinx.com/support/answers/13529.html

0 Kudos
Visitor sidh96
Visitor
1,584 Views
Registered: ‎01-31-2018

Re: Flash SPI problem with Custom Spartan 6 board

@kknyes, i can program the FPGA with the .bit file but not the SPI with the .mcs

0 Kudos
Visitor sidh96
Visitor
1,579 Views
Registered: ‎01-31-2018

Re: Flash SPI problem with Custom Spartan 6 board

@kknI tried again and i got the next log:

 

INFO:iMPACT - Current time: 3/28/18 4:28 PM
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 /opt/Xilinx/14.7/ISE_DS/ISE/spartan6/data/xc6slx9_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 '01' (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 =      2 sec.

 

 

0 Kudos
Moderator
Moderator
1,570 Views
Registered: ‎01-15-2008

Re: Flash SPI problem with Custom Spartan 6 board

hope the SPI flash interface is proper.

It could be a tool issue based on the following AR

https://www.xilinx.com/support/answers/52567.html

 

can you try to use 14.1 impact tool and see if this version is able to program

 

https://www.xilinx.com/member/forms/download/xef.html?filename=Xilinx_LabTools_14.1_P.15xf.0.1.tar&akdm=1

 

 

0 Kudos
Visitor sidh96
Visitor
1,561 Views
Registered: ‎01-31-2018

Re: Flash SPI problem with Custom Spartan 6 board

@kknI tried with the 14.3 version and it wont even detect the cable, and i have all the necessary drivers.

 

And for the SPI interface, it must be correct because i followed the instructions in the Xilinx documentation, and i took a look to the signal integrity of the SPI port and all the signals seem to be proper.

0 Kudos
Visitor tuncsahin
Visitor
68 Views
Registered: ‎07-31-2019

Re: Flash SPI problem with Custom Spartan 6 board

Looking at the status registers your mode pins both seem high. 

INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1100 1110 1100

You should get the M1 mode pin to low for SPI Master configuration. If it is a custom board I would recommend pulling M1 pin down in your hardware design. 
0 Kudos