--- Quote Start ---
originally posted by rainhawk@Jul 5 2006, 10:52 AM
thanks again~
but what is the "flags" for 5.0 flash-programmer? how can i figure it out?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16658)
--- quote end ---
--- Quote End ---
With flags I mean the parameters, sorry about that. Like
nios2-flashprogrammer --sof=file
etc.
For me, typing in nios2-flash-programmer gives the following:
$ nios2-flash-programmer
5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: No SOF file specified
5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: No flash base specified
5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: Input file required when pr
ogramming flash
nios2-flash_programmer is a utility for programming various types of
data into flash memory connected to an Altera FPGA.
usage: nios2-flash-programmer
Options may be specified in any order.
--base=<addr> flash base address
--cable=<cable name> JTAG cable name
--device=<device number> JTAG index of FPGA
--epcs program an epcs flash
--erase completely erase the flash
--help print this message
--input=<file> input Flash file to program
--instance=<node index> OCI node index
--log=<file> file for logging progress
--nothing only download flash programmer design and
verify communication
--quiet only print errors
--relocate relocate code following a SOF (EPCS mode
only)
--silent silent mode - same as quiet
--sof=<file> location of target flash programmer
design SOF.
--verbose lots of interesting information
The nios2-flash-programmer utilizes a special target design to program
the flash memory on a board. This design is seamlessly downloaded to
the target by nios2-flash-programmer when using a Nios Development
Board. If you wish to program flash on a custom board, you must first
create your own flash programmer target design. Please refer to the
"Nios II Flash Programmer User Guide" for details of this procedure.
You may use the --erase option either stand-alone, or with an input file
to program. If used with an input file, the flash will be completely
erased before programming.
The --relocate option is used with EPCS serial configuration devices.
If data has already been programmed into the EPCS device, it will be
relocated at a higher address to make room for the new data being
programmed.
So it seems clear that some things have changed in the flash programmer.
I tried to find the command line call that is ran when you Upload the .bin but I couldn't, so I guess I was wrong about it being possible to change it then. So if you can't switch to 5.0, I guess I can't help you. Hopefully someone can.