How to manually import an existing IAR Embedded Workbench project (.ewp)
Eclipse does not currently include a project import or export functionality for projects created with the Embedded Workbench .
Here are some steps that you might want to execute on a tried and tested project.
- Switch to the C/C++ perspective, and use File → New → C Project (use "C++ Project" if your project uses C++ in the compiler language settings).
- Project name: enter your project name here
- Un-check: Use default location. This will re-use existing files in your source folder.
- Location: enter your project location
- Project type: Executable: Empty Project
- Toolchains: IAR Toolchain for ARM - 6.x
- Click Next
- (optional) Modify the available build configurations to match the ones available in the EW project. By default, Eclipse will create a Debug and Release configuration.
- Click Next
- If your project is running on a device which is supported by Embedded Workbench, you can choose it now so that the project settings will be adjusted to fit. Otherwise, use the default settings.
- Finish
Adjusting project settings
- By defaults, Eclipse project options can be set per-configuration. Select "All configurations" in the project properties before the options are set to avoid setting them twice.
- Setup include paths: Project → Properties → IAR ARM C/C++ Compiler → Preprocessor → Additional include directories.
- Define preprocessor symbols, for example: IAR_LPC_1343_SK for some examples. Project → Properties → IAR ARM C/C++ Compiler → Preprocessor → Defined symbols.
- Set linker configuration file to match the EW project: Project → Properties → IAR ARM Linker → Configuration
- Manually set other build options (library configuration, etc.)
- Change between J-Link and Simulator, setup macro files: Run → Debug Configurations..
- Click OK
Note that unlike IAR Embedded Workbench, all of the build artifacts (list files, etc) will end up in the build output folder, which is in the project location and has the name of the currently-selected build configuration (e.g. "Debug"). Also, it could be necessary to manually refresh the build output folder to be able to see list and map files.
No comments:
Post a Comment