Hello again Shubham,
I recommend you to read this document from Antony Huereca which explains with detail the OpenSDA bootloader for the MK20 OpenSDAv2.
For your application I recommend you to take a look into the Kinetis bootloader which is compliance with the K22 MCU (only 100 and 120 MHz).
Kinetis Bootloader|Freescale
Also, I recommend you to read this great post from Erich Styger which explains in detail what is a bootloader and how to implement it.
Serial Bootloader for the Freedom Board with Processor Expert | MCU on Eclipse
Best regards,
Earl.