Keil Logo

Display

The Display command shows the memory content for a specified memory range. The result is shown in the Command window.

Syntax Description
D [startAddr [,endAddr[,accSize]]] Show memory content from startAddr to endAddr.
  • startAddr defines the starting address of the memory. If startAddr is omitted, then memory contents are shown starting from the end of a prior Display command. If no previous Display command was entered, then memory display starts at address 0x0.
  • endAddr defines the end address of the memory range. If endAddr is omitted, then the amount of addresses shown depends on the size of the Command window. For some devices, the next 128-bytes are shown.
  • accSize is defined only for Cortex-M processor-based devices and represents the access size to read target memory. The following values are defined:
    Defined Number Description
    0x0 Is the default setting. Debugger decides which access size to use.
    0x1 Byte access
    0x2 Short (16-bit) access
    0x4 Word (32-bit) access

The memory content is displayed in HEX and in ASCII. The result consists of three columns:

  1. The address of the first byte.
  2. A maximum of 16 HEX bytes.
  3. ASCII characters for each displayed HEX byte. Dots ( . ) are shown for non-printing ASCII values.
Examples
>D main                         /* Output beginning at main                */

>D 0x100,0x1FF                  /* Output memory between 0x100 and 0x1FF   */


>D menu                         /* Output beginning at address menu        */

>D save_record, save_record + 0x2F
X:4000  62 62 62 62 62 62 62 62–62 62 62 62 62 62 62 62  bbbbbbbbbbbbbbbb
X:4010  62 62 62 62 62 62 62 62–62 62 62 62 62 62 62 62  bbbbbbbbbbbbbbbb
X:4020  62 62 62 62 62 62 00 00–00 00 00 00 00 00 00 00  bbbbbb..........


>D 0x20000000, 0x20000010, 0x1  /* Reads target memory with Byte accesses */

Note

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.