Hi Aman,
Do you secure the chip at the first time program?
You can use the JLINK command: unlock kinetis
Then download the code again.
Please try it on your side.
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------