The -fill
filter documentation states:
-Fill value address-range
This filter may be used to fill any gaps in the data with bytes equal to value. ...
(the highlight on bytes is mine).
This specifies that the fill value is a byte not a word.
From the srec_cat examples on filling blanks, what you need to use the -generate
option with -repeat-data
; something akin to this:
srec_cat <infile>
?generator ’(’ <startaddress> <end address> ?minus ?within <infile> ’)’
?repeat-data 0xaa 0xbb 0xcc 0xdd
?o <outfile>
(line-wrapped for clarity)
Note however that you may need to change the byte order to suit the required endianness of the target. I have omitted the -Output_Word
option in your original - that may or may not be needed.
I am guessing to some extent; you may need to experiment - the syntax of the srecord utilities and its documentation are somewhat arcane. Generators are described in the srec_input documentation which is not itself a utility but describes the generic input common to all srecord utilities.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…