Priya
Make sure that you have chosen the correct processor in the Keil setup (at least a Cortex-m0+ and not an M4, for example). Then ensure that you use the correct linker script file KL_256_32.sct. [Any mismatch here will generally cause immediate failure].{I have attached this file in case it is missing in your version}
In case you still have problems, set the define BLINKY in config.h which will cause a minimum configuration to be built that just checks that the OS and TICK interrupt operate to flash an LED. This will remove possible additional code that may be enabled that is not compatible with the device.
Finally, if this still doesn't help or there is a problem when additional features are enabled do the following:
- disable the watchdog with
#define WATCHDOG_DISABLE() (1)
- build and load the code and let it run
- pause the debugger and view in disassemble mode
- step the code in disassemble mode to see what it is doing. In case of a problem due to accessing illegal resources (98% of problem cases) you will find it stepping in and out of the hard fault handler. Look at the register value that it is accessing to cause the fault (it is usually in peripheral space 0x40000000...) and see which peripheral block this is (search kinetis.h). Then disable any code that is accessing this peripheral.
Good luck
Regards
Mark