aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2015-10-17 11:07:09 -0600
committerJoel Holdsworth <joel@airwebreathe.org.uk>2015-10-17 11:08:38 -0600
commit33c1a3ea5aeb8a295c9fdc6f2cc8120246ef1134 (patch)
tree162e2dd45e27704618543849523eb7c1a40fd2b9
parentdbe71cd7c3b4f56c7f7480cc7148d5ce4708e18d (diff)
downloadicestorm-33c1a3ea5aeb8a295c9fdc6f2cc8120246ef1134.tar.gz
icestorm-33c1a3ea5aeb8a295c9fdc6f2cc8120246ef1134.tar.bz2
icestorm-33c1a3ea5aeb8a295c9fdc6f2cc8120246ef1134.zip
iceprog: Print help with a single fprintf call
-rw-r--r--iceprog/iceprog.c108
1 files changed, 54 insertions, 54 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c
index 8b0964f..25b8cf2 100644
--- a/iceprog/iceprog.c
+++ b/iceprog/iceprog.c
@@ -270,60 +270,60 @@ void flash_wait()
void help(const char *progname)
{
- fprintf(stderr, "\n");
- fprintf(stderr, "iceprog -- simple programming tool for FTDI-based Lattice iCE programmers\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "Notes for iCEstick (iCE40HX-1k devel board):\n");
- fprintf(stderr, " An unmodified iCEstick can only be programmed via the serial flash.\n");
- fprintf(stderr, " Direct programming of the SRAM is not supported. For direct SRAM\n");
- fprintf(stderr, " programming the flash chip and one zero ohm resistor must be desoldered\n");
- fprintf(stderr, " and the FT2232H SI pin must be connected to the iCE SPI_SI pin, as shown\n");
- fprintf(stderr, " in this picture: http://www.clifford.at/gallery/2014-elektronik/IMG_20141115_183838\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "Notes for the iCE40-HX8K Breakout Board:\n");
- fprintf(stderr, " Make sure that the jumper settings on the board match the selected\n");
- fprintf(stderr, " mode (SRAM or FLASH). See the iCE40-HX8K user manual for details.\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "\n");
- fprintf(stderr, "Usage: %s [options] <filename>\n", progname);
- fprintf(stderr, "\n");
- fprintf(stderr, " -d <device-string>\n");
- fprintf(stderr, " use the specified USB device:\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " d:<devicenode> (e.g. d:002/005)\n");
- fprintf(stderr, " i:<vendor>:<product> (e.g. i:0x0403:0x6010)\n");
- fprintf(stderr, " i:<vendor>:<product>:<index> (e.g. i:0x0403:0x6010:0)\n");
- fprintf(stderr, " s:<vendor>:<product>:<serial-string>\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -I [ABCD]\n");
- fprintf(stderr, " connect to the specified interface on the FTDI chip\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -r\n");
- fprintf(stderr, " read entire flash (32Mb / 4MB) and write to file\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -R\n");
- fprintf(stderr, " read first 256 kB from flash and write to file\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -c\n");
- fprintf(stderr, " do not write flash, only verify (check)\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -b\n");
- fprintf(stderr, " bulk erase entire flash before writing\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -n\n");
- fprintf(stderr, " do not erase flash before writing\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -S\n");
- fprintf(stderr, " perform SRAM programming\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -t\n");
- fprintf(stderr, " just read the flash ID sequence\n");
- fprintf(stderr, "\n");
- fprintf(stderr, " -v\n");
- fprintf(stderr, " verbose output\n");
- fprintf(stderr, "\n");
+ fprintf(stderr, "\n"
+ "iceprog -- simple programming tool for FTDI-based Lattice iCE programmers\n"
+ "\n"
+ "\n"
+ "Notes for iCEstick (iCE40HX-1k devel board):\n"
+ " An unmodified iCEstick can only be programmed via the serial flash.\n"
+ " Direct programming of the SRAM is not supported. For direct SRAM\n"
+ " programming the flash chip and one zero ohm resistor must be desoldered\n"
+ " and the FT2232H SI pin must be connected to the iCE SPI_SI pin, as shown\n"
+ " in this picture: http://www.clifford.at/gallery/2014-elektronik/IMG_20141115_183838\n"
+ "\n"
+ "\n"
+ "Notes for the iCE40-HX8K Breakout Board:\n"
+ " Make sure that the jumper settings on the board match the selected\n"
+ " mode (SRAM or FLASH). See the iCE40-HX8K user manual for details.\n"
+ "\n"
+ "\n"
+ "Usage: %s [options] <filename>\n"
+ "\n"
+ " -d <device-string>\n"
+ " use the specified USB device:\n"
+ "\n"
+ " d:<devicenode> (e.g. d:002/005)\n"
+ " i:<vendor>:<product> (e.g. i:0x0403:0x6010)\n"
+ " i:<vendor>:<product>:<index> (e.g. i:0x0403:0x6010:0)\n"
+ " s:<vendor>:<product>:<serial-string>\n"
+ "\n"
+ " -I [ABCD]\n"
+ " connect to the specified interface on the FTDI chip\n"
+ "\n"
+ " -r\n"
+ " read entire flash (32Mb / 4MB) and write to file\n"
+ "\n"
+ " -R\n"
+ " read first 256 kB from flash and write to file\n"
+ "\n"
+ " -c\n"
+ " do not write flash, only verify (check)\n"
+ "\n"
+ " -b\n"
+ " bulk erase entire flash before writing\n"
+ "\n"
+ " -n\n"
+ " do not erase flash before writing\n"
+ "\n"
+ " -S\n"
+ " perform SRAM programming\n"
+ "\n"
+ " -t\n"
+ " just read the flash ID sequence\n"
+ "\n"
+ " -v\n"
+ " verbose output\n"
+ "\n", progname);
exit(1);
}