error load program spi flash

Status
Not open for further replies.

pooya_BA

Junior Member level 2
Joined
Mar 24, 2021
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
194
I had a problem programming SPI flash. In the image below, you can see the circuit I designed.









I used "w25q64" for SPI flash and set the data width to 4, but I got the following error


I can program FPGA Spartan-6 but I have trouble programming SPI and I can't program the main program on this memory.
 

youve got a 1-bit datapath, but it’s trying to program in x4 mode, why?
In case 1x, I also encounter this error.

INFO:iMPACT - Current time: 6/7/2021 4:36:15 PM
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 25000000.
Validating chain...
Boundary-scan chain validated successfully.
'1': IDCODE is 'ef4017' (in hex).
'1': ID Check passed.
'1': IDCODE is 'ef4017' (in hex).
'1': ID Check passed.
'1': Erasing Device.
'1': Using Sector Erase.
'1': Erasing non-volatile quad-enable bit...
'1': Programming Flash.
'1': Reading device contents...
done.
'1': Verification completed.
'1'rogramming in x1 mode.
W25Q64BV Status Register Contents = 0x0200.
QUAD ENABLE : 1
STATUS REGISTER PROTECT 1 : 0
STATUS REGISTER PROTECT 0 : 0
SECTOR PROTECT : 0
TOP/BOTTOM PROTECT : 0
BLOCK PROTECT BIT 2 : 0
BLOCK PROTECT BIT 1 : 0
BLOCK PROTECT BIT 0 : 0
'1': Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and mode settings.
INFO:iMPACT - '1': Flash was not programmed successfully.
PROGRESS_END - End Operation.
Elapsed time = 77 sec.
 

Have you tried slowing down your programming clock speed?

Also, it doesn’t look like you’ve got your clock terminated properly. Look at this , page 42.
 
Last edited:

if you have JTAG defined ...first use JTAG to configure...and see everything works fine...
 

if you have JTAG defined ...first use JTAG to configure...and see everything works fine...
@bansalar

the Xilinx programmer uses JTAG to program the SPI flash connected to the FPGA SPI pins. It downloads the SPI flash programming FPGA image to bridge the JTAG to the SPI flash.

So they've already used JTAG to succesfully configure the part.

OP are you sure the SPI flash you selected is supported by Xilinx SPI programming?
 

Hello
I'm using "W25Q64BV" which is in the spi flash list.
--- Updated ---

Have you tried slowing down your programming clock speed?

Also, it doesn’t look like you’ve got your clock terminated properly. Look at this , page 42.
Yes, I did, but I still got into trouble.
 

What was the solution?
In the same file that you sent, it said that you should connect pins M1 and M2 to ground and vcc, and also connect the INIT_B pin to a Vcc resistor, which I did not do and could not be programmed.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…