Note: This tutorial assumes that you have already built a ColdFire project with the name ColdFire_test. It also assumes that you have created the Erase portion of Flash task from the previous tutorial.
Warning: To avoid the microcontroller getting caught in an indeterminant state, it is important that its flash memory be erased before attempting to program it. The erase memory action of this task will erase the microcontroller's flash memory before the second action, created in this topic, downloads a program into it. Do not attempt to program flash memory without erasing it first.
After you have connected an MCF5213-based evaluation board to the workstation with a USB cable:
- Go to the Target Tasks view in either the C/C++ or Debug perspective.
- Right-click on this view and double-click on the task Erase portion of Flash that you made in the previous topic.
The ColdFire V234 Flash Programmer Task
editor window appears.
Figure 1. Task Settings for Erasing Memory on MCF5213 
- Allocate a buffer of RAM that holds the programming algorithm, along with any program code as it is written into flash.
- Enter the start address of the RAM buffer in Address text box of the Target RAM group.
- In the Size text box, enter the amount of RAM that makes up the buffer.
- Check the Verify Target Memory Writes option. For this example, the start address of the buffer was 0X20000000, and its size was 0X00008000.
Note: Since this configuration was taken care of when the Erase action was set up, you do not have to enter anything for this step. However, it is described here for the sake of completeness.
The Target RAM
group displays the start address of the RAM memory buffer, and its
size.
- Select the Program / Verify action from the Add Action drop-down list.
The Add Program / Verify Action
dialog box appears, with the ColdFire device
selected.
- Check Use File from Launch Configuration to use the default .elf file made by the project.
Figure 2. Adding File to Add Program / Verify Action Dialog Box 
- Click Add Program Action.
- Click Done.
You return to the <target> Flash Programmer Target
editor window, with the
program action appearing in the Flash Programmer Actions
group.
Note: If you want to download a file other than the launch configuration's default file, click on the Workspace, File System, or Variables button and navigate to the file.
Figure 3. Settings for Downloading Program to ColdFire Microcontroller 
- Click the Close icon to save the settings and close the <target> Flash Programmer Task editor window.
The revised Erase portion of Flash task is available from the Target Tasks
view.