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.

调试SCI Echoback程序,打印出来的都是00



今日调试SCI串口打印,做了如下修改,因为自己做的板,28和29GPIO口有其他的用途,将28和29 GPIO口改为35和36,系统频率设置  InitSysPll(XTAL_OSC,IMULT_12,FMULT_0,PLLCLK_BY_2);,外部晶振是20M,与将波特率设置为

SciaRegs.SCIHBAUD.all = 0x0003;
SciaRegs.SCILBAUD.all = 0x000C;

遇到问题如下:

1.程序会在InitSysPll函数的

while(ClkCfgRegs.SYSPLLSTS.bit.LOCKS != 1)
{
//
// Uncomment to service the watchdog
//
// ServiceDog();
}

部分卡住,我就把这段注掉了,不知道会有什么影响

2,串口打印出来的是一堆 00