From 3e478a4f5c1951b8e1c4d4f8eaf1cdfb55e9a87e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 21 Oct 2015 00:54:32 +0200 Subject: Revert "iceprog: Print help with a single fprintf call" This reverts commit 33c1a3ea5aeb8a295c9fdc6f2cc8120246ef1134. Conflicts: iceprog/iceprog.c --- iceprog/iceprog.c | 112 ++++++++++++++++++++++++++---------------------------- 1 file changed, 54 insertions(+), 58 deletions(-) (limited to 'iceprog') diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c index 6dd34a5..e175d88 100644 --- a/iceprog/iceprog.c +++ b/iceprog/iceprog.c @@ -270,64 +270,60 @@ void flash_wait() void help(const char *progname) { - 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] \n" - "\n" - " \n" - " the path to the file to read or write from, or - to read\n" - " from stdin and write to stdout\n" - "\n" - " -d \n" - " use the specified USB device:\n" - "\n" - " d: (e.g. d:002/005)\n" - " i:: (e.g. i:0x0403:0x6010)\n" - " i::: (e.g. i:0x0403:0x6010:0)\n" - " s:::\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); + 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] \n", progname); + fprintf(stderr, "\n"); + fprintf(stderr, " -d \n"); + fprintf(stderr, " use the specified USB device:\n"); + fprintf(stderr, "\n"); + fprintf(stderr, " d: (e.g. d:002/005)\n"); + fprintf(stderr, " i:: (e.g. i:0x0403:0x6010)\n"); + fprintf(stderr, " i::: (e.g. i:0x0403:0x6010:0)\n"); + fprintf(stderr, " s:::\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"); exit(1); } -- cgit v1.2.3