AnsweredAssumed Answered

OpenSDA not functioning in Ubuntu 12.04

Question asked by Brad Stewart Employee on Apr 28, 2014
Latest reply on Jul 15, 2014 by Przemysław Węgrzyn

KDS Beta 1.0

Ubuntu 12.04 64-bit running in VirtualBox on a Win7 64-bit host.


I was able to install KDS and compile a PEx “blinky” version for FRDM-KL25Z.  I can use the latest firmware to drag and drop the .s19 file onto the FRDM-KL25Z board after installing the latest bootloader and MSD files.


But I am unable to connect to opensda.  I have installed the necessary drivers and ran the P&E script ( 

The debugger is recognized.  It just won’t connect (see below for Debugger menu).  It seems it can’t find the programming algorithm and the reason might be that “P&E” is not a legal Linux directory name.

I have contacted P&E but have not heard any response.  It's been almost a week.


brad@brad-M4700:/opt/Freescale/KDS_1.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.3.201403301338/lin/gdi$ ls -al

total 1608

drwxr-xr-x 3 root root    4096 Apr  8 12:53 .

drwxr-xr-x 3 root root    4096 Apr  8 12:53 ..

drwxr-xr-x 2 root root   65536 Apr  8 12:53 P&E

-rwxr-xr-x 1 root root 1570339 Mar 29 08:22

brad@brad-M4700:/opt/Freescale/KDS_1.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.3.201403301338/lin/gdi$ cd P&E

[1] 7181

bash: cd: P: No such file or directory

E: command not found

[1]+ Exit 1 cd P



Here is the terminal output from KDS:


P&E GDB Server, Version

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


Loading library /opt/Freescale/KDS_1.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.3.201403301338/lin/gdi/ ... Done.


Command line arguments: -device=KL25Z128M4 -startserver -serverport=7224 -interface=OPENSDA -port=USB1 -speed=5000 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=1 

Device selected is kl25z128m4

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

Connecting to target.

OpenSDA detected - Flash Version 1.14


Forcing mass erase...


Device is KL25Z128M4.


Mode is In-Circuit Debug.


'Kinetis' is a registered trademark of Freescale.


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

API version is 101


PE-ERROR: Algorithm /opt/Freescale/KDS_1.0/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_1.0.3.201403301338/lin/gdi/P&E/ not found

Target Disconnected.

PE-ERROR: Target XML File for kl25z128m4 not found

Target Disconnected.

Server running Connection from "" via

PE-ERROR: Target is not connected

Disconnected from "" via