Keil Logo

SAVE

The SAVE command writes a memory image range to a file using the HEX386 format. This file can be loaded into the µVision Debugger using the LOAD command.

The optional parameter accsize is implemented for Cortex-M processor-based devices to read target memory.

Syntax Description
SAVE path\fname startAddr, endAddr [, accSize] Saves a memory range to a file fname located in the directory path.
  • path\fname saves the output to the file fname located in the directory path. If path is omitted, then the file is located in the root directory of the project.
  • startAddr defines the starting address of the memory. startAddr can be an expression that defaults on an address.
  • endAddr defines the end address of the memory range. endAddr can be an expression that defaults on an address.
  • 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
Examples
>SAVE c:\temp\memoutput.hex main, main+0x500      /* Output beginning at main                */

>SAVE memoutput.hex  0x100,0x1FF                  /* Output memory between 0x100 and 0x1FF   */

>SAVE memoutput.hex 0x20000000, 0x20020000, 0x4   /* Reads target memory using Word accesses */
  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.