I suppose that this question is related to your previous thread:
https://community.freescale.com/thread/326021
Solution:
Please open function Cpu_SetMCGModePBE function in bsp_cm.c file and replace line MCG_C6 = (uint8_t)0x40U; by line MCG_C6 = (uint8_t)0x48U; (it is inside case 1U:)
This will fix issue with “cannot change Clock source to 2MHz after 3 times.”
It is known issue and it will be fixed in next MQX release.
Best Regards,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------