IAR Embedded Workbench®

The following steps describe how to use the output from Atmel START in IAR Embedded Workbench. Make sure you have the latest updates of IAR Embedded Workbench installed.

Exporting the Project from Atmel START

  1. On the Atmel START website, create a new project (Example or Board).
  2. Click on the Export Software Component button.
  3. Make sure the "IAR Embedded Workbench" check box is checked.
  4. Click on DOWNLOAD PACK.
    An ‘atmelstart.atzip’ pack file will be downloaded.
  5. Rename the downloaded file's extension to ‘.zip’ (change from ‘.atzip’ to ‘.zip’).
  6. Unzip the resulting ‘atmelstart.zip’ file into a folder of your choice, where you would like to create your IAR project.

Open the Project in IAR Embedded Workbench®

Before importing the project, make sure that the project connections are enabled in IAR Embedded Workbench: Go to Tools > Options > Project, where you check the "Enable project connections" box.

To start using project connections, you need to have an open project, which can be empty.

  1. To create a new, empty project, go to Project > Create New Project… > Empty Project.
    Note: The IAR project (the .ewp file) must be created in the same folder as the downloaded atmelstart.zip was extracted.

When you have an open IAR project, you can connect it to your Atmel START project.

  1. From the Project menu, you will be able to select Add Project Connection. This opens a dialog box where you can choose the external tool you want to set up a connection with. Choose IAR Project Connection and click OK.
  2. A browser window opens. Select the iar-project-connection.ipcf file in the extracted folder created as in section Exporting the Project from Atmel START.

    After the import of the .ipcf file, all the generated code is automatically added to the IAR Embedded Workbench project.

    The required include directories (Options > C/C++ Compiler > Preprocessor) are added to the project as well.

  3. If the project uses an AVR 8-bit controller, the C-library must be changed. Select Project > Options > General Options > Library Configuration. Change "Library" to "Normal DLIB".

Note: Adding a project connection for a project for an AVR device may generate warnings about that IAR IDE cannot enable linker map and log files. These messages are notifications about the use of the default linker files and can be safely ignored. It is recommended to disable these notifications by checking the "Don't show again" check-box.

Since the IAR IPCF files do not support debugger options, they must be selected manually before debugging. For Microchip Xplained boards, "CMSIS DAP" should be used to download and debug the projects correctly.

  1. If the project uses QTouch Library, the stack memory set by default is not sufficient, change CSTACK and RSTACK.
  2. Select Project > Options > Debugger > Setup. Change "Driver" to "CMSIS DAP".
  3. Click on the Download tab. Make sure the "Use flash loader(s)" is checked.
  4. Select CMSIS-DAP category, go to the JTAG/SWD tab, and set Interface to "SWD". Click OK.
  5. If the project uses QTouch Library, the linker output format must be set to Intel hex. Project > Options > Linker > Output. Click on the "Override default" box and change the output file extension to ‘.hex’. Under Format, select Others and select ‘intel-extended’ from the drop-down menu.