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.

DSP28335 连续运行与单步运行结果不一致

主程序中灯光闪烁功能, DSP CPU 频率150Mhz, 主程序:

   for(;;)
   {
      LoopCount++;

      if(LoopCount>=30000)//
      		{

    	      GpioDataRegs.GPATOGGLE.bit.GPIO31=1;
    	      //GpioDataRegs.GPBTOGGLE.bit.GPIO34=1;

    	      LoopCount=0;

      		}
   }
}

相关GPIO的配置:

void Initled(void)
{

	 EALLOW;
	GpioCtrlRegs.GPAPUD.bit.GPIO31=0;
	GpioCtrlRegs.GPBPUD.bit.GPIO34=0;

	GpioCtrlRegs.GPAMUX2.bit.GPIO31=0;
	GpioCtrlRegs.GPBMUX1.bit.GPIO34=0;

	GpioCtrlRegs.GPADIR.bit.GPIO31=1;
	GpioCtrlRegs.GPBDIR.bit.GPIO34=1;

	GpioDataRegs.GPASET.bit.GPIO31=1;
	GpioDataRegs.GPBSET.bit.GPIO34=1;

	EDIS;
}

在主程序中设置断点,则会发现闪烁,如果不设置断点,让DSP连续运行将没有闪烁,不知道是什么问题?求解答。(我用的是TI的28335control card)