3.7. Creating a Flash Configuration

To use a flash algorithm in Eclipse you also need a flash configuration. Flash configurations supply additional parameters, such as the location and size of RAM on your target hardware, that are not algorithm specific. A flash configuration can contain multiple flash algorithms to cope with target hardware that contains multiple flash devices. There are built-in configurations for ARM's own boards. You must create a new flash configuration to use any imported flash algorithms.

To create a new flash configuration:

  1. Select Target → Manage Targets… from the Eclipse main menu. The Manage Targets dialog opens.

  2. Click the

    New Configuration button

    button to create a new configuration.

  3. Enter a name for your configuration, as well as the start of RAM and size of RAM on your target hardware. The flash algorithm is downloaded to RAM during flash operations, and the remainder of RAM is used for a stack and as a temporary buffer.

  4. Click the Add… button to add your flash algorithm to the configuration.

  5. Select your flash algorithm in the Target details table. The panel beneath the table changes to show any parameters needed by your flash algorithm.

  6. Enter any parameters needed by your flash algorithm. All flash algorithms have a Base address parameter, which is the base address of your flash device in memory (see Figure 7).

    Figure 7. Creating a flash configuration

    Creating a flash configuration
  7. If your target hardware contains multiple flash devices you can add these to your configuration by repeating steps 4 to 6.

  8. Click Apply to save your flash configuration.

Copyright © 2007. All rights reserved.DAI0190A