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.

关于DSP6747仿真卡在初始化的问题。



您好:

     我想问下,有时候仿真DSP6747就会卡在PSC0的初始化里不能出去,只能重新上电才可以,这是为什么呢?

    仿真器:XDS100V2

    CCS版本:CCS5.5.0

   程序会卡在PSC0_lPSC_enable函数的最后一行。

void PSC0_lPSC_enable(Uint8 PD, Uint8 LPSC_num)
{

*(Uint32*) (PSC0_MDCTL+4*LPSC_num) = (*(Uint32*) (PSC0_MDCTL+4*LPSC_num) & 0xFFFFFFE0) | 0x0003;
PSC0_PTCMD = 0x1<<PD;
while( (PSC0_PTSTAT & (0x1<<PD) ) !=0) ; /*Wait for power state transition to finish*/
while( (*(Uint32*)(PSC0_MDSTAT+4 * LPSC_num) & 0x1F) !=0x3);
}