|
NAMEsrec_cmp - compare two EPROM load files for equalitySYNOPSISsrec_cmp [ option... ] filename...srec_cmp -Help srec_cmp -VERSion DESCRIPTIONThe srec_cmp program is used to compare two EPROM load files for equality. This comparison is performed irrespective of the load order of the data in each of the files.INPUT FILE SPECIFICATIONSInput may be qualified in two ways: you may specify a data file or a data generator. format and you may specify filters to apply to them. An input file specification looks like this:data‐file [ filter ... ]
data‐generator [ filter ... ] Data FilesInput from data files is specified by file name and format name. An input file specification looks like this:filename [ format ][
-ignore‐checksums ]
The default format is Motorola S‐Record format, but many others
are also understood.
Data GeneratorsIt is also possible to generate data, rather than read it from a file. You may use a generator anywhere you could use a file. An input generator specification looks like this:-GENerate address‐range
-data‐source
Generators include random data and various forms of constant data.
Common Manual PageSee srec_input(1) for complete details of input specifiers. This description is in a separate manual page because it is common to more than one SRecord command.OPTIONSThe following options are understood:
This option may be used to enable warnings about input
files where the data records are not in strictly ascending address order. Only
one warning is issued per input file. This is the default.
Note: the output of srec_cat(1) is always in this order. Note: This option must be used before the input file. This is because if there are several files on the command line, each may need different settings. The setting remains in force until the next -Disable_Sequence_Warnings option.
This option may be used to disable warnings about input
files where the data records are not in strictly ascending address order.
Note: This option must be used before the offending input file. This is because if there are several files on the command line, each may need different settings. The setting remains in force until the next -Ensable_Sequence_Warnings option.
Use this option to permit a file to contain redundant
values for some memory locations. The default is for this condition to be a
warning.
Use this option to permit a file to contain contradictory
values for some memory locations. The last value in the input(s) will be used.
The default is for this condition to be a fatal error.
All other options will produce a diagnostic error. All options may be abbreviated; the abbreviation is documented as the upper case letters, all lower case letters and underscores (_) are optional. You must use consecutive sequences of optional letters. All options are case insensitive, you may type them in upper case or lower case or a combination of both, case is not important. For example: the arguments “-help”, “-HEL” and “-h” are all interpreted to mean the -Help option. The argument “-hlp” will not be understood, because consecutive optional characters were not supplied. Options and other command line arguments may be mixed arbitrarily
on the command line.
The GNU long option names are understood. Since all option names
for srec_cmp are long, this means ignoring the extra leading
“-”. The
“--option=value” convention is
also understood.
EXIT STATUSThe srec_cmp command will exit with a status of 1 on any error. The srec_cmp command will only exit with a status of 0 if there are no errors.EXAMPLEA common use for the srec_cmp command is to verify that a particular signature is present in the code. In this example, the signature is in a file called “signature[rq], and the EPROM image is in a file called “image[rq]. We assume they are both Motorola S‐Record format, although this will work for all formats:srec_cmp signature image -crop -within
signature
The signature need not be at the start of memory, nor need it be one single contiguous piece of memory. In the above example, the portions of the image which have the same address range as the signature are compared with the signature. COPYRIGHTsrec_cmp version 1.64Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Peter Miller The srec_cmp program comes with ABSOLUTELY NO WARRANTY; for
details use the 'srec_cmp -VERSion License' command. This is free
software and you are welcome to redistribute it under certain conditions;
for details use the 'srec_cmp -VERSion License' command.
MAINTAINER
Visit the GSP FreeBSD Man Page Interface. |