20
2.4.2.
BC - Compare Blocks of Memory
BC
Usage: BC first second length
The BC command compares two contiguous blocks of memory the first block starting at address ‘first’, the
second block starting at address ‘second’, both of length ‘length’. If the blocks are not identical, then the
addresses of the first mismatch are displayed. The value for addresses ‘first’ and ‘second’ may be an absolute
address specified as a hexadecimal value or a symbol name. The value for length may be a symbol name or a
number converted according to the user defined radix, normally hexadecimal.
Examples:
To verify that the code in the first block of user FLASH space (128K) is identical to the code in user ADRAM
space, the command is,
bc 20000 FFE20000 30020000
2.4.3.
BF - Block of Memory Fill
BF
BF
BF
BF
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 0x30010000 and ending at 0x30040000 with the value 0x1234, the command
is:
bf
30010000 30040000 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
30010000 30040000 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
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..