7
2.4.1 BF - Block of Memory Fill
BF
Usage: BF<width> begin end data
The BF command fills a contiguous block of memory starting at address begin, stopping at address end,
with the value data. Width modifies the size of the data that is written.
The value for addresses begin and end may be an absolute address specified as a hexadecimal value, or a
symbol name. The value for data may be a symbol name, or a number converted according to the user
defined radix, normally hexadecimal.
This command first aligns the starting address for the data access size, and then increments the address
accordingly during the operation. Thus, for the duration of the operation, this command performs properly
aligned memory accesses.
Examples:
To fill a memory block starting at 0x00010000 and ending at 0x00040000 with the value 0x1234, the
command is:
bf
10000 40000 1234
To fill a block of memory starting at 0x00010000 and ending at 0x0004000 with a byte value of 0xAB, the
command is:
bf.b
10000 40000 AB
To zero out the BSS section of the target code (defined by the symbols bss_start and bss_end), the
command is:
bf
bss_start bss_end 0