I need to flash a large size application (more than 64 KB) , and I also need to perform target tasks, such as secure/unsecure the device and additional verify or erase. How do I do it?

You can have the debugger flash the target using a target task. The flash programming target tasks are small application applets, which are downloaded to the target by the debugger. The debugger gets the application binary from the host and programs the flash.

For all non-P&E connections and for the P&E connection for the ColdFire V2 and PowerPC, a flash programming task is setup in the Run > Debug Configurations > Debugger > Download tab.

Figure 1. Flash Programming Target Task Associated with Debugger

Flash Programming Target Task Associated with Debugger

This means that the debugger is using the attached target task to be executed as part of the download.

However, you can also perform flash programming as a standalone task, without combining it with the debug task.

  1. Select Flash Programmer > Open Flash Programmer on the CodeWarrior IDE tool bar.

    The Target Tasks view appears.

  2. To create a new target task, either import a flash configuration file or duplicate an existing flash task.
  3. Right-click the new target task and select Change Run Configuration .
  4. Change the run configuration from Active Debug Context to a defined launch configuration.
  5. Click the Execute button to execute the target task.
    Figure 2. Target Tasks View

    Target Tasks View

When the MCF52259_FlashIt task created in the steps above is executed, the Console view shows the following results.

Figure 3. Console View

Console View

You can use this information to diagnose issues with the task execution, if there are any.

You can also access the previously executed target task directly from the Flash Programmer button on the CodeWarrior IDE toolbar.

Figure 4. Flash Programmer Button

Flash Programmer Button