7.2.3.22 Serial Hexmate Option
The
-serial=specs
option will store a
particular HEX value sequence at a fixed address. The usage of this option
is:-serial=Code[+/-Increment]@Address[+/-Interval][rRepetitions]
where:Code
is a hexadecimal sequence to store. The first byte specified is stored at the lowest address.Increment
is optional and allows the value ofCode
to change by this value with each repetition (if requested).Address
is the location to store this code, or the first repetition thereof. Its interpretation is based on the addressing value (see 7.2.3.10 Addressing Hexmate Option).Interval
is optional and specifies the address shift per repetition of this code.Repetitions
is optional and specifies the number of times to repeat this code.
All numerical arguments are assumed to be hexadecimal values, except for
the Repetitions
argument, which is decimal value by default.
Note that this option inserts data into the output HEX file, thus, to prevent a conflict, you must ensure that the locations where this data is to be placed are not already populated by other data from a HEX file or from another option.
For
example:
-serial=000001@EFFE
will store HEX code
0x00001 to address 0xEFFE, assuming an addressing value of 1.Another
example:
-serial=0000+2@1000+10r5
will store 5 codes,
beginning with value 0000 at address 0x1000. Subsequent codes will appear at address
intervals of +0x10 and the code value will change in increments of +0x2.