Import Power Architecture Program Flash Task

To import a pre-defined Power Architecture flash task:

  1. Go to the Target Tasks view in either the C/C++ or Debug perspective.
  2. Right-click on this view and select Import . Alternatively, click the Import icon on the Target Tasks view toolbar.

    The Open dialog box appears.

  3. Navigate to <CWInstallDir>/MCU/bin/plugins/support/TargetTask/Flash_Programmer/E200 and select the XML file for the board's microcontroller.
    Note: One processor has multiple flash areas that are treated as different devices. Therefore, you should be very sure of the needs when selecting a task.

    There are predefined target tasks for each flash module. However, depending on processor type some of them might not be available.

    • Internal Flash - The Internal Flash target task is for Code Flash and Data Flash if they exist or for the user area of Internal Flash. Comprises everything - the area for application (sometimes has code + data), shadow flash and tester areas.
      • Code Flash - Program's code should be programmed here.
      • Data flash - Flash special design to hold data.
        • Shadow Flash - Flash that contains system configuration options besides the user area. Erasing it can also change the system state after reset. Some of these registers are for device's security and you cannot write anything there. Additionally, the erase sequence is different. After you erase the device, the security information is programmed in the flash and thus the blank check fails.
        • Tester Areas - Special flash that cannot be erased and also have registers that can change processor's behavior like which flash sectors are protected. Changing them cannot be reverted, which means that the Flash is written once.
          Note: Some processors can interpret two sets of instructions: BOOKE and VLE. If the processor supports both of them target tasks are provided for each instruction set. The user should choose the right one.
      • Click Open.

        The selected task appears in the Target Tasks view.

      • Double-click on the task to examine its contents.

        The <target> Flash Programmer Task editor window appears, and displays the memory settings and actions for the task. Notice the actions to erase, program, and/or verify the contents of flash memory in the Flash Programmer Actions group.