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.

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. For 80x51 microcontrollers, the startAddr can contain a Memory Type Specifier.
  • endAddr defines the end address of the memory range. endAddr can be an expression that defaults on an address.
  • accSize ignore for C51, C251, and C166 toolchains.
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 X:0,0x100                     /* Output 256 bytes of the 8051 XDATA      */
                                                  /* external memory beginning at address 0. */
                                                  /* The memory type specifier X was used.   */

Note

  • The internal RAM from I:0x80 to I:0xFF of a 8051 or 251 microcontroller cannot be saved.
  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.