Hello customer,
SDK_2.2_MK60DN512xxx10 is for our TWR-K60D100M board.
It seems you are using your own board.
Your problem that the code is stopping tin the MCG_S register, normally it is caused by your external clock.
You said you are connecting the 50Mhz to PTA18, please check the PTA18 pin with oscilloscope, whether this pin really have 50Mhz, this is very important.
Wish it helps you!
If you still have question about it, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------