Hi Mona,
First of all, you should check out the hardware of the FRDM-K64F board whether works well or not , NXP has provided the KSDK which includes the kind of demos for the FRDM-K64F board.
So you can go to download the KSDK 1.3 through the link as below.
Software Development Kit for Kinetis MCUs|NXP
And It can come to the conclusion that the issue was caused by debug interface setting improperly if the demos run well on the board, and please follow this way for checking.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------