3.1. Creating a new Flash Algorithm Project

To create a new flash algorithm project in the Eclipse IDE:

  1. Select File → New → Project... from the Eclipse main menu. The New Project dialog opens.

  2. Select New Flash Device Project for ARM RVDS in the Flash Programmer category in the list of project types (see Figure 1), and click Next.

    Figure 1. The New Project Wizard

    The New Project Wizard
  3. Enter a name for your new project and click Next.

  4. Enter a flash device name for your flash algorithm. The name is displayed by the Eclipse Flash Programmer plug-in when referring to your algorithm, so should choose a meaningful name.

  5. Select the width of your flash device from the drop-down menu, little or big endian byte order, and the CPU that the algorithm is compiled for.

  6. Enter the base address of your flash device and the start address of RAM on your target hardware (see Figure 2). These values are used during testing and debugging of your flash algorithm. Values may be entered in decimal or hexadecimal (prefixed with '0x'). Click Next.

    Figure 2. Configuring a new flash project

    Configuring a new flash project
  7. You can select which build configurations your flash project contains. The Debug configuration is set-up for debugging your flash algorithm. The Release configuration has compiler optimization enabled and is suitable for deploying your finished flash algorithm. It is recommended that you do not change these settings. Click Finish.

  8. Your new flash algorithm project is inserted into your Eclipse workspace. The project contains a .c file with the flash device name that you entered into the wizard, which you must edit to implement your flash algorithm. The interface that your algorithm must implement is described in the flashDevice.h header file. The project also contains flashDeviceTest.c, which is a test harness that you can use to test and debug your flash algorithm.

Copyright © 2007. All rights reserved.DAI0190A
Non-Confidential