Platform Studio

Programming Flash Memory


Before You Begin

The following prerequisites must be satisfied before you use the Program Flash Memory dialog box:

Programming Flash Memory

Click Device Configuration > Program Flash Memory to open the Program Flash Memory dialog box, enter information in the fields provided (described below), and click the Program Flash button to start the flash writer.

File to Program

Browse to and select the file you wish to program onto the flash device or type the path in the text box.

Auto-convert file to bootloadable . . . format when programming flash

Select the "Auto-convert file to bootloadable" check box if the file to program onto the flash device must be converted and stored on the flash device in an image format. Select the image format, such as Motorola S-record (SREC) format, from the drop-down list. The auto convert file option is available only when the file to program is in Executable Linked Format (ELF). This option is useful when creating bootloaders and the ELF image of the bootloader must be converted into a common bootloader image format such as SREC.

Processor Instance

Choose the processor that is connected to your flash devices via an EMC controller. This processor will be used to execute the flash programmer application.

Flash Memory Properties

Instance Name
Choose the instance name of the memory controller that interfaces with the flash devices on your target board.

Program At Offset
Choose an offset within the flash to which the image file is to begin programming.

Note: If you want to program different file images at different parts of the flash, you would be changing this parameter each time to choose a different position within the flash at which to program the file.

Scratch Pad Memory Properties

Instance Name
Choose the instance name of the memory controller that connects to the free scratch pad memory that you wish to use for storing the flash programmer. It must satisfy size constraints as described earlier. Do not select the same memory controller as that of the Flash Memory.

Create Flash Bootloader Application

To help you get quickly started with bootloading your software application from flash, you can create a simple bootloader automatically by selecting the Create Flash Bootloader Application check box.

The resulting bootloader will be able to boot an image file in SREC format, given an address in memory where the image is assumed to be stored and is accessible by the processor. This bootloader has been designed to obtain the image file from flash memory, which is expected to have been programmed with the image prior to invoking the bootloader. You can also subsequently modify these sources to adapt the bootloader for any specific scenario or for adding new capabilities to it to fit your needs.

You can also convert an ELF file to SREC manually, from a command line. For instructions on how to do this, see the "Flash Memory Programming" chapter of the Embedded System Tools Reference Manual (included in the /doc directory of your EDK installation).

SW Application Project

In the SW Application Project field, specify the name of the bootloader application. The name of the bootloader is initialized with an auto-generated value, but you can change this value if required.

Program Flash

Click the Program Flash button to start the flash writer. The dialog box launches Xilinx® Microprocessor Debugger (XMD) in the Xilinx® Platform Studio (XPS) console. The rest of the algorithm proceeds from the XMD console.


See Also

The chapter "Flash Memory Programming" in the Embedded System Tools Reference Manual for a list of supported flash configurations, for a discussion of customizing flash programming, and for other information about tool functionality.

Overview of Flash Memory Programming

Specifying the JTAG Chain

Downloading Bitstreams to an FPGA

Using XMD

Generating Software Libraries


Send any feedback on this topic to isedocs@xilinx.com.
To forward a link to this topic, click here.
Copyright © 1995-2006 Xilinx, Inc. All rights reserved.