Skip navigation

NXP Kinetis Design Studio (KDS)

NXP Kinetis Design Studio (KDS) is a free IDE, based on Eclipse, for NXP Kinetis Cortex-M devices. NXP KDS comes with built-in J-Link support.

Using a sample project with J-Link

The following steps assume/expect that basic installation and configuration of KDS and KSDK have already been done. If not done yet, please refer to Installing & Setting up NXP KDS.

  • Select File | Import
  • Open the General category
  • Select Existing Projects in to Workspace
  • Click Next
  • Enter $KDS_INST_DIR$\NXPKSDK_1.1.0\demos\hello_world\kds\frdmk64f in the Select root directory: field
  • Replace frdmk64f by the applicable board name if a different eval board is used
  • Build the project
  • Now the debug session can be started

If KDS does not create a fitting debug configuration by itself, it might be necessary to create one manually. In oder to do so:

  • Open Run | Debug Configurations
  • Double-Click GDB SEGGER J-Link Debugging
  • Configure the settings according to the device to be debugged
  • For reference, a generated debug configration for a FRDMK64f board looks as follows:

Installing & Setting up NXP KDS

  • Install KDS
  • If another installation type than full installation is chosen, take care that J-Link Support is included in the installation
  • Start KDS
  • Select a workspace path
  • Wait for the Processor Expert Service to finish
  • Quit KDS
  • Install KSDK
  • We will use a sample from this package
  • SDK Base is enough for our purposes, however, feel free to choose a richer installation type
  • Restart the System
  • Start KDS
  • Select Help | Install New Software 
  • In the "Work with:" drop down menu, select "NXP KDS Update Site -"
  • Check "Eclipse Update for KSDK 1.0.0-GA"
  • Check "Processor Expert Software"
  • Check "Processor Expert Software - Update for KDS v1.1.x"
  • Click Next
  • Click Next
  • Accept the License Agreement and click Finish
  • Wait for the installation to finish
  • Restart KDS
  • Wait for the Processor Export Service to finish.
  • There should be an environment variable "KSDK_PATH" set to the installation path of KSDK (default: C:\NXP\KSDK_X.X.X)
  • In order to be able to use the sample projects provided by KSDK, the KSDK Platform Driver Library (libksdk_platform.a) needs to be built first.
  • Select File | Import
  • Open the General category
  • Select Existing Projects in to Workspace
  • Click Next
  • Enter $KDS_INST_DIR$\NXPKSDK_1.1.0\lib\ksdk_platform_lib\kds\K64F12 in the "Select root directory:" field
  • Replace K64F12 by the applicable device name if a different device is used
  • Check the project found
  • Click Finish
  • If the welcome page is still present, click go to workbench
  • Click the dropdown menu next to the hammer icon
  • Choose debug. The debug version of the Platform lib will automatically be build
  • Repeat with the release version
  • Close the project.