This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS3.3调试28335时遇到的问题

 在调试过程中,go main之后点击运行,程序会停在箭头指示处

void InitPll(Uint16 val, Uint16 divsel)
{

     // Make sure the PLL is not running in limp mode
     if (SysCtrlRegs.PLLSTS.bit.MCLKSTS != 0)
    {
    // Missing external clock has been detected
    // Replace this line with a call to an appropriate
     // SystemShutdown(); function.
---->    asm(" ESTOP0");
}

当再次点击运行后程序能正常运行,求大侠解答,谢谢

  • Tang,

    出现时钟丢失情况,检查晶振有没问题,断开或虚焊。

    Eric

  • 首先感谢您的回复:

            现在我是同时在调两个DSP的SPI通信,两片都出现了这种情况,如果量变都忽略这个现象继续运行spi仍然可以正常通信,这样看起来好像晶振没有问题,您对这种现象怎么看,期待您的再次回复,谢谢。

  • 如Eric所说。这是出现时钟丢失的情况,楼主还是应该检查晶振有没问题,断开或虚焊。

    如果真的时钟没问题那么     if (SysCtrlRegs.PLLSTS.bit.MCLKSTS != 0)就不会成立。

    楼主可以删除芯片中的所有程序,然后上电,如果是30MHZ的时钟输入,那么XCLKOUT引脚测得频率是大概3.7Mhz的稳定时钟输出。

    最后也建议楼主用例程试试,看看是否还会进入这里。

     

  • 好的,非常感谢您提供的方法,我做完实验回来反馈,再次感谢