To import a pre-defined Power Architecture flash task:
- Go to the Target Tasks view in either the C/C++ or Debug perspective.
- Right-click on this view and select Import . Alternatively, click the Import icon on the Target Tasks view toolbar.
The
Open
dialog box appears.
- 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.
- 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.