5.6.4.3 Fill Flash Memory

Table 5-10. Fill Flash Memory Category
OptionDescriptionCommand Line1
Which areas to fillSpecify which area of Flash memory to fill.

No Fill - None (default).

Fill All Unused - Fill all unused memory.

Provide Range to fill - Fill a range of memory. Enter a range under “Memory Address Range.”

--fill=sequence

How to fill itSpecify how to fill Flash memory.

Provide sequence of values - provide a sequence under the Sequence option.

Constant or incrementing value - provide a constant, increment/decrement or increment/decrement constant under the same-named option.

--fill=sequence
SequenceWhen Provide sequence of values is selected, enter a sequence. The form is n1, n2, .... where n1 uses C syntax. Example: 0x10, 25, 0x3F, 16.--fill=sequence
ConstantWhen Constant or incrementing value is selected, enter a constant. Specify the constant using C syntax (for example, 0x for hex, 0 for octal). Example: 0x10 is the same as 020 or 16.--fill=sequence
Increment/DecrementWhen Constant or incrementing value is selected, you can select to increment or decrement the initial value of “Constant” on each consecutive address.

No Incrementing - do not change constant value.

Increment Const - increment the constant value by the amount specified under the option “Increment/Decrement Constant.”

Decrement Const - decrement the constant value by the amount specified under the option “Increment/Decrement Constant.”

--fill=sequence
Increment/Decrement ConstantWhen Increment Const or Decrement Const is selected, enter a constant increment or decrement value. Specify the constant using C syntax (for example, 0x for hex, 0 for octal). Example: 0x10 is the same as 020 or 16.--fill=sequence
Memory Address RangeWhen Provide Range to fill is selected, enter the range here. Specify range as Start:End where Start and End use C syntax. Example 0x100:0x1FF is the same as 256:511.--fill=sequence
  1. For details on linker command-line options, see MPLAB® XC32 Assembler, Linker and Utilities User’s Guide for PIC32A MCU.