hi, all
I am trying to use the timer in sys/bios 6.41 at ICE-AM3359, but failed.
the err ,i met, is about as below:
just created a new project as following the sys/bios user guide :
Void hwitimerFxn(UArg arg)
{
System_printf("hello, my timer ~~ \n");
return;
}
Int main()
{
Task_Handle task;
Error_Block eb;
System_printf("enter main()\n");
Error_init(&eb);
task = Task_create(taskFxn, NULL, &eb);
if (task == NULL)
{
System_printf("Task_create() failed!\n");
BIOS_exit(0);
}
Timer_Params timerParams;
Timer_Params_init(&timerParams);
timerParams.period = 2000; /* 2 ms */
timerHandle = Timer_create(Timer_ANY, hwitimerFxn, &timerParams, &eb);
if (timerHandle == NULL)
{
System_printf("Timer create failed");
}
BIOS_start(); /* does not return */
return(0);
}
build success and load the out file into the target.
but could not run the program
have tryed modify the timer id from "Timer_ANY" to 0,1,and so on , but also failed. so bad =.=!
thanks to everyone who gives me any suggestions, i have no idea to debug and so dispirited.
CCS show me the same err point all the time