7 years, 1 month ago.

Why aren't 3/4 of my FRDM-KL25Z boards working in the Keil MDK debugger using CMSIS-DAP?

Can anyone help getting my boards working under the Keil MDK 5 debugger?

I've got four FRDM-KL25Z boards, and a couple of FRDM-K20D50M boards.

I installed the Keil MDK 5 as well as the P&E and MBED windows drivers on my Windows XP VMWare VM.

All four of the FRDM-KL25Z boards had version 1.09 of the bootloader; I updated them to bootloader version 1.11 using the P&E Micro bootloader update. Then I loaded the new MBED 2.0 (CMSIS-DAP/MSD/CDC) application. All four of the boards work in the usual MBED mode (the USB MSD and CDC devices work fine). However, only one of the four is working under the Keil ARM debugger. The other three show "No debug unit device found" in the SW Device / SWDIO dialog.

The one FRDM-K20D50M board on which I updated the bootloader (and installed the P&E msd/debug/cdc app) is also working fine under Keil (though I believe using the P&E OpenSDA interface).

Here is the version information from the Keil IDE:

IDE-Version: µVision V5.0.5.15 Copyright (C) 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.

Tool Version Numbers: Toolchain: MDK-ARM Professional Cortex-M only Version: Toolchain Path: C:\Keil\ARM\ARMCC\bin\ C Compiler: Armcc.Exe V5.03.0.76 Assembler: Armasm.Exe V5.03.0.76 Linker/Locator: ArmLink.Exe V5.03.0.76 Librarian: ArmAr.Exe V5.03.0.76 Hex Converter: FromElf.Exe V5.03.0.76 CPU DLL: SARMCM3.DLL V5.0.5.0 Dialog DLL: DARMCM1.DLL V1.11.00.0 Target DLL: CMSIS_AGDI.dll V1.16.9.0 Dialog DLL: TARMCM1.DLL V1.08.00.0

Hello Ned Konz,

can you test my published newest cmsis-dap interface for KL25Z? Does that work for you? I have been using couple of freedom boards, have not any issue with uVision on Win 7. I use 4,7 version and the newest 5th version as well. I can also build K20D50M interface if I haven't done that yet. Will check and add it.


posted by Martin Kojtal 17 Dec 2013

No, same behavior. Still only one board works in the debugger, despite all reporting the same boot loader version and having the same mbed interface openSDA app loaded. BTW, clicking on the mbed.htm that appears in the MSD gets an error message on the mbed web site.

posted by Ned Konz 18 Dec 2013

Have you made any progress? Can you test for example pyOCD if that one finds your boards? I also published K20D50M CMSIS-DAP beta2. Have tested it on at least 2 boards, working fine in uVision 4.7 and 5.00.


posted by Martin Kojtal 08 Jan 2014

1 Answer

6 years, 10 months ago.

Hi Martin and Ned, I have the same problem...

I just put the new <! Version: 0201 Build: Jan 1 2014 12:53:26 > on the KL25Z and downloaded the version uVision V5.10.0.2

and get "Cannot Load Flash Device Description!" "Error: Flash Download failed - "Cortex-M0+"


Hello, look here for an answer: https://mbed.org/questions/2180/Keil-uVision-5-Loading-directly-to-mbed-/


posted by Martin Kojtal 24 Feb 2014

Extra one, here is the download link you need: https://mbed.org/users/Sissors/notebook/unbricking-kl25z-after-setting-reset-pins-as-gpio/

posted by Erik - 24 Feb 2014

Thanks Guys! got it working... had to do Step 4) from http://www.keil.com/appnotes/files/apnt_232.pdf

Step 4) Configure the Keil Flash Programmer: 1. Click on OK once and then select the Utilities tab. 2. Select CMSIS-DAP Debugger as shown here: 3. Click Settings to select the programming algorithm. 4. Select Add and select the appropriate Kinetis Flash if necessary as shown below: 5. MKXX 48 MHz 128kB Prog Flash is the correct one to use with the Freedom board. 6. Click on OK once.

posted by Comus Labs 24 Feb 2014