9.2.37. putfile

The putfile command writes the contents of an area of memory to a file. The data is written as a sequence of bytes.

Syntax

The syntax of the putfile command is:

putfile filename expression1, {+}expression2

where:

filename

Specifies the name of the file to write the data into.

expression1

Specifies the lower boundary of the area of memory to be written.

expression2

Specifies the upper boundary of the area of memory to be written.

Usage

The upper boundary of the memory area is defined as follows:

  • if expression2 is not preceded by a + character, the upper boundary of the memory area is the value of:


    expression2 - 1

  • if expression2 is preceded by a + character, the upper boundary of the memory area is the value of:


    expression1 + expression2 - 1.

Low-level symbols are accepted by default.

Example

putfile image.bin 0x0,+0x8000

Copyright © 1999-2006 ARM Limited. All rights reserved.ARM DUI 0066G
Non-Confidential