Hi Rini,
I am not sure whether your K64 is locked or reset repeatedly.
SEGGER offers a firmware running on the Freescale OpenSDA platform which makes OpenSDA compatible to J-Link Lite. Input "unlock kinetis" at J-Link Commander can mass erase the Kinetis MCU. The firmware of TWR-K64F120M can be download from this webpage. If the J-Link Commander can't identify the Cortex-M core, you need keep press down the reset buttom(SW2) and then reopen J-Link Commander.

Then refer this Document download the KDS3.2 (it has fixed some known issues).
Using KDS3.2 debug or flash your code.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------