Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

error load program spi flash

Status
Not open for further replies.

pooya_BA

Junior Member level 2
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.


1.JPG



2.JPG


3.JPG


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

INFO:iMPACT - Current time: 5/16/2021 9:30:37 AM
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 C:/Xilinx/14.1/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 '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':programming in x4 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 = 78 sec.

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':programming 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?
 

@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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top