Skip to content

Instantly share code, notes, and snippets.

@mnaberez
Last active December 7, 2022 00:36
Show Gist options
  • Save mnaberez/1f2a8b4677908e52242dcc4b0a40c8df to your computer and use it in GitHub Desktop.
Save mnaberez/1f2a8b4677908e52242dcc4b0a40c8df to your computer and use it in GitHub Desktop.
NXP Freescale Kinetis E Series KE06 Info

MKE06Z128VLD4

FRDM-KE06 Eval Board

Kinetis Design Studio

Note from NXP: "The Kinetis Design Studio IDE (KDS IDE) is no longer being actively developed but is being maintained to provide support for legacy Kinetis devices. The MCUXpresso IDE has now replaced the Kinetis Design Studio IDE as the recommended software development toolchain for NXP’s newes Kinetis, LPC and i.MX RT Cortex-M-based devices. For more details on MCUXpresso IDE, please visit http://www.nxp.com/mcuxpresso/ide."

Installing on Ubuntu 14.04 LTS 64-bit Desktop:

# dpkg -i kinetis-design-studio_3.2.0-1_amd64.deb

Building a project will fail unless these libraries are installed:

# apt update
# apt install -y libc6:i386 libncurses5:i386 libstdc++6:i386

Debugging will fail unless the FRDM-KE06 built-in debugger is flashed. See the OpenSDA notes below.

OpenSDA

The FRDM-KE06 board includes an integrated debugger called OpenSDA. There are several incompatible versions of OpenSDA (see the table in the "OpenSDA Overview"). The version that ships on the FRDM-KE06 is OpenSDA v1 from P&E Micro. This version is not open source.

Debugging from Kinetis Design Studio will fail unless the FRDM-KE06's built-in OpenSDA debugger is flashed. OpenSDA can run different "applications" that affect its operation. The default application that ships on the FRDM-KE06 does not support KDS. Flashing a different application fixes it.

From an element14 forum post:

Enter OpenSDA Bootloader Mode

  1. Unplug the USB cable if attached
  2. Press and hold the Reset button (SW1)
  3. Plug in a USB cable between a USB host and the OpenSDA USB connector.
  4. Release the Reset button.

A removable drive should now be visible in the host file system with a volume label of BOOTLOADER. You are now in OpenSDA Bootloader mode.

Load an OpenSDA Application

  1. Locate the OpenSDA Applications folder in the downloaded FRDM-KE02Z Quick Start Package
  2. Copy & paste or drag & drop the Debug Application driver file (DEBUG-APP_Pemicro_v106.SDA) to the BOOTLOADER drive.
  3. Unplug the USB cable and plug it in again.

On Ubuntu 14.04, the SDA file was found at:

/opt/Freescale/KDS_v3/pemicro/opensda/DEBUG-APP_Pemicro_v108.SDA

Note: While I was able to get OpenSDA to work with KDS on Ubuntu 14.04, I could not get it to work on Ubuntu 18.04. KDS installs and builds projects on 18.04 but it does not recognize the OpenSDA debugger. Clicking "Refresh" in the dialog never finds the OpenSDA debugger, although dmesg logs a message saying it is attached. I tried it on two different systems without success. I switched from the built-in OpenSDA debugger to an external Segger J-Link connected to J7. The J-Link works fine on Ubuntu 18.04, is supported by Kinetis Design Studio, and is noticeably faster than OpenSDA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment