This section describes the steps required to configure KDS to build, run, and debug MQX RTOS demo applications and necessary driver libraries provided in the KSDK framework.
There are 3 libraries required to build for any new MQX project creation and execution:
Platform Library for MQX, MQX Library, MQX Standard Library.
Before building and debugging any demo applications, all libraries must be built.
To build the library for a device, follow these instructions:
1) Platform Library for MQX, ‘libksdk_platform_mqx.a’
We need to build a MQX platform library before we proceed.
Right click on project explorer and select import as shown below:
Select existing project into workspace as shown below
Next browse to the installed KSDK folder as shown below:
The folder path in my case is “C:\Freescale\KSDK_1.1.0\lib\ksdk_mqx_lib\kds\K64F12”
Proceed further by clicking finish
Now select the project from project explorer and build the library as shown below:
You can see the project build progress as shown below:
You can see the generated library file “libksdk_platform_mqx.a” under console window as shown below:
The path it is generated is “C:\Freescale\KSDK_1.1.0\lib\ksdk_mqx_lib\kds\K64F12\Debug”
Note: remember this path which has to be provided for any new MQX project creation.
2) MQX Library, ‘lib_mqx.a’
Follow the similar steps as above the path while importing for lib_mqx is
“C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx\build\kds\mqx_frdmk64f”
Build the project “mqx_frdmk64f”
The library generated file is “lib_mqx.a” which is stored in path
“C:\Freescale\KSDK_1.1.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx”
3) MQX Standard Library, ‘lib_mqx_stdlib.a’
Similarly import “mqx_stdlib_frdmk64f” project from the folder
“C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx_stdlib\build\kds\mqx_stdlib_frdmk64f”
And build it as shown below:
you will find the generated library “lib_mqx_stdlib.a” stored at location
"C:\Freescale\KSDK_1.1.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx_stdlib"
Note: remember these paths to be included at the time of any new MQX project building and execution.
NOTE: For information about building KSDK and MQX libraries in KDS please see chapter ‘3 Building the MQX RTOS libraries’ of ‘Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE’ located in MQX for KSDK installation path C:\Freescale\KSDK_1.1.0\rtos\mqx\doc\tools