5.1 Getting Started with IAR

IAR Embedded Workbench® for ARM® is a proprietary high efficiency compiler not based on GCC. 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 the programming and debugging to work.

The following steps will explain how to get your project ready for programming and debugging:

  1. Make sure you have opened the project you want to configure. Open the OPTIONS dialog for the project.
  2. In the category General Options, select the Target tab. Select the device for the project or, if not listed, the core of the device.
  3. In the category Debugger, select the Setup tab. Select CMSIS DAP as the driver.
  4. In the category Debugger, select the Download tab. Check the check box for Use flash loader(s) option.
  5. In the category Debugger > CMSIS DAP, 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 5-1. Select Target Device
Figure 5-2. Select Debugger
Figure 5-3. Configure Flash Loader
Figure 5-4. Configure Reset
Figure 5-5. Configure Interface