9.2.10 --fill=option
Fill unused program memory. The format is:
--fill=[wn:]expression[@address[:end_address] | unused]
address and end_address
will specify the
range of program memory addresses to fill. If end_address
is not provided, then the expression will be written to the specific memory location at
address address
. The optional literal value unused may be
specified to indicate that all unused memory will be filled. If none of the location
parameters are provided, all unused memory will be filled. The expression will describe how
to fill the specified memory. The following options are available:
Single value
xc-dsc-ld --fill=0x12345678@unused
Range of values
xc-dsc-ld --fill=1,2,3,4,097@0x9d000650:0x9d000750
Incrementing value
xc-dsc-ld --fill=7+=911@unused
By default, the linker will fill using data that is instruction-word
length. For DSC devices, the default fill width is 24
bits. However, you may specify the value width using [w
n:]
, where w is the fill value's width and
n belongs to [1, 3]. For dsPIC33A devices, the default fill width is 32 bits.
Multiple fill options may be specified on the command line; the linker will always process fill options at specific locations first.