Motorola ColdFire MCF5282 User Manual Page 51

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 50
Chapter 3. Using the Monitor/Debug Firmware 3-9
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Commands
BF Block Fill
Usage:BF<width> begin end data <inc>
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. If no <width> is
specified, the default of word sized data is used.
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.
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
Page view 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 103 104

Comments to this Manuals

No comments