AnsweredAssumed Answered

KE02: Error downloading to the device

Question asked by Ardoster on Dec 19, 2014
Latest reply on Nov 3, 2015 by John Beale



Maybe you can help me: I'm using the Kinetis KE02Z64VLC2 and a PE-MICRO debugger in Kinetis Design Studio 2.0.0, in Windows 7. I'm trying to debug but every time I try to load the program, I receive an error "PE-ERROR: Error downloading to the device".


This is the complete log:


P&E GDB Server, Version

Copyright 2014, P&E Microcomputer Systems Inc, All rights reserved


Loading library C:\Freescale\KDS_2.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.8.201411191655\win32\gdi\unit_ngs_arm_internal.dll ... Done.


Command line arguments: -device=KE02Z64M2 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0

Device selected is ke02z64m2

User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1

Connecting to target.

P&E Interface detected - Flash Version 6.10


Device is KE02Z64M2.


Mode is In-Circuit Debug.


'Kinetis' is a registered trademark of Freescale.


(C)opyright 2012, P&E Microcomputer Systems, Inc. (

API version is 101


Server running on

Connection from "" via

Copyright 2012 P&E Microcomputer Systems,Inc.

Command Line :C:\Freescale\KDS_2.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.8.201411191655\win32\pegdbserver_console -device=KE02Z64M2 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 -USE_CYCLONEPRO_







Target has been RESET and is active.

CMD>CM C:\Freescale\KDS_2.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.8.201411191655\win32\gdi\P&E\ke02z64m2_pflash_eeprom_pipeline.arp







;version 1.03, 02/07/2014, Copyright P&E Microcomputer Systems, [ke_64k_pflash_dflash_ftmrh_m0]



;device freescale, ke02z64m2, desc=pflash_eeprom_pipeline



;begin_cs device=$00000000, length=$10000100, 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.


Looks like the CPU is being erased, but unable to load the program. Any idea about what could be happening?


Thanks in advance