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.

SYS/BIOS 创建Timer失败



这是我的代码,Timer_create的返回值等于NULL,是不是哪里设置错误?

void main()
{
/*
* use ROV->SysMin to view the characters in the circular buffer
*/
System_printf("enter main()\n");

/*MMUInit(applMmuEntries);
UTILsDetectBoardType();

PinMuxConfig(icev2Mux);

uartInstance=3;
UartOpen(uartInstance,NULL);*/


Error_Block eb;
Timer_Params timerParams;
Error_init(&eb);

Timer_Params_init(&timerParams);
timerParams.period = 2000; /* 2 ms */
//timer0 = Timer_create(Timer_ANY, TimerFxn0, &timerParams, &eb);
timer0 = Timer_create(Timer_ANY, TimerFxn0, &timerParams, &eb);
if(timer0==NULL)
{
System_printf("faili!\n");
System_flush();
}

//hardware_init();

BIOS_start(); /* does not return */
//return(0);
}