How do I use CMSIS-DAP with IAR on KL25Z Freedom Board?

CMSIS-DAP stands for Cortex Microcontroller Software Interface Standard – Debug Access Port has been published by ARM Inc. With this, there is an open source alternative to proprietary implementation (e.g. P&E OpenSDA or Segger OpenSDA). Beside of the ARM MDK IDE, CMSIS-DAP is supported by Coocox and IAR.
Figure 1. CMSIS-DAP block diagram

CMSIS-DAP block diagram

The CMIS-DAP firmware sources are available at (requires registration):

https://silver.arm.com/browse/CMSISDAP

The Freescale Quick Start Package also includes a pre-built version of the firmware, available at the following location:

http://cache.freescale.com/files/32bit/software/board_support_packages/FRDM-KL25Z_QSP.zip

Figure 2. CMSIS-DAP_OpenSDA.s19 in FRDM-KL25Z_QSP.zip

CMSIS-DAP_OpenSDA.s19 in FRDM-KL25Z_QSP.zip

to use the CMSIS-DAP with IAR on your KL25Z Freedom Board, follow these steps:

  1. Download that zip file from the location listed above.
  2. Unzip the files.
  3. Update the OpenSDA firmware, as follows:
    1. Power the FRDM-KL25Z with reset button pressed: green LED flashes.
    2. Copy the CMSIS-DAP_OpenSDA.s19 to the BOOTLOADER device.
    3. Repower the board without the reset button pressed.
The device appears as penSDA CMSIS-DAP:
Figure 3. OpenSDA CMSIS-DAP

OpenSDA CMSIS-DAP