Hi
Have you modified the <clock_config.h> file with correct crystal clock frequency with below code:
The FRDM-K66F board is using 12MHz crystal, while your board is using 16MHz crystal:
//#define BOARD_XTAL0_CLK_HZ 12000000U
#define BOARD_XTAL0_CLK_HZ 16000000U
void BOARD_BootClockRUN(void)
{
const mcg_pll_config_t pll0Config = {
// .enableMode = 0U, .prdiv = 0x00U, .vdiv = 0x04U,
.enableMode = 0U, .prdiv = 0x01U, .vdiv = 0x0EU, //to get PLL output 120MHz clock
};
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------