This document shows how to import the existing project of Kinetis SDK v2 using the kinetis Design Studio version: 3.2.0
Kinetis SDK v2 is a collection of comprehensive software enablement for NXP Kinetis Microcontrollers that includes system startup, peripheral drivers, USB and connectivity stacks, middleware, and real-time operating system (RTOS) kernels. The Kinetis SDK also includes getting started and API documentation along with usage examples and demo applications designed to simplify and accelerate application development on Kinetis MCUs.
1) KDS3.2.0 installed on your computer
(You can download latest version of KDS from Here or direct download from below link:)
2) Download a Kinetis SDK Package online
Unpack the downloaded archive file to a folder (recommended into c:\nxp (e.g. (c:\nxp\SDK_v2.0-K64F) or into /nxp on other systems)
3) Install Kinetis SDK v2.0 into Kinetis Design Studio
4) Finally the freedom hardware development board
Now let us begin to start working on the setup the downloaded SDK v2.0 is having set of example projects to work on Let us see how we can import these projects and execute on our target board i.e development board
If we explore the downloaded sdk v2.0 we can find below folders
The Kinetis SDK architecture consists of five key components listed below:
1. The ARM Cortex Microcontroller Software Interface Standard (CMSIS) CORE compliance device specific header files, SOC Header, and CMSIS math/DSP libraries.
2. Peripheral Drivers
3. Real-time Operating Systems (RTOS)
4. Stacks and Middleware that integrate with the Kinetis SDK
5. Demo Applications based on the Kinetis SDK
Example projects can be found in folder
“C:\NXP ksdk2.0 workspace\SDK_2.0_FRDM-K64F\boards\frdmk64f”
Let us examine the demo apps folder in which we can find many projects as shown:
We will be executing ecompass example on KDS3.2.0
Open the KDS 3.2.0 and click on File > Import
Next select on “Existing Projects into Workspace” as shown below:
Navigate to the demo apps existing folder i.e
“C:\NXP ksdk2.0 workspace\SDK_2.0_FRDM-K64F\boards\frdmk64f\demo_apps\ecompass"
Click on finish
After opening the ecompass project you will see below
The E-Compass demo application demonstrates the use of the FXOS8700 sensor. The tilt-compensated algorithm calculates all three angles (pitch, roll, and yaw or compass heading).
Build the project
To Run the project click on debug configuration as shown
After clicking the debug you can see the compilation to debug the project as shown below:
Now establish a serial communication with your computer via com port
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
To know your com port click on device manager: in my case it is com43 port connected to the K64 board
Open a serial terminal with the following settings:
- 115200 baud rate - 8 data bits - No parity - One stop bit - No flow control
I am using the application putty with below configuration:
Now click on Resume button on KDS tool:
At starting of execution the project will ask for calibration of the sensors
When the demo runs successfully, you can see the information below printed to the terminal.
Note: you must rotate the board 360 degrees to get the max / min value of the magnetic field.