AnsweredAssumed Answered

K64 SWD debugging with kds

Question asked by inderjitjutla on Mar 23, 2016
Latest reply on Mar 26, 2016 by inderjitjutla


I'm trying to flash/debug a MK64FN1M0VLL12 chip on my custom board. But I'm having issues flashing from file with KDS and the pe multilink. For my board design, I following the schematic of the K64F freedom board when in doubt. The only significant difference (besides not using the openSDA interface) is that I don't have an oscillator connected to EXTAL0.

I have a logic analyzer and the dio and clock lines seem to be working fine until the multilink tries to do an AccessPort write TAR with 0x20003490, it tries to do this many more times than on the freedom board.


Here's a pick of the schematic of the header I am using. The RST_JTAG is connected to RESET_b (pin 52). After reading some comments, I also added a 0.1uF cap to ground for VCC, a pull resistor to PTA3 (40k) and a pull resistor to RST_JTAG (5.6k). (Didn't fix the issues)



Here's the config for the kds:



Here's the error I get from


Target has been RESET and is active.








;version 1.02, 06/02/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. [mk64_1024k_n_pflash0_pflash1]



;device freescale, k64fn1m0m12, 1x32x256k, desc=pflash



;begin_cs device=$00000000, length=$00100000, ram=$20000000



Loading programming algorithm ...



Error! Enabling module timed out.


Error enabling module just selected.

Error loading programming algorithm - load aborted.


Error occured during Flash programming.


PE-ERROR: Error downloading to the device.

No breakpoints currently set.


Error communicating to target processor - try a RESET.


Disconnected from "" via

Target Disconnected.

Target Disconnected.


Let me know if you need any additional information