Cactus

Uploading to SPI flash from command line

Recommended Posts

Hi,

 

I can use papilio-prog -f foo.bit to upload my bitstream to RAM, or I can use the Java GUI to flash it. Is there a way to use papilio-prog to flash to SPI from the command line? The obvious flag would seem to be -b, but that just results in:

 

Please specify main bit file (-f <bitfile>)
 
 

Share this post


Link to post
Share on other sites

You need both -f and -b flags. The first one points to the bit file you want to program to flash and the second one to the bscan file appropriate for your FPGA.

Share this post


Link to post
Share on other sites

yes, I can confirm this works on Linux at least (and from the GUI).

The "-b" file implements a temporary interface on the FPGA that passes the bitstream to the flash memory, comes with the tools, filename matches the board you're using.

Share this post


Link to post
Share on other sites

So, on a Papilio One 500k, I would use bscan_spi_xc3s500e.bit as the -b file? And the Java GUI just auto-detects it and picks the right one?

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