
M5251C3 Evaluation Board Users Guide, Rev. 0
2-8
Freescale Semiconductor
The optional value <inc> can be used to increment (or decrement) the data value during the fill.
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 0x00020000 and ending at 0x00040000 with the value 0x1234, the
command is:
bf 20000 40000 1234
To fill a block of memory starting at 0x00020000 and ending at 0x0004000 with a byte value of 0xAB, the
command is:
bf.b 20000 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
To fill a block of memory starting at 0x00020000 and ending at 0x00040000 with data that increments by
2 for each <width>, the command is:
bf 20000 40000 0 2
2.4.4
BM (Block Move)
Usage: BM begin end dest
The BM command moves a contiguous block of memory starting at address begin and stopping at address
end to the new address dest. The BM command copies memory as a series of bytes, and does not alter the
original block.
The values for addresses begin, end, and dest may be absolute addresses specified as hexadecimal values,
or symbol names. If the destination address overlaps the block defined by begin and end, an error message
is produced and the command exits.
Examples:
To copy a block of memory starting at 0x00040000 and ending at 0x00080000 to the location 0x00200000,
the command is:
bm 40000 80000 200000
To copy the target code’s data section (defined by the symbols data_start and data_end) to 0x00200000,
the command is:
bm data_start data_end 200000
NOTE
Refer to “upuser” command for copying code/data into Flash memory.
Содержание freescale M5251C3
Страница 1: ...Document Number M5251C3UG Rev 0 05 2006 M5251C3 Evaluation Board Users Guide ...
Страница 6: ...M5251C3 Evaluation Board Users Guide Rev 0 vi Freescale Semiconductor ...
Страница 14: ...M5251C3 Evaluation Board Users Guide Rev 0 1 8 Freescale Semiconductor Figure 1 4 Default Jumper Locations ...
Страница 18: ...M5251C3 Evaluation Board Users Guide Rev 0 1 12 Freescale Semiconductor ...
Страница 42: ...M5251C3 Evaluation Board Users Guide Rev 0 2 24 Freescale Semiconductor ...
Страница 68: ...M5251C3 Evaluation Board Users Guide Rev 0 B 6 Freescale Semiconductor ...