Guest helltone

Problem with SPI

Recommended Posts

Guest helltone

Hi, I have a papilio 2.04 250k board and programming the FPGA works fine, but programming the SPI I have the following error:

$ papilioloader -v -b top.bit -f bscan_spi_xc3s250e.bit -sp -r

Using built-in device list

JTAG chainpos: 0 Device IDCODE = 0x11c1a093 Desc: XC3S250E

Uploading "top.bit". Done.

Programming time 271.3 ms

Programming External Flash Memory with "bscan_spi_xc3s250e.bit".

Uknown Flash Manufacturer

Error: SPI Status Register [0x00] mismatch (Wrong device or device not ready)..

Error occured.

USB transactions: Write 87 read 4 retries 3

Any ideas?

Share this post


Link to post
Share on other sites

Hello,

Try to reverse your -f and -b parameters, there was a typo in the help section of the original source code. I thought we corrected that but maybe not.

So try the following:

papilioloader -v -b bscan_spi_xc3s250e.bit -f top.bit -sp -r

Jack.

Share this post


Link to post
Share on other sites
Guest helltone

Tried, did not work. We have bought a dozen boards and I cannot program any of them, so I imagine this is not a problem with the boards?

Share this post


Link to post
Share on other sites

Part of my standard testing procedure before I send boards out is to program the SPI Flash chip with the ASCIIText sketch. So if you see the RX led flash when you plug the board into the USB port then you know the SPI flash works correctly.

Where did you get the papilioloader you are using from? Are you running it under Linux or Windows?

Here are a couple of things to try. First of all, if you download the Arduino IDE there is a board option to "burn" the design. This uses the papilioloader in SPI mode and can provide a working example.

Or if you download the Papilio Loader 1.4 it has a shell script for programming the Papilio One that includes an option and an example of programming the SPI flash.

Both can be downloaded from the download page.

Jack.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now