Hi 0815,
Our email won't give out directly, If you are not convenient, you don't need to upload it.
Actually, I am not suggest you use so many while in your code, the while may caused the deadlock easily.
About the SPIMaster_LDD code, we have a codewarrior sample code for
KL25, you can refer to it, you can refer to this code write your KEA
code, this use the SPI interrupt code, it will not easily
enter in the deadlock.
Attached is the spi_demo code for KL25, but it is nearly the same as
the KEA128, please refer to the PE configuration and the code in the
main function.
Project path:klxx-SPI_PE\projects\spi_demo
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------