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.
看着像。 你可以把工程发出来,我测试下,排除工具和仿真器的差异
IAR 和TI-RTOS的版本是多少?
1.你的任务都是不循环的呢????? 你似乎不太了解RTOS
void taskfxn(){
//init
while(1)
{
sleep(xx);
}
}
2.你在空闲任务里面用BIOS_exit()?????
/*
* ======== idl0Fxn ========
*/
Void idl0Fxn()
{
BIOS_exit(0);
}
我对TI 的RTOS不是很懂。接触cc1310不久,之前都是做裸机开发。我重新找了个看门狗程序。
看门狗程序在这个文件里面 task_watchdog.c ,但是回调函数里面没看到WatchdogIntClear()//清除看门狗定时器中断。这句话。难道是自动喂狗/清零中断?我仿真调试也没出现复位现象,是不是因为仿真软件上看不到复位现象,需要硬件接个小灯。
void watchdog_callback(UArg a0) {
PIN_setOutputValue(ledPinHandle, Board_LED1, 0);
while(1); // stall here to check if callback is being called
}
没人答得出来,我自己回答了,因为复位了。