Main Page | Report this Page
Computers Forum Index  »  Computer Architecture - FPGA  »  Trouble in booting V5 FPGA from SPI flash....
Page 1 of 1    

Trouble in booting V5 FPGA from SPI flash....

Author Message
crescent...
Posted: Thu Oct 29, 2009 10:39 am
Guest
Hi all,
I am now using an Atmel AT45DB321D SPI flash booting xc5vsx50t-ff1136
and there is something wrong. First, the FPGA can be programmed
successfully, and the flash also can be programmed successfully both
directly & indirectly via iMPACT. But the FPGA just can't boot from
the flash. I checked the timing diagram of the signals: PROG_B,
INIT_B, M[2:0], FS[2:0], FCS_B, CCLK, MOSI, DIN, the MOSI did not
function right compared to the timing diagram in XAPP951 page8 (M[2:0]
=001,FS[2:0]=111). Pin MOSI clocks out 001100000.... after FCS_B goes
low and it should be 000010110...
I have no idea what's wrong and what should I do to fix this. So any
help would be thankfull!
 
John Adair...
Posted: Thu Oct 29, 2009 5:57 pm
Guest
Have you checked that your DONE signal has gone high thereby releasing
the chip out of config and into operation. Use the JTAG to do a status
read if you don't have access to the signal.

John Adair
Enterpoint Ltd. - Home of Merrick1. The ASIC Prototype Platform.


On 29 Oct, 10:39, crescent <hanpei... at (no spam) gmail.com> wrote:
Quote:
Hi all,
I am now using an Atmel AT45DB321D SPI flash booting xc5vsx50t-ff1136
and there is something wrong. First, the FPGA can be programmed
successfully, and the flash also can be programmed successfully both
directly & indirectly via iMPACT. But the FPGA just can't boot from
the flash. I checked the timing diagram of the signals: PROG_B,
INIT_B, M[2:0], FS[2:0], FCS_B, CCLK, MOSI, DIN, the MOSI did not
function right compared to the timing diagram in XAPP951 page8 (M[2:0]
=001,FS[2:0]=111). Pin MOSI clocks out 001100000.... after FCS_B goes
low and it should be 000010110...
I have no idea what's wrong and what should I do to fix this. So any
help would be thankfull!
 
crescent...
Posted: Fri Oct 30, 2009 1:29 am
Guest
On Oct 30, 1:57 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:
Quote:
Have you checked that your DONE signal has gone high thereby releasing
the chip out of config and into operation. Use the JTAG to do a status
read if you don't have access to the signal.

John Adair
Enterpoint Ltd. - Home of Merrick1. The ASIC Prototype Platform.

- Show quoted text -

John,
Thank you for your reply. The signal DONE on my board drives a LED
through a
buffer. After FPGA successfully configured, the LED should light which
is not seen
when programming from flash. That's to say the FPGA is under
configuration all the
time.
 
John Adair...
Posted: Fri Oct 30, 2009 11:38 am
Guest
Did you buffer the drive to the LED. If not this a common issue for
DONE not making the correct logic level. Double check with the JTAG
status to be sure.

John Adair
Enterpoint Ltd.


On 30 Oct, 01:29, crescent <hanpei... at (no spam) gmail.com> wrote:
Quote:
On Oct 30, 1:57 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:

Have you checked that your DONE signal has gone high thereby releasing
the chip out of config and into operation. Use the JTAG to do a status
read if you don't have access to the signal.

John Adair
Enterpoint Ltd. - Home of Merrick1. The ASIC Prototype Platform.
- Show quoted text -

John,
Thank you for your reply. The signal DONE on my board drives a LED
through a
buffer. After FPGA successfully configured, the LED should light which
is not seen
when programming from flash. That's to say the FPGA is under
configuration all the
time.
 
Gabor...
Posted: Fri Oct 30, 2009 2:53 pm
Guest
On Oct 30, 7:38 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:
Quote:
Did you buffer the drive to the LED. If not this a common issue for
DONE not making the correct logic level. Double check with the JTAG
status to be sure.

John Adair
Enterpoint Ltd.

On 30 Oct, 01:29, crescent <hanpei... at (no spam) gmail.com> wrote:

On Oct 30, 1:57 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:

Have you checked that your DONE signal has gone high thereby releasing
the chip out of config and into operation. Use the JTAG to do a status
read if you don't have access to the signal.

John Adair
Enterpoint Ltd. - Home of Merrick1. The ASIC Prototype Platform.
- Show quoted text -

John,
Thank you for your reply. The signal DONE on my board drives a LED
through a
buffer. After FPGA successfully configured, the LED should light which
is not seen
when programming from flash. That's to say the FPGA is under
configuration all the
time.



Other things to check:

1) Atmel Dataflash has a slightly different command set than
most SPI flash parts. Be sure you have the right command
for continuous array read.

2) If you think it's a startup issue rather than loading, you
can enable the "internal Done pipe" in the bitgen options.

Regards,
Gabor
 
crescent...
Posted: Mon Nov 02, 2009 5:14 am
Guest
On Oct 30, 10:53 pm, Gabor <ga... at (no spam) alacron.com> wrote:
Quote:
On Oct 30, 7:38 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:





Did you buffer the drive to the LED. If not this a common issue for
DONE not making the correct logic level. Double check with the JTAG
status to be sure.

John Adair
Enterpoint Ltd.

On 30 Oct, 01:29, crescent <hanpei... at (no spam) gmail.com> wrote:

On Oct 30, 1:57 am, John Adair <g... at (no spam) enterpoint.co.uk> wrote:

Have you checked that your DONE signal has gone high thereby releasing
the chip out of config and into operation. Use the JTAG to do a status
read if you don't have access to the signal.

John Adair
Enterpoint Ltd. - Home of Merrick1. The ASIC Prototype Platform.
- Show quoted text -

John,
Thank you for your reply. The signal DONE on my board drives a LED
through a
buffer. After FPGA successfully configured, the LED should light which
is not seen
when programming from flash. That's to say the FPGA is under
configuration all the
time.

Other things to check:

1) Atmel Dataflash has a slightly different command set than
most SPI flash parts.  Be sure you have the right command
for continuous array read.

2) If you think it's a startup issue rather than loading, you
can enable the "internal Done pipe" in the bitgen options.

Regards,
Gabor- Hide quoted text -

- Show quoted text -

I checked the signals again, find out that there is a glitch in the
middle of the two '1's in the MOSI output 001100000.... when FS[2:0]
=111.
Then, I change FS[2:0] to '101' in whicn mode the MOSI should output
0000001100...but it turns out to be 001000...
So, I doubt the clock signal is 2x slower than the original clock
signal. Is there any chance this would happen?
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Dec 09, 2009 3:42 pm