5.5.2. Programming a Flash type supported by RealView Debugger

If your hardware uses a Flash type that is also supported by an ARM development board, then you can use the appropriate Flash-level assembly code that is provided with RealView Debugger. These files are:


f_amd_sst_arm.s
f_atmel_arm.s
f_intel_arm.s
f_toshiba_arm.s
f_st30_arm.s

You must provide all the other files required to program the Flash (see Summary of files used to program supported Flash types on custom platforms).

Preparing to follow the procedure for a supported Flash type

If you want to use the Evaluator-7T example to follow the procedure in Procedure for programming a supported Flash type, do the following:

  1. Create a new directory called eval7t_support.

  2. Copy the following files from the install_directory\RVD\Flash\...\platform\eval7t directory into the eval7t_support directory:

    • f_amd_sst_arm.s

    • flash_sst.ame

    • board_sst_eval7t.ame.

  3. Where the procedure directs you to create other required files, create the files in the eval7t_support directory.

Procedure for programming a supported Flash type

The procedure for programming a Flash type supported by RealView Debugger for your own development platform involves the following steps:

  1. Gather information about your target (see Gathering information about your target).

  2. Create the Flash-level and board-level AME files (see Creating the Flash-level and board-level AME files).

  3. Generate the FME file. To do this, create a make file to:

    • build an ELF/DWARF (.axf) image from the Flash algorithm code

    • run the pakflash utility to generate the FME file from the axf image and the AME files.

    See Generating the FME file for details.

  4. Check the FME file with the dispflash utility (see Checking the FME file with the dispflash utility).

  5. Create a BCD file (see Creating a BCD file).

  6. Program your Flash device (see Programming an image into Flash).

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0182H
Non-Confidential