Flashing an existing image without risking a re-build

Technical Note 68610

Targets:
ARM

Component:
Debugger

Updated:
11/18/2010 11:10 AM

Introduction

In order to avoid an image to be rebuilt the following solution can be used.

Requirements

  • IAR Embedded Workbench for ARM must not be too old. Versions released 2007 (or later) can use this solution.
  • The file format of the existing image must be of a format that can be downloaded by C-SPY. (For example ELF/DWARF or hex).

Solution

1) setting up

  • Create a new project. Choose Project>Create New Project
  • Select the project template: Externally built executable
  • Specify the project name.
  • Add the image file to the project, choose Project>Add Files and make sure to choose "All Files" in the "Files of type" drop-down list.
  • The only project options that are meaningful to set, (for this kind of project), are the options in the categories: General Options and Debugger.
  • Make sure to set up the general project options in the same way as when the executable file was built.
  • Set up the C-SPY options in accordance to your emulator/JTAG etc.

2) downloading

  • To download the image file, select the project in the Workspace window and click the Debug button.
  • The project can be reused whenever needed to download the image.

Notes

Be aware that the exact names in the IAR Embedded Workbench IDE can vary between versions.

All product names are trademarks or registered trademarks of their respective owners

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.