系统复位后,程序死掉;重新上电后运行正常。代码如下: SCU_MCLKSourceConfig(SCU_MCLK_OSC); SCU_PLLCmd(DISABLE); SCU_PLLFactorsConfig(104, 10, 3);//48M //SCU_PLLFactorsConfig(100, 10, 2);//96M SCU_RCLKDivisorConfig(SCU_RCLK_Div1); SCU_PCLKDivisorConfig(SCU_PCLK_Div1); SCU_HCLKDivisorConfig(SCU_HCLK_Div1); SCU_FMICLKDivisorConfig(SCU_FMICLK_Div1); SCU_PLLCmd(ENABLE); SCU_MCLKSourceConfig(SCU_MCLK_PLL); 起初系统复位没问题的,自从我把PLL频率提升到96M后就出问题了。把PLL频率降回48M,问题依旧存在。 请各位分析一下原因。 |