| |||
| Home > DS-5 Debugger commands > DS-5 Debugger commands listed in alphabetical order > set flash-buffer | |||
This command defines a region of RAM memory for use as a buffer when programming flash memory. The memory range is written to as part of flash programming, and the original content is not restored afterwards.
The minimum size of buffer is dependent on the flash algorithm in use. In general, it must be sufficient to hold the code and data required by the flash algorithm, a small stack, and at least one flash block. For best performance, provide as much RAM as possible.
When defining the memory range you need to consider whether the RAM you want to use requires configuring prior to use. If configuration is required, you can write the necessary configuration data as a script file and run it through the debugger prior to flash programming. See the hardware documentation for more information.
To use this feature you must have a valid ARM® Compiler license file.
set flash-buffer start_address end_address
Where:
start_addressSpecifies the start address of the flash buffer.
end_addressSpecifies the inclusive end address of the flash buffer.
Addresses must be four-byte aligned.
ARM® DS-5™ Using the Debugger: