Hi
From you attached code, there only with one line at SPI_START_TRANSFER() function to clear SPI2_SR [EOQF] flag need be modified to:
SPI2_SR |= SPI_SR_EOQF_MASK ;
I checked the ADIS16362 datasheet, the SPI communication clock Max. is 2MHz. Please check the K60 SPI clock frequency if match with ADIS16362 requirement.
And I would recommend to use a SPI analyzer to check the SPI communication signals if there with any timing issue.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------