7.1 Getting Started with IAR

IAR Embedded Workbench® for ARM® is a proprietary, high-efficiency compiler not based on GCC. The programming and debugging of Xplained Pro kits are supported in IAR Embedded Workbench for ARM using the common CMSIS-DAP interface. Some initial settings have to be set up in the project to get programming and debugging to work.

The following steps explain how to set up a project for programming and debugging:

  1. Open the project that needs to be configured. Open the OPTIONS dialog for the project.
  2. In the General Options category, select the Target tab. Select the "Device" for the project or the "Core" of the device.
  3. In the Debugger category, select the Setup tab. Select CMSIS DAP as the driver.
  4. In the Debugger category, select the Download tab. Select the Use flash loader(s) option.
  5. In the Debugger > CMSIS DAP category, select the Setup tab. Select System (default) as the reset method.
  6. In the category Debugger > CMSIS DAP, select the JTAG/SWD tab. Select SWD as the interface and optionally select the SWD speed.
Figure 7-1. Select Target Device
Figure 7-2. Select Debugger
Figure 7-3. Configure Flash Loader
Figure 7-4. Configure Reset
Figure 7-5. Configure Interface