The KSDK Project Generator requires the user to install an instance of KSDK 1.2.0, 1.3.0 or 2.x before generating new projects. Visit www.nxp.com/ksdk to get the Kinetis SDK.
Features of KSDK Project Generator 2.2:
The following features are available with the KSDK Project Generator 2.2 tool:
- Cross platform
- Operates on Windows, Linux, and Mac OSX
- Developed in 32-bit Python 2.7 on Windows 7, Ubuntu 14.10, OSX 10.10 & 10.11
- Supports KSDK 1.2.0, 1.3.0 and 2.x
- Quick Generate of development board based KSDK projects
- Advanced Generate of New KSDK based projects
- Device or development board based
- Linked to KSDK installation or standalone
- RTOS support ( when project with FreeRTOS is created part of source code is licensed with GPL-2.0 WITH the FreeRTOS GPL exception license)
- HAL or Platform library level projects (for KSDK 1.2, 1.3)
- Libraries in standalone projects tailored to device package (for KSDK 1.2, 1.3)
- KDS, IAR, Keil MDK, and/or Atollic TrueSTUDIO IDE projects
- Generation of standalone or linked cloned project
Getting started with KSDK project Generator:
Download the KSDK_Project_Generator.zip package from KSDK web page,
Unzip the package to a location of your choice on your host machine.
To run, open up the folder for your operating system (in my case it’s Windows) and execute the ‘KSDK_Project_Generator’ application.
“C:\NXP ksdk2.0 workspace\SDK_2.0_FRDM-KL28Z”
Click the "Browse" button next to the "Import from file:" option.
Now direct the path of SDK V2.0 as shown
“C:\NXP ksdk2.0 workspace\SDK_2.0_FRDM-KL28Z\boards\frdmkl28z\user_apps”
#include "fsl_debug_console.h"
#include "fsl_port.h"
#include "fsl_gpio.h"
#include "fsl_common.h"
#include "board.h"
#include "pin_mux.h"
#include "clock_config.h"
int main(void) {
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
volatile int delay;
PRINTF("LED blinking project\n\r");
// Enable GPIO port for the red LED
CLOCK_EnableClock(kCLOCK_PortE);
CLOCK_EnableClock(kCLOCK_PortC);
PORT_SetPinMux(PORTE, 29U, kPORT_MuxAsGpio); //RED
PORT_SetPinMux(PORTC, 4U, kPORT_MuxAsGpio); //Green
PORT_SetPinMux(PORTE, 31U, kPORT_MuxAsGpio); // Blue
LED_RED_INIT(LOGIC_LED_OFF);
LED_GREEN_INIT(LOGIC_LED_OFF);
LED_BLUE_INIT(LOGIC_LED_OFF);
for(;;) { /* Infinite loop to avoid leaving the main function */
LED_RED_ON();
PRINTF("RED LED on project\n\r");
delay = 5000000;
while(delay--);
LED_RED_OFF();
PRINTF("RED LED OFF project\n\r");
delay = 5000000;
while(delay--);
LED_GREEN_ON();
PRINTF("GREEN LED on project\n\r");
delay = 5000000;
while(delay--);
LED_GREEN_OFF();
PRINTF("GREEN LED OFF project\n\r");
delay = 5000000;
while(delay--);
LED_BLUE_ON();
PRINTF("BLUE LED on project\n\r");
delay = 5000000;
while(delay--);
LED_BLUE_OFF();
PRINTF("BLUE LED OFF project\n\r");
delay = 5000000;
while(delay--);
}
}PORT_SetPinMux(PORTE, 29U, kPORT_MuxAsGpio); //RED
LED_RED_INIT(LOGIC_LED_OFF);
LED_RED_ON();
PRINTF("RED LED on project\n\r");
delay = 5000000;
while(delay--); LED_RED_OFF();
PRINTF("RED LED OFF project\n\r");
delay = 5000000;
while(delay--);

















