Hi Harsh Bhatt,
Did you follow this mbed link:
http://mbed.org/handbook/Firmware-FRDM-KL25Z
Please do it step by step, after your board download the firmware, and the board is a disk named "MBED“.
Then use the mbed complier the code, and download it to your FRDM-KL25, just use this link sample code:
mbed FRDM KL25Z Examples - Handbook | mbed
I did it, and the code works ok on my FRDM-KL25 board, so please try it again.
If you still have quesiton, please let me know.
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------