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.
平台:ucos2操作系统(从网站上下载的,用于28335移植),28335开发板
问题描述:我创建了两个任务,一个是开始任务,一个是task1,如代码所示:
void main(void)
{
InitDSP();
OSInit();
OSTaskCreate(TaskStart, (void *)0, (void *)&TaskStartStk[0], 0);
PieCtrlRegs.PIEIER1.bit.INTx7 = 1;
OSStart();
}
在TaskStart任务中,创建任务1,控制led灯的亮灭。
问题来了,在线debug运行后,程序会停止在
继续点击运行,程序又会停止在
继续点击运行,程序又会停止在
继续运行,程序才会正常地在任务之间切换。led灯会正常地亮灭。
在debug的时候我没有设置断点,不知道为什么程序会停止在任务的开始处?